Package com.mojang.blaze3d.platform
Class TextureUtil
java.lang.Object
com.mojang.blaze3d.platform.TextureUtil
- Mappings:
Namespace Name official com/mojang/blaze3d/platform/TextureUtilintermediary com/mojang/blaze3d/platform/TextureUtilnamed com/mojang/blaze3d/platform/TextureUtil
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidbind(int id)static intstatic voidinitTexture(IntBuffer imageData, int width, int height)static voidprepareImage(int id, int width, int height)static voidprepareImage(int id, int maxLevel, int width, int height)static voidprepareImage(NativeImage.GLFormat internalFormat, int id, int width, int height)static voidprepareImage(NativeImage.GLFormat internalFormat, int id, int maxLevel, int width, int height)static ByteBufferreadResource(InputStream inputStream)readResourceAsString(InputStream inputStream)static voidreleaseTextureId(int id)static voidwriteAsPNG(String string, int int2, int int3, int int4, int int5)
-
Field Details
-
LOGGER
-
MIN_MIPMAP_LEVEL
public static final int MIN_MIPMAP_LEVEL- See Also:
- Constant Field Values
-
DEFAULT_IMAGE_BUFFER_SIZE
private static final int DEFAULT_IMAGE_BUFFER_SIZE- See Also:
- Constant Field Values
-
-
Constructor Details
-
TextureUtil
public TextureUtil()
-
-
Method Details
-
generateTextureId
public static int generateTextureId() -
releaseTextureId
public static void releaseTextureId(int id)- Mappings:
Namespace Name Mixin selector official releaseTextureIdLcom/mojang/blaze3d/platform/TextureUtil;releaseTextureId(I)Vintermediary releaseTextureIdLcom/mojang/blaze3d/platform/TextureUtil;releaseTextureId(I)Vnamed releaseTextureIdLcom/mojang/blaze3d/platform/TextureUtil;releaseTextureId(I)V
-
prepareImage
public static void prepareImage(int id, int width, int height)- Mappings:
Namespace Name Mixin selector official prepareImageLcom/mojang/blaze3d/platform/TextureUtil;prepareImage(III)Vintermediary prepareImageLcom/mojang/blaze3d/platform/TextureUtil;prepareImage(III)Vnamed prepareImageLcom/mojang/blaze3d/platform/TextureUtil;prepareImage(III)V
-
prepareImage
public static void prepareImage(NativeImage.GLFormat internalFormat, int id, int width, int height)- Mappings:
Namespace Name Mixin selector official prepareImageLcom/mojang/blaze3d/platform/TextureUtil;prepareImage(Ldpl$b;III)Vintermediary prepareImageLcom/mojang/blaze3d/platform/TextureUtil;prepareImage(Lnet/minecraft/class_1011$class_1013;III)Vnamed prepareImageLcom/mojang/blaze3d/platform/TextureUtil;prepareImage(Lnet/minecraft/client/texture/NativeImage$GLFormat;III)V
-
prepareImage
public static void prepareImage(int id, int maxLevel, int width, int height)- Mappings:
Namespace Name Mixin selector official prepareImageLcom/mojang/blaze3d/platform/TextureUtil;prepareImage(IIII)Vintermediary prepareImageLcom/mojang/blaze3d/platform/TextureUtil;prepareImage(IIII)Vnamed prepareImageLcom/mojang/blaze3d/platform/TextureUtil;prepareImage(IIII)V
-
prepareImage
public static void prepareImage(NativeImage.GLFormat internalFormat, int id, int maxLevel, int width, int height)- Mappings:
Namespace Name Mixin selector official prepareImageLcom/mojang/blaze3d/platform/TextureUtil;prepareImage(Ldpl$b;IIII)Vintermediary prepareImageLcom/mojang/blaze3d/platform/TextureUtil;prepareImage(Lnet/minecraft/class_1011$class_1013;IIII)Vnamed prepareImageLcom/mojang/blaze3d/platform/TextureUtil;prepareImage(Lnet/minecraft/client/texture/NativeImage$GLFormat;IIII)V
-
bind
private static void bind(int id)- Mappings:
Namespace Name Mixin selector official bindLcom/mojang/blaze3d/platform/TextureUtil;bind(I)Vintermediary bindLcom/mojang/blaze3d/platform/TextureUtil;bind(I)Vnamed bindLcom/mojang/blaze3d/platform/TextureUtil;bind(I)V
-
readResource
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official readResourceLcom/mojang/blaze3d/platform/TextureUtil;readResource(Ljava/io/InputStream;)Ljava/nio/ByteBuffer;intermediary readResourceLcom/mojang/blaze3d/platform/TextureUtil;readResource(Ljava/io/InputStream;)Ljava/nio/ByteBuffer;named readResourceLcom/mojang/blaze3d/platform/TextureUtil;readResource(Ljava/io/InputStream;)Ljava/nio/ByteBuffer;
-
readResourceAsString
- Mappings:
Namespace Name Mixin selector official readResourceAsStringLcom/mojang/blaze3d/platform/TextureUtil;readResourceAsString(Ljava/io/InputStream;)Ljava/lang/String;intermediary readResourceAsStringLcom/mojang/blaze3d/platform/TextureUtil;readResourceAsString(Ljava/io/InputStream;)Ljava/lang/String;named readResourceAsStringLcom/mojang/blaze3d/platform/TextureUtil;readResourceAsString(Ljava/io/InputStream;)Ljava/lang/String;
-
writeAsPNG
-
initTexture
- Mappings:
Namespace Name Mixin selector official initTextureLcom/mojang/blaze3d/platform/TextureUtil;initTexture(Ljava/nio/IntBuffer;II)Vintermediary initTextureLcom/mojang/blaze3d/platform/TextureUtil;initTexture(Ljava/nio/IntBuffer;II)Vnamed initTextureLcom/mojang/blaze3d/platform/TextureUtil;initTexture(Ljava/nio/IntBuffer;II)V
-