Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00022
00023 #ifndef __VR3MESHMANAGER_H__
00024 #define __VR3MESHMANAGER_H__
00025
00026
00027 #include <map>
00028
00029 #include <VR3Map.h>
00030
00032
00047 class VR3MeshManager {
00048
00050 struct MapElement {
00052 VR3Mesh* mesh;
00054 int count;
00055 };
00056
00058
00059 static std::map<std::string, std::map<int,MapElement>, VR3Map::Less> ms_meshes;
00060
00062 VR3MeshManager();
00063
00064 public:
00065
00066
00067
00069
00070
00072
00085 static void LoadAAM( const char* file_name, VR3Mesh* mesh,
00086 const char* mesh_name = 0, int objID = -1 );
00087
00089
00090
00091
00093
00094
00095 private:
00096
00098
00107 static void CreateMesh(VR3Mesh* mesh);
00108
00109 public:
00110
00112
00125 static VR3Mesh* FindMesh( const char* file_name,
00126 const char* mesh_name = 0, int objID = -1 );
00127
00129
00137 static void DeleteReference(VR3Mesh* mesh);
00138
00140
00149 static void AddReference(VR3Mesh* mesh);
00150
00152
00153
00154
00156
00157
00159
00175 static int ListMeshesAAM( const char* file_name,
00176 int ids[],
00177 std::string mesh_names[],
00178 int count );
00179
00181
00182 };
00183
00184 #endif