Class TextureUtil


  • public class TextureUtil
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static org.apache.logging.log4j.Logger LOGGER  
    • Constructor Summary

      Constructors 
      Constructor Description
      TextureUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static void bind​(int p_225686_0_)  
      static int generateTextureId()  
      static void initTexture​(java.nio.IntBuffer p_225685_0_, int p_225685_1_, int p_225685_2_)  
      static void prepareImage​(int p_225680_0_, int p_225680_1_, int p_225680_2_)  
      static void prepareImage​(int p_225681_0_, int p_225681_1_, int p_225681_2_, int p_225681_3_)  
      static void prepareImage​(NativeImage.PixelFormatGLCode p_225682_0_, int p_225682_1_, int p_225682_2_, int p_225682_3_)  
      static void prepareImage​(NativeImage.PixelFormatGLCode p_225683_0_, int p_225683_1_, int p_225683_2_, int p_225683_3_, int p_225683_4_)  
      static java.nio.ByteBuffer readResource​(java.io.InputStream p_225684_0_)  
      static java.lang.String readResourceAsString​(java.io.InputStream p_225687_0_)  
      static void releaseTextureId​(int p_225679_0_)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LOGGER

        private static final org.apache.logging.log4j.Logger LOGGER
    • Constructor Detail

      • TextureUtil

        public TextureUtil()
    • Method Detail

      • generateTextureId

        public static int generateTextureId()
      • releaseTextureId

        public static void releaseTextureId​(int p_225679_0_)
      • prepareImage

        public static void prepareImage​(int p_225680_0_,
                                        int p_225680_1_,
                                        int p_225680_2_)
      • prepareImage

        public static void prepareImage​(NativeImage.PixelFormatGLCode p_225682_0_,
                                        int p_225682_1_,
                                        int p_225682_2_,
                                        int p_225682_3_)
      • prepareImage

        public static void prepareImage​(int p_225681_0_,
                                        int p_225681_1_,
                                        int p_225681_2_,
                                        int p_225681_3_)
      • prepareImage

        public static void prepareImage​(NativeImage.PixelFormatGLCode p_225683_0_,
                                        int p_225683_1_,
                                        int p_225683_2_,
                                        int p_225683_3_,
                                        int p_225683_4_)
      • bind

        private static void bind​(int p_225686_0_)
      • readResource

        public static java.nio.ByteBuffer readResource​(java.io.InputStream p_225684_0_)
                                                throws java.io.IOException
        Throws:
        java.io.IOException
      • readResourceAsString

        public static java.lang.String readResourceAsString​(java.io.InputStream p_225687_0_)
      • initTexture

        public static void initTexture​(java.nio.IntBuffer p_225685_0_,
                                       int p_225685_1_,
                                       int p_225685_2_)