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 "common.h"
|
---|
9 |
|
---|
10 |
|
---|
11 | namespace CHCDemo
|
---|
12 | {
|
---|
13 |
|
---|
14 | class igzstream;
|
---|
15 | class SceneEntity;
|
---|
16 | class Material;
|
---|
17 | class Geometry;
|
---|
18 |
|
---|
19 |
|
---|
20 | class BinaryLoader
|
---|
21 | {
|
---|
22 | public:
|
---|
23 |
|
---|
24 | bool Load(const std::string &filename, SceneEntityContainer &geometry);
|
---|
25 |
|
---|
26 | protected:
|
---|
27 |
|
---|
28 | SceneEntity *LoadSceneEntity(std::ifstream &str);
|
---|
29 | Material *LoadMaterial(std::ifstream &str);
|
---|
30 | Geometry *LoadGeometry(std::ifstream &str);
|
---|
31 |
|
---|
32 | /*SceneEntity *LoadShape(igzstream &str);
|
---|
33 | Material *LoadMaterial(igzstream &str);
|
---|
34 | Geometry *LoadGeometry(igzstream &str);
|
---|
35 | */
|
---|
36 | };
|
---|
37 |
|
---|
38 | }
|
---|
39 | #endif
|
---|
Note: See
TracBrowser
for help on using the repository browser.