Class GlTextureView
java.lang.Object
com.mojang.blaze3d.textures.GpuTextureView
com.mojang.blaze3d.opengl.GlTextureView
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate static final intprivate @Nullable it.unimi.dsi.fastutil.ints.Int2IntMapprivate intprivate int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGlTextureView(GlTexture texture, int baseMipLevel, int mipLevels) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()private intcreateFbo(DirectStateAccess dsa, int depthid) Deprecated.use overload that takes useStencilprivate intcreateFbo(DirectStateAccess dsa, int depthid, boolean useStencil) intgetFbo(DirectStateAccess dsa, @Nullable GpuTexture depth) booleanisClosed()texture()Methods inherited from class GpuTextureView
baseMipLevel, getHeight, getWidth, mipLevels
-
Field Details
-
EMPTY
private static final int EMPTY- See Also:
-
closed
private boolean closed -
firstFboId
private int firstFboId -
firstFboDepthId
private int firstFboDepthId -
fboCache
private @Nullable it.unimi.dsi.fastutil.ints.Int2IntMap fboCache
-
-
Constructor Details
-
GlTextureView
-
-
Method Details
-
isClosed
public boolean isClosed()- Specified by:
isClosedin classGpuTextureView
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classGpuTextureView
-
getFbo
-
createFbo
Deprecated.use overload that takes useStencil -
createFbo
-
texture
- Overrides:
texturein classGpuTextureView
-