Package com.mojang.blaze3d.opengl
Class GlTexture
java.lang.Object
com.mojang.blaze3d.textures.GpuTexture
com.mojang.blaze3d.opengl.GlTexture
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected final booleanprivate final it.unimi.dsi.fastutil.ints.Int2IntMapprotected final intprotected booleanFields inherited from class com.mojang.blaze3d.textures.GpuTexture
addressModeU, addressModeV, magFilter, minFilter, useMipmaps -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGlTexture(String pLabel, TextureFormat pFormat, int pWidth, int pHeight, int pMipLevels, int pId) protectedGlTexture(String pLabel, TextureFormat pFormat, int pWidth, int pHeight, int pMipLevels, int pId, boolean external) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidintgetFbo(DirectStateAccess pDirectStateAccess, GpuTexture pTexture) intglId()booleanisClosed()voidsetAddressMode(AddressMode p_409820_, AddressMode p_409765_) voidsetTextureFilter(FilterMode p_410846_, FilterMode p_409662_, boolean p_410630_) Methods inherited from class com.mojang.blaze3d.textures.GpuTexture
getFormat, getHeight, getLabel, getMipLevels, getWidth, setAddressMode, setTextureFilter
-
Field Details
-
id
protected final int id -
fboCache
private final it.unimi.dsi.fastutil.ints.Int2IntMap fboCache -
closed
protected boolean closed -
modesDirty
protected boolean modesDirty -
external
protected final boolean external
-
-
Constructor Details
-
GlTexture
protected GlTexture(String pLabel, TextureFormat pFormat, int pWidth, int pHeight, int pMipLevels, int pId) -
GlTexture
protected GlTexture(String pLabel, TextureFormat pFormat, int pWidth, int pHeight, int pMipLevels, int pId, boolean external)
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classGpuTexture
-
isClosed
public boolean isClosed()- Specified by:
isClosedin classGpuTexture
-
getFbo
-
flushModeChanges
public void flushModeChanges() -
glId
public int glId() -
setAddressMode
- Overrides:
setAddressModein classGpuTexture
-
setTextureFilter
- Overrides:
setTextureFilterin classGpuTexture
-