source: GTP/trunk/App/Demos/Vis/CHC_revisited/BvhLoader.h @ 2755

Revision 2755, 601 bytes checked in by mattausch, 17 years ago (diff)
Line 
1// This file has been written by Jiri Bittner, October 2006
2
3#ifndef __BVHLOADER_H
4#define __BVHLOADER_H
5
6#include "Bvh.h"
7
8
9namespace CHCDemo
10{
11
12/** Loader for a bounding volume hierarchy.
13*/
14class BvhLoader
15{
16public:
17
18        Bvh *LoadFromFile(const std::string &filename, const SceneEntityContainer &entities);
19
20protected:
21       
22        BvhLeaf *ImportBinLeaf(std::ifstream &stream, BvhInterior *parent);
23
24        BvhInterior *ImportBinInterior(std::ifstream &stream, BvhInterior *parent);
25
26        BvhNode *LoadNextNode(std::ifstream &stream, BvhInterior *parent);
27
28
29};
30
31}
32
33#endif // __BVHLOADER_H
Note: See TracBrowser for help on using the repository browser.