public class TextureUtil
extends java.lang.Object
Constructor and Description |
---|
TextureUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
allocateTexture(int textureId,
int width,
int height) |
static void |
allocateTexture(NativeImage.PixelFormatGLCode pixelFormat,
int glTextureId,
int width,
int height) |
static void |
allocateTextureImpl(int glTextureId,
int mipmapLevels,
int width,
int height) |
static void |
allocateTextureImpl(NativeImage.PixelFormatGLCode internalFormat,
int glTextureId,
int mipmapLevels,
int width,
int height) |
static void |
deleteTexture(int textureId) |
static int |
glGenTextures() |
static int[] |
makePixelArray(IResourceManager resourceManager,
ResourceLocation imageLocation)
Deprecated.
|
static java.nio.ByteBuffer |
readToNativeBuffer(java.io.InputStream inputStream) |
public static int glGenTextures()
public static void deleteTexture(int textureId)
public static void allocateTexture(int textureId, int width, int height)
public static void allocateTexture(NativeImage.PixelFormatGLCode pixelFormat, int glTextureId, int width, int height)
public static void allocateTextureImpl(int glTextureId, int mipmapLevels, int width, int height)
public static void allocateTextureImpl(NativeImage.PixelFormatGLCode internalFormat, int glTextureId, int mipmapLevels, int width, int height)
@Deprecated public static int[] makePixelArray(IResourceManager resourceManager, ResourceLocation imageLocation) throws java.io.IOException
java.io.IOException
public static java.nio.ByteBuffer readToNativeBuffer(java.io.InputStream inputStream) throws java.io.IOException
java.io.IOException