Revision 2757,
826 bytes
checked in by mattausch, 16 years ago
(diff) |
loading textured scenes possible
|
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 CHCDemo
|
---|
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 | bool Load(const std::string &filename, SceneEntityContainer &geometry);
|
---|
28 |
|
---|
29 | protected:
|
---|
30 |
|
---|
31 | void LoadTextures(std::ifstream &str);
|
---|
32 |
|
---|
33 | SceneEntity *LoadSceneEntity(std::ifstream &str);
|
---|
34 | Material *LoadMaterial(std::ifstream &str);
|
---|
35 | Geometry *LoadGeometry(std::ifstream &str);
|
---|
36 |
|
---|
37 | /*SceneEntity *LoadShape(igzstream &str);
|
---|
38 | Material *LoadMaterial(igzstream &str);
|
---|
39 | Geometry *LoadGeometry(igzstream &str);
|
---|
40 | */
|
---|
41 |
|
---|
42 | std::map<int, Texture *> mTextureTable;
|
---|
43 | };
|
---|
44 |
|
---|
45 | }
|
---|
46 | #endif
|
---|
Note: See
TracBrowser
for help on using the repository browser.