TDME2 1.9.121
Public Member Functions | Private Attributes | List of all members
MeshManager Class Referencefinal

Mesh manager. More...

#include <tdme/engine/subsystems/manager/MeshManager.h>

Collaboration diagram for MeshManager:
Collaboration graph

Public Member Functions

 MeshManager ()
 Public constructor. More...
 
 ~MeshManager ()
 Destructor. More...
 
Object3DNodeMeshgetMesh (const string &meshId)
 Get mesh from managed meshes. More...
 
void addMesh (const string &meshId, Object3DNodeMesh *mesh)
 Adds a mesh to manager. More...
 
void removeMesh (const string &meshId)
 Removes a mesh from manager. More...
 

Private Attributes

unordered_map< string, MeshManager_MeshManaged * > meshes
 

Detailed Description

Mesh manager.

Author
Andreas Drewke
Version
$Id$

Definition at line 22 of file MeshManager.h.

Constructor & Destructor Documentation

◆ MeshManager()

Public constructor.

Definition at line 19 of file MeshManager.cpp.

◆ ~MeshManager()

Destructor.

Definition at line 23 of file MeshManager.cpp.

Member Function Documentation

◆ addMesh()

void addMesh ( const string &  meshId,
Object3DNodeMesh mesh 
)

Adds a mesh to manager.

Parameters
meshIdmesh id
meshmesh

Definition at line 42 of file MeshManager.cpp.

◆ getMesh()

Object3DNodeMesh * getMesh ( const string &  meshId)

Get mesh from managed meshes.

Parameters
meshIdmesh id
Returns
object 3d node mesh or null

Definition at line 29 of file MeshManager.cpp.

◆ removeMesh()

void removeMesh ( const string &  meshId)

Removes a mesh from manager.

Parameters
meshIdmesh id

Definition at line 51 of file MeshManager.cpp.

Member Data Documentation

◆ meshes

unordered_map<string, MeshManager_MeshManaged*> meshes
private

Definition at line 25 of file MeshManager.h.


The documentation for this class was generated from the following files: