Line | |
---|
1 | #ifndef __BinaryLoader_H__
|
---|
2 | #define __BinaryLoader_H__
|
---|
3 |
|
---|
4 | // note use forward declaration instead
|
---|
5 | #include <string>
|
---|
6 | #include <iostream>
|
---|
7 | #include <fstream>
|
---|
8 | #include <map>
|
---|
9 |
|
---|
10 | #include "common.h"
|
---|
11 |
|
---|
12 |
|
---|
13 | namespace CHCDemoEngine
|
---|
14 | {
|
---|
15 |
|
---|
16 | class igzstream;
|
---|
17 | class SceneEntity;
|
---|
18 | class Material;
|
---|
19 | class Geometry;
|
---|
20 | class Texture;
|
---|
21 |
|
---|
22 |
|
---|
23 | class BinaryLoader
|
---|
24 | {
|
---|
25 | public:
|
---|
26 |
|
---|
27 | ~BinaryLoader();
|
---|
28 |
|
---|
29 | bool Load(const std::string &filename, SceneEntityContainer &geometry);
|
---|
30 |
|
---|
31 | protected:
|
---|
32 |
|
---|
33 | void LoadTextures(std::ifstream &str);
|
---|
34 | void LoadShapes(std::ifstream &str);
|
---|
35 | void LoadSceneEntities(std::ifstream &str, SceneEntityContainer &entities);
|
---|
36 |
|
---|
37 | SceneEntity *LoadSceneEntity(std::ifstream &str);
|
---|
38 | Material *LoadMaterial(std::ifstream &str);
|
---|
39 | Geometry *LoadGeometry(std::ifstream &str);
|
---|
40 |
|
---|
41 | std::map<int, Texture *> mTextureTable;
|
---|
42 | std::map<int, Material *> mMaterialTable;
|
---|
43 | std::map<int, Geometry *> mGeometryTable;
|
---|
44 | };
|
---|
45 |
|
---|
46 | }
|
---|
47 | #endif
|
---|
Note: See
TracBrowser
for help on using the repository browser.