TDME2 1.9.121
MeshManager.h
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4#include <unordered_map>
5
6#include <tdme/tdme.h>
10
11using std::string;
12using std::unordered_map;
13
16
17/**
18 * Mesh manager
19 * @author Andreas Drewke
20 * @version $Id$
21 */
23{
24private:
25 unordered_map<string, MeshManager_MeshManaged*> meshes;
26
27public:
28 /**
29 * Public constructor
30 */
32
33 /**
34 * Destructor
35 */
37
38 /**
39 * Get mesh from managed meshes
40 * @param meshId mesh id
41 * @return object 3d node mesh or null
42 */
43 Object3DNodeMesh* getMesh(const string& meshId);
44
45 /**
46 * Adds a mesh to manager
47 * @param meshId mesh id
48 * @param mesh mesh
49 */
50 void addMesh(const string& meshId, Object3DNodeMesh* mesh);
51
52 /**
53 * Removes a mesh from manager
54 * @param meshId mesh id
55 */
56 void removeMesh(const string& meshId);
57
58};
unordered_map< string, MeshManager_MeshManaged * > meshes
Definition: MeshManager.h:25
void removeMesh(const string &meshId)
Removes a mesh from manager.
Definition: MeshManager.cpp:51
Object3DNodeMesh * getMesh(const string &meshId)
Get mesh from managed meshes.
Definition: MeshManager.cpp:29
void addMesh(const string &meshId, Object3DNodeMesh *mesh)
Adds a mesh to manager.
Definition: MeshManager.cpp:42
Object 3D node mesh specifically for rendering.