Package com.mojang.blaze3d.platform
Class TextureUtil
java.lang.Object
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 p_85310_) static int
static void
initTexture
(IntBuffer p_85306_, int p_85307_, int p_85308_) static void
prepareImage
(int p_85284_, int p_85285_, int p_85286_) static void
prepareImage
(int p_85288_, int p_85289_, int p_85290_, int p_85291_) static void
prepareImage
(NativeImage.InternalGlFormat p_85293_, int p_85294_, int p_85295_, int p_85296_) static void
prepareImage
(NativeImage.InternalGlFormat p_85298_, int p_85299_, int p_85300_, int p_85301_, int p_85302_) static ByteBuffer
readResource
(InputStream p_85304_) static String
readResourceAsString
(InputStream p_85312_) static void
releaseTextureId
(int p_85282_) static void
writeAsPNG
(String p_157135_, int p_157136_, int p_157137_, int p_157138_, int p_157139_)
-
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 p_85282_) -
prepareImage
public static void prepareImage(int p_85284_, int p_85285_, int p_85286_) -
prepareImage
public static void prepareImage(NativeImage.InternalGlFormat p_85293_, int p_85294_, int p_85295_, int p_85296_) -
prepareImage
public static void prepareImage(int p_85288_, int p_85289_, int p_85290_, int p_85291_) -
prepareImage
public static void prepareImage(NativeImage.InternalGlFormat p_85298_, int p_85299_, int p_85300_, int p_85301_, int p_85302_) -
bind
private static void bind(int p_85310_) -
readResource
- Throws:
IOException
-
readResourceAsString
-
writeAsPNG
public static void writeAsPNG(String p_157135_, int p_157136_, int p_157137_, int p_157138_, int p_157139_) -
initTexture
-