Package com.mojang.blaze3d.platform
Class TextureUtil
java.lang.Object
com.mojang.blaze3d.platform.TextureUtil
- Mappings:
Namespace Name official com/mojang/blaze3d/platform/TextureUtil
intermediary com/mojang/blaze3d/platform/TextureUtil
named com/mojang/blaze3d/platform/TextureUtil
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private static final org.slf4j.Logger
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static void
bind
(int id) static int
static void
initTexture
(IntBuffer imageData, int width, int height) static void
prepareImage
(int id, int width, int height) static void
prepareImage
(int id, int maxLevel, int width, int height) static void
prepareImage
(NativeImage.InternalFormat internalFormat, int id, int width, int height) static void
prepareImage
(NativeImage.InternalFormat internalFormat, int id, int maxLevel, int width, int height) static ByteBuffer
readResource
(InputStream inputStream) static void
releaseTextureId
(int id) static void
writeAsPNG
(String filename, int id, int scales, int width, int height)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
MIN_MIPMAP_LEVEL
public static final int MIN_MIPMAP_LEVEL- See Also:
-
DEFAULT_IMAGE_BUFFER_SIZE
private static final int DEFAULT_IMAGE_BUFFER_SIZE- See Also:
-
-
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 releaseTextureId
Lcom/mojang/blaze3d/platform/TextureUtil;releaseTextureId(I)V
intermediary releaseTextureId
Lcom/mojang/blaze3d/platform/TextureUtil;releaseTextureId(I)V
named releaseTextureId
Lcom/mojang/blaze3d/platform/TextureUtil;releaseTextureId(I)V
-
prepareImage
public static void prepareImage(int id, int width, int height) - Mappings:
Namespace Name Mixin selector official prepareImage
Lcom/mojang/blaze3d/platform/TextureUtil;prepareImage(III)V
intermediary prepareImage
Lcom/mojang/blaze3d/platform/TextureUtil;prepareImage(III)V
named prepareImage
Lcom/mojang/blaze3d/platform/TextureUtil;prepareImage(III)V
-
prepareImage
public static void prepareImage(NativeImage.InternalFormat internalFormat, int id, int width, int height) - Mappings:
Namespace Name Mixin selector official prepareImage
Lcom/mojang/blaze3d/platform/TextureUtil;prepareImage(Ldys$b;III)V
intermediary prepareImage
Lcom/mojang/blaze3d/platform/TextureUtil;prepareImage(Lnet/minecraft/class_1011$class_1013;III)V
named prepareImage
Lcom/mojang/blaze3d/platform/TextureUtil;prepareImage(Lnet/minecraft/client/texture/NativeImage$InternalFormat;III)V
-
prepareImage
public static void prepareImage(int id, int maxLevel, int width, int height) - Mappings:
Namespace Name Mixin selector official prepareImage
Lcom/mojang/blaze3d/platform/TextureUtil;prepareImage(IIII)V
intermediary prepareImage
Lcom/mojang/blaze3d/platform/TextureUtil;prepareImage(IIII)V
named prepareImage
Lcom/mojang/blaze3d/platform/TextureUtil;prepareImage(IIII)V
-
prepareImage
public static void prepareImage(NativeImage.InternalFormat internalFormat, int id, int maxLevel, int width, int height) - Mappings:
Namespace Name Mixin selector official prepareImage
Lcom/mojang/blaze3d/platform/TextureUtil;prepareImage(Ldys$b;IIII)V
intermediary prepareImage
Lcom/mojang/blaze3d/platform/TextureUtil;prepareImage(Lnet/minecraft/class_1011$class_1013;IIII)V
named prepareImage
Lcom/mojang/blaze3d/platform/TextureUtil;prepareImage(Lnet/minecraft/client/texture/NativeImage$InternalFormat;IIII)V
-
bind
private static void bind(int id) - Mappings:
Namespace Name Mixin selector official bind
Lcom/mojang/blaze3d/platform/TextureUtil;bind(I)V
intermediary bind
Lcom/mojang/blaze3d/platform/TextureUtil;bind(I)V
named bind
Lcom/mojang/blaze3d/platform/TextureUtil;bind(I)V
-
readResource
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official readResource
Lcom/mojang/blaze3d/platform/TextureUtil;readResource(Ljava/io/InputStream;)Ljava/nio/ByteBuffer;
intermediary readResource
Lcom/mojang/blaze3d/platform/TextureUtil;readResource(Ljava/io/InputStream;)Ljava/nio/ByteBuffer;
named readResource
Lcom/mojang/blaze3d/platform/TextureUtil;readResource(Ljava/io/InputStream;)Ljava/nio/ByteBuffer;
-
writeAsPNG
- Mappings:
Namespace Name Mixin selector official writeAsPNG
Lcom/mojang/blaze3d/platform/TextureUtil;writeAsPNG(Ljava/lang/String;IIII)V
intermediary writeAsPNG
Lcom/mojang/blaze3d/platform/TextureUtil;writeAsPNG(Ljava/lang/String;IIII)V
named writeAsPNG
Lcom/mojang/blaze3d/platform/TextureUtil;writeAsPNG(Ljava/lang/String;IIII)V
-
initTexture
- Mappings:
Namespace Name Mixin selector official initTexture
Lcom/mojang/blaze3d/platform/TextureUtil;initTexture(Ljava/nio/IntBuffer;II)V
intermediary initTexture
Lcom/mojang/blaze3d/platform/TextureUtil;initTexture(Ljava/nio/IntBuffer;II)V
named initTexture
Lcom/mojang/blaze3d/platform/TextureUtil;initTexture(Ljava/nio/IntBuffer;II)V
-