Revision 162,
584 bytes
checked in by bittner, 19 years ago
(diff) |
functional raycasting version
|
Line | |
---|
1 | #ifndef _SceneGraph_H__ |
---|
2 | #define _SceneGraph_H__ |
---|
3 | |
---|
4 | #include <string> |
---|
5 | using namespace std; |
---|
6 | |
---|
7 | #include "Containers.h" |
---|
8 | #include "AxisAlignedBox3.h" |
---|
9 | |
---|
10 | |
---|
11 | /** Basic scene graph node, we are interested only in bounding boxes and topology |
---|
12 | of the scene graph */ |
---|
13 | class SceneGraphNode { |
---|
14 | public: |
---|
15 | |
---|
16 | |
---|
17 | MeshContainer mGeometry; |
---|
18 | SceneGraphNodeContainer mChildren; |
---|
19 | AxisAlignedBox3 mBox; |
---|
20 | }; |
---|
21 | |
---|
22 | |
---|
23 | /** Scene graph class */ |
---|
24 | class SceneGraph { |
---|
25 | |
---|
26 | public: |
---|
27 | SceneGraphNode *mRoot; |
---|
28 | bool Export(const string filename); |
---|
29 | |
---|
30 | int CollectMeshInstaces(MeshContainer *instances); |
---|
31 | |
---|
32 | protected: |
---|
33 | }; |
---|
34 | |
---|
35 | |
---|
36 | |
---|
37 | |
---|
38 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.