public class GLTextureLoader extends java.lang.Object implements GLGarbageSource
Modifier and Type | Field and Description |
---|---|
static int[] |
SWIZZLE_GRAY |
static int[] |
SWIZZLE_GRAY_ALPHA |
static int[] |
SWIZZLE_RGBA |
Constructor and Description |
---|
GLTextureLoader()
Create a new texture loader based on the game panel
|
Modifier and Type | Method and Description |
---|---|
void |
clearAllTextures() |
void |
clearAllTextures(com.jogamp.opengl.GL gl) |
boolean |
clearTexture(com.jogamp.opengl.GL gl,
java.lang.String id) |
boolean |
clearTexture(java.lang.String id) |
GLTexture |
createTexture(com.jogamp.opengl.GL gl,
int target,
TextureContent content) |
void |
dispose(com.jogamp.opengl.GL gl) |
void |
garbage(com.jogamp.opengl.GL gl) |
GLTexture |
getAcquiredTexture(com.jogamp.opengl.GL gl,
TextureContent content)
Load a texture with one held reference to prevent garbage collection
|
GLTexture |
getTextureByNameAcquired(java.lang.String name) |
boolean |
isTextureValid(java.lang.String id) |
public static final int[] SWIZZLE_GRAY_ALPHA
public static final int[] SWIZZLE_GRAY
public static final int[] SWIZZLE_RGBA
public GLTextureLoader()
public GLTexture getAcquiredTexture(com.jogamp.opengl.GL gl, TextureContent content)
public GLTexture createTexture(com.jogamp.opengl.GL gl, int target, TextureContent content)
public boolean clearTexture(com.jogamp.opengl.GL gl, java.lang.String id)
public boolean clearTexture(java.lang.String id)
public void clearAllTextures()
public void clearAllTextures(com.jogamp.opengl.GL gl)
public GLTexture getTextureByNameAcquired(java.lang.String name)
public boolean isTextureValid(java.lang.String id)
public void dispose(com.jogamp.opengl.GL gl)
dispose
in interface GLGarbageSource
public void garbage(com.jogamp.opengl.GL gl)
garbage
in interface GLGarbageSource