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(String p_157135_, int p_157136_, int p_157137_, int p_157138_, int p_157139_)
    • initTexture

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