source: GTP/trunk/App/Demos/Vis/CHC_revisited/BinaryLoader.h @ 2764

Revision 2764, 896 bytes checked in by mattausch, 17 years ago (diff)
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
13namespace CHCDemo
14{
15
16class igzstream;
17class SceneEntity;
18class Material;
19class Geometry;
20class Texture;
21
22
23class BinaryLoader
24{
25public:
26
27        bool Load(const std::string &filename, SceneEntityContainer &geometry);
28
29protected:
30       
31        void LoadTextures(std::ifstream &str);
32        void LoadShapes(std::ifstream &str);
33        void LoadSceneEntities(std::ifstream &str, SceneEntityContainer &entities);
34
35        SceneEntity *LoadSceneEntity(std::ifstream &str);
36        Material *LoadMaterial(std::ifstream &str);
37        Geometry *LoadGeometry(std::ifstream &str);
38
39        std::map<int, Texture *> mTextureTable;
40        std::map<int, Material *> mMaterialTable;
41        std::map<int, Geometry *> mGeometryTable;
42};
43
44}
45#endif
Note: See TracBrowser for help on using the repository browser.