Class TextureUtil

java.lang.Object
com.mojang.blaze3d.platform.TextureUtil

public class TextureUtil extends Object
  • 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

      public static ByteBuffer readResource(InputStream p_85304_) throws IOException
      Throws:
      IOException
    • writeAsPNG

      public static void writeAsPNG(Path p_261923_, String p_262070_, int p_261655_, int p_261576_, int p_261966_, int p_261775_)
    • initTexture

      public static void initTexture(IntBuffer p_85306_, int p_85307_, int p_85308_)
    • getDebugTexturePath

      public static Path getDebugTexturePath(Path p_262015_)
    • getDebugTexturePath

      public static Path getDebugTexturePath()