|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.rico.engine.resource.TextureManager
public class TextureManager
This class can be used as a container that manages the different texture used in the game. It implements the singleton pattern.
Method Summary | |
---|---|
void |
add(java.lang.String name,
com.sun.opengl.util.texture.Texture tex)
Adds a texture to the texture manager. |
void |
clear()
Clears the textures from the texture manager |
com.sun.opengl.util.texture.Texture |
get(java.lang.String name)
Returns the texture that is referenced by the specified name. |
static TextureManager |
getInstance()
Returns the singleton instance of the texture manager. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static TextureManager getInstance()
public void add(java.lang.String name, com.sun.opengl.util.texture.Texture tex)
tex
- texture to add to the texture managerpublic com.sun.opengl.util.texture.Texture get(java.lang.String name)
name
- reference name for the texture to be retrieved
public void clear()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |