Revision 3123,
741 bytes
checked in by mattausch, 16 years ago
(diff) |
working on ssao for dynamic objects, found error with tight bounds
|
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 |
|
---|
| 14 | /** Loader for a bounding volume hierarchy.
|
---|
| 15 | */
|
---|
| 16 | class BvhLoader
|
---|
| 17 | {
|
---|
| 18 | public:
|
---|
[3072] | 19 | /** Creates and loads bvh with static and dynamic objects.
|
---|
| 20 | The static part of the hierarchy is loaded from the disc,
|
---|
| 21 | the dynamic part is created and changed on the fly.
|
---|
| 22 | */
|
---|
| 23 | Bvh *Load(const std::string &filename,
|
---|
| 24 | const SceneEntityContainer &staticEntities,
|
---|
[3123] | 25 | const SceneEntityContainer &dynamicEntities,
|
---|
| 26 | int maxDepthForTestingChildren);
|
---|
[2755] | 27 |
|
---|
| 28 | protected:
|
---|
| 29 |
|
---|
[2795] | 30 | BvhNode *LoadNextNode(igzstream &stream, BvhInterior *parent);
|
---|
[2755] | 31 | };
|
---|
| 32 |
|
---|
| 33 | }
|
---|
| 34 |
|
---|
| 35 | #endif // __BVHLOADER_H |
---|
Note: See
TracBrowser
for help on using the repository browser.