Class GlTexture
java.lang.Object
com.mojang.blaze3d.textures.GpuTexture
com.mojang.blaze3d.opengl.GlTexture
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
Nested classes/interfaces inherited from class GpuTexture
GpuTexture.Usage -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprivate static final intprotected final booleanprivate @Nullable it.unimi.dsi.fastutil.ints.Int2IntMapprivate intprivate intprotected 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, TextureFormat format, int width, int height, int depthOrLayers, int mipLevels, int id) protectedGlTexture(int usage, String label, TextureFormat format, int width, int height, int depthOrLayers, int mipLevels, int id, boolean external) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddViews()voidclose()private intcreateFbo(DirectStateAccess dsa, int depthid) Deprecated.use overload that takes useStencilprivate intcreateFbo(DirectStateAccess dsa, int depthid, boolean useStencil) private voidintgetFbo(DirectStateAccess dsa, @Nullable GpuTexture depth) intglId()booleanisClosed()voidMethods 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 -
firstFboId
private int firstFboId -
firstFboDepthId
private int firstFboDepthId -
fboCache
private @Nullable it.unimi.dsi.fastutil.ints.Int2IntMap fboCache -
closed
protected boolean closed -
views
private int views -
external
protected final boolean external
-
-
Constructor Details
-
GlTexture
protected GlTexture(int usage, String label, TextureFormat format, int width, int height, int depthOrLayers, int mipLevels, int id) -
GlTexture
protected GlTexture(int usage, String label, TextureFormat format, int width, int height, int depthOrLayers, int mipLevels, int id, boolean external)
-
-
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
-
getFbo
-
createFbo
Deprecated.use overload that takes useStencil -
createFbo
-
glId
public int glId() -
addViews
public void addViews() -
removeViews
public void removeViews()
-