-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathModelManager.h
More file actions
39 lines (31 loc) · 863 Bytes
/
ModelManager.h
File metadata and controls
39 lines (31 loc) · 863 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef MODELMANAGER_H
#define MODELMANAGER_H
#include <map>
#include <string>
#include "Util.h"
using namespace std;
// Used Classes
class CModel;
// New type definitions
typedef map< string, CModel* > MapModel;
typedef pair<string, CModel*> Model_Pair;
class CModelManager
{
public:
~CModelManager(void);
static CModelManager * GetInstance();
bool Draw(string modelName);
CPoint3D getModelBBMin(string modelName);
CPoint3D getModelBBMax(string modelName);
CPoint3D getModelSize(string modelName);
CPoint3D getModelRealSize(string modelName);
CPoint3D getModelCenter(string modelName);
float getModelRadius(string modelName);
void CleanUp();
private:
static CModelManager* m_ModelManager;
MapModel m_Models;
CModelManager(void);
bool LoadModel(string modelName);
};
#endif