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