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