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 booleanprivate intFields inherited from class com.mojang.blaze3d.textures.GpuTexture
addressModeU, addressModeV, magFilter, minFilter, RESERVED_USAGE_BITS, USAGE_COPY_DST, USAGE_COPY_SRC, USAGE_CUBEMAP_COMPATIBLE, USAGE_RENDER_ATTACHMENT, USAGE_TEXTURE_BINDING, useMipmaps -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGlTexture(int pUsage, String pLabel, TextureFormat pFormat, int pWidth, int pHeight, int pDepthOrLayers, int pMipLevels, int pId) protectedGlTexture(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 voidvoidflushModeChanges(int pTarget) intgetFbo(DirectStateAccess pDirectStateAccess, GpuTexture pTexture) intglId()booleanisClosed()voidvoidsetAddressMode(AddressMode p_409820_, AddressMode p_409765_) voidsetTextureFilter(FilterMode p_410846_, FilterMode p_409662_, boolean p_410630_) voidsetUseMipmaps(boolean p_416221_) Methods inherited from class com.mojang.blaze3d.textures.GpuTexture
getDepthOrLayers, getFormat, getHeight, getLabel, getMipLevels, getWidth, setAddressMode, setTextureFilter, usage
-
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 -
views
private int views -
external
protected final boolean external
-
-
Constructor Details
-
GlTexture
protected GlTexture(int pUsage, String pLabel, TextureFormat pFormat, int pWidth, int pHeight, int pDepthOrLayers, int pMipLevels, int pId) -
GlTexture
protected GlTexture(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
-
flushModeChanges
public void flushModeChanges(int pTarget) -
glId
public int glId() -
setAddressMode
- Overrides:
setAddressModein classGpuTexture
-
setTextureFilter
- Overrides:
setTextureFilterin classGpuTexture
-
setUseMipmaps
public void setUseMipmaps(boolean p_416221_) - Overrides:
setUseMipmapsin classGpuTexture
-
addViews
public void addViews() -
removeViews
public void removeViews()
-