Rev | Line | |
---|
[2755] | 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 |
|
---|
[2795] | 8 | class igzstream;
|
---|
[2755] | 9 |
|
---|
[2795] | 10 |
|
---|
[2776] | 11 | namespace CHCDemoEngine
|
---|
[2755] | 12 | {
|
---|
| 13 |
|
---|
[3266] | 14 | /** Loads or creates a bounding volume hierarchy.
|
---|
[2755] | 15 | */
|
---|
[3266] | 16 | class BvhFactory
|
---|
[2755] | 17 | {
|
---|
| 18 | public:
|
---|
[3266] | 19 | /** Creates a bvh.
|
---|
| 20 | the static part of the hierarchy is loaded from disc.
|
---|
| 21 | the dynamic part of the hierarchy is created from scratch.
|
---|
[3072] | 22 | */
|
---|
[3266] | 23 | Bvh *Create(const std::string &staticBvhFilename,
|
---|
| 24 | const SceneEntityContainer &staticEntities,
|
---|
| 25 | const SceneEntityContainer &dynamicEntities,
|
---|
| 26 | int maxDepthForTestingChildren);
|
---|
[2755] | 27 |
|
---|
[3266] | 28 | /** Creates a bvh from scratch.
|
---|
| 29 | */
|
---|
| 30 | Bvh *Create(
|
---|
| 31 | const SceneEntityContainer &staticEntities,
|
---|
| 32 | const SceneEntityContainer &dynamicEntities,
|
---|
| 33 | int maxDepthForTestingChildren);
|
---|
| 34 |
|
---|
[2755] | 35 | protected:
|
---|
| 36 |
|
---|
[2795] | 37 | BvhNode *LoadNextNode(igzstream &stream, BvhInterior *parent);
|
---|
[2755] | 38 | };
|
---|
| 39 |
|
---|
| 40 | }
|
---|
| 41 |
|
---|
| 42 | #endif // __BVHLOADER_H |
---|
Note: See
TracBrowser
for help on using the repository browser.