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 |
|
---|
9 | namespace CHCDemo
|
---|
10 | {
|
---|
11 |
|
---|
12 | /** Loader for a bounding volume hierarchy.
|
---|
13 | */
|
---|
14 | class BvhLoader
|
---|
15 | {
|
---|
16 | public:
|
---|
17 |
|
---|
18 | Bvh *LoadFromFile(const std::string &filename, const SceneEntityContainer &entities);
|
---|
19 |
|
---|
20 | protected:
|
---|
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.