Package net.minecraft.client.texture
Class GlTexture
java.lang.Object
com.mojang.blaze3d.textures.GpuTexture
net.minecraft.client.texture.GlTexture
- All Implemented Interfaces:
AutoCloseable
- Mappings:
Namespace Name named net/minecraft/client/texture/GlTextureintermediary net/minecraft/class_10868official fsd
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprivate final Int2IntMapprotected final intprotected booleanprivate intFields inherited from class com.mojang.blaze3d.textures.GpuTexture
addressModeU, addressModeV, magFilter, minFilter, USAGE_COPY_DST, USAGE_COPY_SRC, USAGE_CUBEMAP_COMPATIBLE, USAGE_RENDER_ATTACHMENT, USAGE_TEXTURE_BINDING, useMipmaps -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGlTexture(int usage, String label, TextureFormat format, int width, int height, int depthOrLayers, int mipLevels, int glId) -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckDirty(int target) voidclose()voidprivate voidfree()intgetGlId()intgetOrCreateFramebuffer(BufferManager manager, @Nullable GpuTexture depthTexture) voidbooleanisClosed()voidsetAddressMode(AddressMode addressModeU, AddressMode addressModeV) voidsetTextureFilter(FilterMode minFilter, FilterMode magFilter, boolean useMipmaps) voidsetUseMipmaps(boolean useMipmaps) Methods inherited from class com.mojang.blaze3d.textures.GpuTexture
getDepthOrLayers, getFormat, getHeight, getLabel, getMipLevels, getWidth, setAddressMode, setTextureFilter, usage
-
Field Details
-
glId
protected final int glId- Mappings:
Namespace Name Mixin selector named glIdLnet/minecraft/client/texture/GlTexture;glId:Iintermediary field_57882Lnet/minecraft/class_10868;field_57882:Iofficial aLfsd;a:I
-
depthTexToFramebufferIdCache
- Mappings:
Namespace Name Mixin selector named depthTexToFramebufferIdCacheLnet/minecraft/client/texture/GlTexture;depthTexToFramebufferIdCache:Lit/unimi/dsi/fastutil/ints/Int2IntMap;intermediary field_57885Lnet/minecraft/class_10868;field_57885:Lit/unimi/dsi/fastutil/ints/Int2IntMap;official dLfsd;d:Lit/unimi/dsi/fastutil/ints/Int2IntMap;
-
closed
protected boolean closed- Mappings:
Namespace Name Mixin selector named closedLnet/minecraft/client/texture/GlTexture;closed:Zintermediary field_57883Lnet/minecraft/class_10868;field_57883:Zofficial bLfsd;b:Z
-
needsReinit
protected boolean needsReinit- Mappings:
Namespace Name Mixin selector named needsReinitLnet/minecraft/client/texture/GlTexture;needsReinit:Zintermediary field_57884Lnet/minecraft/class_10868;field_57884:Zofficial cLfsd;c:Z
-
refCount
private int refCount- Mappings:
Namespace Name Mixin selector named refCountLnet/minecraft/client/texture/GlTexture;refCount:Iintermediary field_60565Lnet/minecraft/class_10868;field_60565:Iofficial eLfsd;e:I
-
-
Constructor Details
-
GlTexture
protected GlTexture(int usage, String label, TextureFormat format, int width, int height, int depthOrLayers, int mipLevels, int glId) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/texture/GlTexture;<init>(ILjava/lang/String;Lcom/mojang/blaze3d/textures/TextureFormat;IIIII)Vintermediary <init>Lnet/minecraft/class_10868;<init>(ILjava/lang/String;Lcom/mojang/blaze3d/textures/TextureFormat;IIIII)Vofficial <init>Lfsd;<init>(ILjava/lang/String;Lcom/mojang/blaze3d/textures/TextureFormat;IIIII)V
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classGpuTexture
-
free
private void free()- Mappings:
Namespace Name Mixin selector named freeLnet/minecraft/client/texture/GlTexture;free()Vintermediary method_71637Lnet/minecraft/class_10868;method_71637()Vofficial dLfsd;d()V
-
isClosed
public boolean isClosed()- Specified by:
isClosedin classGpuTexture
-
getOrCreateFramebuffer
public int getOrCreateFramebuffer(BufferManager manager, @Nullable @Nullable GpuTexture depthTexture) - Mappings:
Namespace Name Mixin selector named getOrCreateFramebufferLnet/minecraft/client/texture/GlTexture;getOrCreateFramebuffer(Lnet/minecraft/client/gl/BufferManager;Lcom/mojang/blaze3d/textures/GpuTexture;)Iintermediary method_68426Lnet/minecraft/class_10868;method_68426(Lnet/minecraft/class_10874;Lcom/mojang/blaze3d/textures/GpuTexture;)Iofficial aLfsd;a(Lfrs;Lcom/mojang/blaze3d/textures/GpuTexture;)I
-
checkDirty
public void checkDirty(int target) - Mappings:
Namespace Name Mixin selector named checkDirtyLnet/minecraft/client/texture/GlTexture;checkDirty(I)Vintermediary method_68424Lnet/minecraft/class_10868;method_68424(I)Vofficial aLfsd;a(I)V
-
getGlId
public int getGlId()- Mappings:
Namespace Name Mixin selector named getGlIdLnet/minecraft/client/texture/GlTexture;getGlId()Iintermediary method_68427Lnet/minecraft/class_10868;method_68427()Iofficial aLfsd;a()I
-
setAddressMode
- Overrides:
setAddressModein classGpuTexture- Mappings:
Namespace Name Mixin selector named setAddressModeLcom/mojang/blaze3d/textures/GpuTexture;setAddressMode(Lcom/mojang/blaze3d/textures/AddressMode;Lcom/mojang/blaze3d/textures/AddressMode;)Vintermediary setAddressModeLcom/mojang/blaze3d/textures/GpuTexture;setAddressMode(Lcom/mojang/blaze3d/textures/AddressMode;Lcom/mojang/blaze3d/textures/AddressMode;)Vofficial setAddressModeLcom/mojang/blaze3d/textures/GpuTexture;setAddressMode(Lcom/mojang/blaze3d/textures/AddressMode;Lcom/mojang/blaze3d/textures/AddressMode;)V
-
setTextureFilter
- Overrides:
setTextureFilterin classGpuTexture- Mappings:
Namespace Name Mixin selector named setTextureFilterLcom/mojang/blaze3d/textures/GpuTexture;setTextureFilter(Lcom/mojang/blaze3d/textures/FilterMode;Lcom/mojang/blaze3d/textures/FilterMode;Z)Vintermediary setTextureFilterLcom/mojang/blaze3d/textures/GpuTexture;setTextureFilter(Lcom/mojang/blaze3d/textures/FilterMode;Lcom/mojang/blaze3d/textures/FilterMode;Z)Vofficial setTextureFilterLcom/mojang/blaze3d/textures/GpuTexture;setTextureFilter(Lcom/mojang/blaze3d/textures/FilterMode;Lcom/mojang/blaze3d/textures/FilterMode;Z)V
-
setUseMipmaps
public void setUseMipmaps(boolean useMipmaps) - Overrides:
setUseMipmapsin classGpuTexture- Mappings:
Namespace Name Mixin selector named setUseMipmapsLcom/mojang/blaze3d/textures/GpuTexture;setUseMipmaps(Z)Vintermediary setUseMipmapsLcom/mojang/blaze3d/textures/GpuTexture;setUseMipmaps(Z)Vofficial setUseMipmapsLcom/mojang/blaze3d/textures/GpuTexture;setUseMipmaps(Z)V
-
incrementRefCount
public void incrementRefCount()- Mappings:
Namespace Name Mixin selector named incrementRefCountLnet/minecraft/client/texture/GlTexture;incrementRefCount()Vintermediary method_71635Lnet/minecraft/class_10868;method_71635()Vofficial bLfsd;b()V
-
decrementRefCount
public void decrementRefCount()- Mappings:
Namespace Name Mixin selector named decrementRefCountLnet/minecraft/client/texture/GlTexture;decrementRefCount()Vintermediary method_71636Lnet/minecraft/class_10868;method_71636()Vofficial cLfsd;c()V
-