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

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
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
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.