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 Path
static Path
getDebugTexturePath
(Path p_262015_) 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_) private static ByteBuffer
readResource
(ReadableByteChannel p_273208_, int p_273297_) static void
releaseTextureId
(int p_85282_) static void
writeAsPNG
(Path p_261923_, String p_262070_, int p_261655_, int p_261576_, int p_261966_, int p_261775_) static void
writeAsPNG
(Path p_285286_, String p_285408_, int p_285400_, int p_285244_, int p_285373_, int p_285206_, IntUnaryOperator p_284988_)
-
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
-
readResource
private static ByteBuffer readResource(ReadableByteChannel p_273208_, int p_273297_) throws IOException - Throws:
IOException
-
writeAsPNG
-
writeAsPNG
public static void writeAsPNG(Path p_285286_, String p_285408_, int p_285400_, int p_285244_, int p_285373_, int p_285206_, @Nullable IntUnaryOperator p_284988_) -
getDebugTexturePath
-
getDebugTexturePath
-