Class TextureUtil


  • public class TextureUtil
    extends java.lang.Object
    + This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code. Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!" Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team EaglercraftX 1.8 patch files are (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
    • Field Detail

      • missingTextureData

        public static final int[] missingTextureData
    • Constructor Detail

      • TextureUtil

        public TextureUtil()
    • Method Detail

      • glGenTextures

        public static int glGenTextures()
      • deleteTexture

        public static void deleteTexture​(int textureId)
      • uploadTextureImage

        public static int uploadTextureImage​(int parInt1,
                                             ImageData parBufferedImage)
      • uploadTexture

        public static void uploadTexture​(int textureId,
                                         int[] parArrayOfInt,
                                         int parInt2,
                                         int parInt3)
      • generateMipmapData

        public static int[][] generateMipmapData​(int parInt1,
                                                 int parInt2,
                                                 int[][] parArrayOfarray)
      • uploadTextureMipmap

        public static void uploadTextureMipmap​(int[][] parArrayOfarray,
                                               int parInt1,
                                               int parInt2,
                                               int parInt3,
                                               int parInt4,
                                               boolean parFlag,
                                               boolean parFlag2)
      • uploadTextureImageAllocate

        public static int uploadTextureImageAllocate​(int parInt1,
                                                     ImageData parBufferedImage,
                                                     boolean parFlag,
                                                     boolean parFlag2)
      • allocateTexture

        public static void allocateTexture​(int parInt1,
                                           int parInt2,
                                           int parInt3)
      • allocateTextureImpl

        public static void allocateTextureImpl​(int parInt1,
                                               int parInt2,
                                               int parInt3,
                                               int parInt4)
      • uploadTextureImageSub

        public static int uploadTextureImageSub​(int textureId,
                                                ImageData parBufferedImage,
                                                int parInt2,
                                                int parInt3,
                                                boolean parFlag,
                                                boolean parFlag2)
      • readImageData

        public static int[] readImageData​(IResourceManager resourceManager,
                                          ResourceLocation imageLocation)
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • readBufferedImage

        public static ImageData readBufferedImage​(java.io.InputStream imageStream)
                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • updateAnaglyph

        public static int[] updateAnaglyph​(int[] parArrayOfInt)
      • anaglyphColor

        public static int anaglyphColor​(int parInt1)
      • processPixelValues

        public static void processPixelValues​(int[] parArrayOfInt,
                                              int parInt1,
                                              int parInt2)
      • convertComponentOrder

        public static int[] convertComponentOrder​(int[] arr)