public class TextureUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static org.apache.logging.log4j.Logger |
LOGGER |
Constructor and Description |
---|
TextureUtil() |
Modifier and Type | Method and Description |
---|---|
private static void |
bindTexture(int textureId) |
static int |
generateTextureId() |
static void |
initTexture(java.nio.IntBuffer bufferIn,
int width,
int height) |
static void |
prepareImage(int textureId,
int width,
int height) |
static void |
prepareImage(int textureId,
int mipmapLevel,
int width,
int height) |
static void |
prepareImage(NativeImage.PixelFormatGLCode pixelFormat,
int textureId,
int width,
int height) |
static void |
prepareImage(NativeImage.PixelFormatGLCode pixelFormat,
int textureId,
int mipmapLevel,
int width,
int height) |
static java.lang.String |
readResourceAsString(java.io.InputStream inputStreamIn) |
static java.nio.ByteBuffer |
readToBuffer(java.io.InputStream inputStreamIn) |
static void |
releaseTextureId(int textureId) |
public static int generateTextureId()
public static void releaseTextureId(int textureId)
public static void prepareImage(int textureId, int width, int height)
public static void prepareImage(NativeImage.PixelFormatGLCode pixelFormat, int textureId, int width, int height)
public static void prepareImage(int textureId, int mipmapLevel, int width, int height)
public static void prepareImage(NativeImage.PixelFormatGLCode pixelFormat, int textureId, int mipmapLevel, int width, int height)
private static void bindTexture(int textureId)
public static java.nio.ByteBuffer readToBuffer(java.io.InputStream inputStreamIn) throws java.io.IOException
java.io.IOException
public static java.lang.String readResourceAsString(java.io.InputStream inputStreamIn)
public static void initTexture(java.nio.IntBuffer bufferIn, int width, int height)