Package com.mojang.blaze3d.opengl
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 com.mojang.blaze3d.textures.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 com.mojang.blaze3d.textures.GpuTexture
RESERVED_USAGE_BITS, USAGE_COPY_DST, USAGE_COPY_SRC, USAGE_CUBEMAP_COMPATIBLE, USAGE_RENDER_ATTACHMENT, USAGE_TEXTURE_BINDING -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGlTexture(@com.mojang.blaze3d.textures.GpuTexture.Usage int pUsage, String pLabel, TextureFormat pFormat, int pWidth, int pHeight, int pDepthOrLayers, int pMipLevels, int pId) protectedGlTexture(@com.mojang.blaze3d.textures.GpuTexture.Usage int pUsage, String pLabel, TextureFormat pFormat, int pWidth, int pHeight, int pDepthOrLayers, int pMipLevels, int pId, boolean external) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddViews()voidclose()private intcreateFbo(DirectStateAccess pDirectStateAccess, int pId) Deprecated.use overload that takes useStencilprivate intcreateFbo(DirectStateAccess pDirectStateAccess, int pId, boolean useStencil) private voidintgetFbo(DirectStateAccess pDirectStateAccess, @Nullable GpuTexture pTexture) intglId()booleanisClosed()voidMethods inherited from class com.mojang.blaze3d.textures.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(@com.mojang.blaze3d.textures.GpuTexture.Usage int pUsage, String pLabel, TextureFormat pFormat, int pWidth, int pHeight, int pDepthOrLayers, int pMipLevels, int pId) -
GlTexture
protected GlTexture(@com.mojang.blaze3d.textures.GpuTexture.Usage int pUsage, String pLabel, TextureFormat pFormat, int pWidth, int pHeight, int pDepthOrLayers, int pMipLevels, int pId, 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()
-