Revision 2800,
651 bytes
checked in by mattausch, 16 years ago
(diff) |
friendly culling debug version with timers, no materials
|
Rev | Line | |
---|
[2764] | 1 | #ifndef _SCENEQUERY_H__
|
---|
| 2 | #define _SCENEQUERY_H__
|
---|
| 3 |
|
---|
| 4 | #include "common.h"
|
---|
| 5 | #include "AxisAlignedBox3.h"
|
---|
| 6 |
|
---|
[2800] | 7 |
|
---|
[2776] | 8 | namespace CHCDemoEngine
|
---|
[2764] | 9 | {
|
---|
| 10 |
|
---|
[2778] | 11 | class RenderTraverser;
|
---|
| 12 |
|
---|
| 13 |
|
---|
[2764] | 14 | /** A simple class that computes the first intersection of a horizontal ray with
|
---|
| 15 | the scene. Can be used to "drop" objects in the scene.
|
---|
| 16 | */
|
---|
| 17 | class SceneQuery
|
---|
| 18 | {
|
---|
| 19 | public:
|
---|
| 20 |
|
---|
[2778] | 21 | SceneQuery(const AxisAlignedBox3 &sceneBox, RenderTraverser *traverser);
|
---|
[2796] | 22 | ~SceneQuery() { DEL_ARRAY_PTR(mDepth); }
|
---|
[2764] | 23 | bool CalcIntersection(Vector3 &pt);
|
---|
| 24 |
|
---|
| 25 | protected:
|
---|
| 26 |
|
---|
[2778] | 27 | void Prepare(RenderTraverser *traverser);
|
---|
[2764] | 28 |
|
---|
| 29 |
|
---|
| 30 | ///////////
|
---|
| 31 |
|
---|
| 32 | AxisAlignedBox3 mSceneBox;
|
---|
[2796] | 33 |
|
---|
[2800] | 34 | unsigned char *mDepth;
|
---|
[2764] | 35 | };
|
---|
| 36 |
|
---|
| 37 | }
|
---|
| 38 |
|
---|
| 39 | #endif
|
---|
Note: See
TracBrowser
for help on using the repository browser.