Class GlTexture
java.lang.Object
com.mojang.blaze3d.textures.GpuTexture
com.mojang.blaze3d.opengl.GlTexture
- All Implemented Interfaces:
FrameBufferAttachment, AutoCloseable
-
Nested Class Summary
Nested classes/interfaces inherited from class GpuTexture
GpuTexture.Usage -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprivate static final intprivate final List<FrameBufferCache.CacheKey> private final FrameBufferCacheprotected final intprivate intFields inherited from class GpuTexture
USAGE_COPY_DST, USAGE_COPY_SRC, USAGE_CUBEMAP_COMPATIBLE, USAGE_RENDER_ATTACHMENT, USAGE_TEXTURE_BINDING -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGlTexture(int usage, String label, GpuFormat format, int width, int height, int depthOrLayers, int mipLevels, int id, FrameBufferCache frameBufferCache) -
Method Summary
Methods inherited from class GpuTexture
getDepthOrLayers, getFormat, getHeight, getLabel, getMipLevels, getWidth, usage
-
Field Details
-
EMPTY
private static final int EMPTY- See Also:
-
id
protected final int id -
frameBufferCache
-
fboKeys
-
closed
protected boolean closed -
views
private int views
-
-
Constructor Details
-
GlTexture
protected GlTexture(int usage, String label, GpuFormat format, int width, int height, int depthOrLayers, int mipLevels, int id, FrameBufferCache frameBufferCache)
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classGpuTexture
-
destroyImmediately
private void destroyImmediately() -
isClosed
public boolean isClosed()- Specified by:
isClosedin classGpuTexture
-
glId
public int glId()- Specified by:
glIdin interfaceFrameBufferAttachment
-
fboMipLevel
public int fboMipLevel()- Specified by:
fboMipLevelin interfaceFrameBufferAttachment
-
addAssociatedFbo
- Specified by:
addAssociatedFboin interfaceFrameBufferAttachment
-
removeAssociatedFbo
- Specified by:
removeAssociatedFboin interfaceFrameBufferAttachment
-
hasStencilAspect
public boolean hasStencilAspect()- Specified by:
hasStencilAspectin interfaceFrameBufferAttachment
-
addViews
public void addViews() -
removeViews
public void removeViews()
-