public class TextureUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static float[] |
COLOR_GAMMAS |
private static java.nio.IntBuffer |
DATA_BUFFER |
private static org.apache.logging.log4j.Logger |
LOGGER |
private static int[] |
MIPMAP_BUFFER |
static DynamicTexture |
MISSING_TEXTURE |
static int[] |
MISSING_TEXTURE_DATA |
Constructor and Description |
---|
TextureUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
allocateTexture(int textureId,
int width,
int height) |
static void |
allocateTextureImpl(int glTextureId,
int mipmapLevels,
int width,
int height) |
static int |
anaglyphColor(int p_177054_0_) |
(package private) static void |
bindTexture(int p_94277_0_) |
private static int |
blendColorComponent(int p_147944_0_,
int p_147944_1_,
int p_147944_2_,
int p_147944_3_,
int p_147944_4_) |
private static int |
blendColors(int p_147943_0_,
int p_147943_1_,
int p_147943_2_,
int p_147943_3_,
boolean p_147943_4_) |
private static void |
copyToBuffer(int[] p_110990_0_,
int p_110990_1_) |
private static void |
copyToBufferPos(int[] p_110994_0_,
int p_110994_1_,
int p_110994_2_) |
static void |
deleteTexture(int textureId) |
static int[][] |
generateMipmapData(int p_147949_0_,
int p_147949_1_,
int[][] p_147949_2_) |
private static float |
getColorGamma(int p_188543_0_) |
static int |
glGenTextures() |
static void |
processPixelValues(int[] p_147953_0_,
int p_147953_1_,
int p_147953_2_) |
static java.awt.image.BufferedImage |
readBufferedImage(java.io.InputStream imageStream) |
static int[] |
readImageData(IResourceManager resourceManager,
ResourceLocation imageLocation) |
private static void |
setTextureBlurMipmap(boolean p_147954_0_,
boolean p_147954_1_) |
private static void |
setTextureBlurred(boolean p_147951_0_) |
private static void |
setTextureClamped(boolean p_110997_0_) |
static int[] |
updateAnaglyph(int[] p_110985_0_) |
static void |
uploadTexture(int textureId,
int[] p_110988_1_,
int p_110988_2_,
int p_110988_3_) |
static int |
uploadTextureImage(int textureId,
java.awt.image.BufferedImage texture) |
static int |
uploadTextureImageAllocate(int textureId,
java.awt.image.BufferedImage texture,
boolean blur,
boolean clamp) |
static int |
uploadTextureImageSub(int textureId,
java.awt.image.BufferedImage p_110995_1_,
int p_110995_2_,
int p_110995_3_,
boolean p_110995_4_,
boolean p_110995_5_) |
private static void |
uploadTextureImageSubImpl(java.awt.image.BufferedImage p_110993_0_,
int p_110993_1_,
int p_110993_2_,
boolean p_110993_3_,
boolean p_110993_4_) |
static void |
uploadTextureMipmap(int[][] p_147955_0_,
int p_147955_1_,
int p_147955_2_,
int p_147955_3_,
int p_147955_4_,
boolean p_147955_5_,
boolean p_147955_6_) |
private static void |
uploadTextureSub(int p_147947_0_,
int[] p_147947_1_,
int p_147947_2_,
int p_147947_3_,
int p_147947_4_,
int p_147947_5_,
boolean p_147947_6_,
boolean p_147947_7_,
boolean p_147947_8_) |
private static final org.apache.logging.log4j.Logger LOGGER
private static final java.nio.IntBuffer DATA_BUFFER
public static final DynamicTexture MISSING_TEXTURE
public static final int[] MISSING_TEXTURE_DATA
private static final float[] COLOR_GAMMAS
private static final int[] MIPMAP_BUFFER
private static float getColorGamma(int p_188543_0_)
public static int glGenTextures()
public static void deleteTexture(int textureId)
public static int uploadTextureImage(int textureId, java.awt.image.BufferedImage texture)
public static void uploadTexture(int textureId, int[] p_110988_1_, int p_110988_2_, int p_110988_3_)
public static int[][] generateMipmapData(int p_147949_0_, int p_147949_1_, int[][] p_147949_2_)
private static int blendColors(int p_147943_0_, int p_147943_1_, int p_147943_2_, int p_147943_3_, boolean p_147943_4_)
private static int blendColorComponent(int p_147944_0_, int p_147944_1_, int p_147944_2_, int p_147944_3_, int p_147944_4_)
public static void uploadTextureMipmap(int[][] p_147955_0_, int p_147955_1_, int p_147955_2_, int p_147955_3_, int p_147955_4_, boolean p_147955_5_, boolean p_147955_6_)
private static void uploadTextureSub(int p_147947_0_, int[] p_147947_1_, int p_147947_2_, int p_147947_3_, int p_147947_4_, int p_147947_5_, boolean p_147947_6_, boolean p_147947_7_, boolean p_147947_8_)
public static int uploadTextureImageAllocate(int textureId, java.awt.image.BufferedImage texture, boolean blur, boolean clamp)
public static void allocateTexture(int textureId, int width, int height)
public static void allocateTextureImpl(int glTextureId, int mipmapLevels, int width, int height)
public static int uploadTextureImageSub(int textureId, java.awt.image.BufferedImage p_110995_1_, int p_110995_2_, int p_110995_3_, boolean p_110995_4_, boolean p_110995_5_)
private static void uploadTextureImageSubImpl(java.awt.image.BufferedImage p_110993_0_, int p_110993_1_, int p_110993_2_, boolean p_110993_3_, boolean p_110993_4_)
private static void setTextureClamped(boolean p_110997_0_)
private static void setTextureBlurred(boolean p_147951_0_)
private static void setTextureBlurMipmap(boolean p_147954_0_, boolean p_147954_1_)
private static void copyToBuffer(int[] p_110990_0_, int p_110990_1_)
private static void copyToBufferPos(int[] p_110994_0_, int p_110994_1_, int p_110994_2_)
static void bindTexture(int p_94277_0_)
public static int[] readImageData(IResourceManager resourceManager, ResourceLocation imageLocation) throws java.io.IOException
java.io.IOException
public static java.awt.image.BufferedImage readBufferedImage(java.io.InputStream imageStream) throws java.io.IOException
java.io.IOException
public static int[] updateAnaglyph(int[] p_110985_0_)
public static int anaglyphColor(int p_177054_0_)
public static void processPixelValues(int[] p_147953_0_, int p_147953_1_, int p_147953_2_)