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 boolean
protected final boolean
private final it.unimi.dsi.fastutil.ints.Int2IntMap
protected final int
protected boolean
private int
Fields 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
ConstructorsModifierConstructorDescriptionprotected
GlTexture
(int pUsage, String pLabel, TextureFormat pFormat, int pWidth, int pHeight, int pDepthOrLayers, int pMipLevels, int pId) protected
GlTexture
(int pUsage, String pLabel, TextureFormat pFormat, int pWidth, int pHeight, int pDepthOrLayers, int pMipLevels, int pId, boolean external) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addViews()
void
close()
private void
void
flushModeChanges
(int pTarget) int
getFbo
(DirectStateAccess pDirectStateAccess, GpuTexture pTexture) int
glId()
boolean
isClosed()
void
void
setAddressMode
(AddressMode pAddressModeU, AddressMode pAddressModeV) void
setTextureFilter
(FilterMode pMinFilter, FilterMode pMagFilter, boolean pUseMipmaps) void
setUseMipmaps
(boolean pUseMipmaps) 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:
close
in interfaceAutoCloseable
- Specified by:
close
in classGpuTexture
-
destroyImmediately
private void destroyImmediately() -
isClosed
public boolean isClosed()- Specified by:
isClosed
in classGpuTexture
-
getFbo
-
flushModeChanges
public void flushModeChanges(int pTarget) -
glId
public int glId() -
setAddressMode
- Overrides:
setAddressMode
in classGpuTexture
-
setTextureFilter
- Overrides:
setTextureFilter
in classGpuTexture
-
setUseMipmaps
public void setUseMipmaps(boolean pUseMipmaps) - Overrides:
setUseMipmaps
in classGpuTexture
-
addViews
public void addViews() -
removeViews
public void removeViews()
-