Line | |
---|
1 | /*
|
---|
2 | -----------------------------------------------------------------------------
|
---|
3 | This source file is part of the GameTools Project
|
---|
4 | http://www.gametools.org
|
---|
5 |
|
---|
6 | Author: Martin Szydlowski
|
---|
7 | -----------------------------------------------------------------------------
|
---|
8 | */
|
---|
9 |
|
---|
10 | #ifndef _OgreBiHierarchyCamera_H_
|
---|
11 | #define _OgreBiHierarchyCamera_H_
|
---|
12 |
|
---|
13 | #include <OgreCamera.h>
|
---|
14 |
|
---|
15 | #define BIHCAMPTR_CAST(cam) (static_cast<BiHierarchyCamera *>(cam))
|
---|
16 |
|
---|
17 | namespace Ogre
|
---|
18 | {
|
---|
19 |
|
---|
20 | class BiHierarchyCamera : public Camera
|
---|
21 | {
|
---|
22 | public:
|
---|
23 | enum NodeVisibility
|
---|
24 | {
|
---|
25 | BIHNV_NONE,
|
---|
26 | BIHNV_PART,
|
---|
27 | BIHNV_FULL
|
---|
28 | };
|
---|
29 |
|
---|
30 | // default constructor
|
---|
31 | BiHierarchyCamera(const String& name, SceneManager *sm);
|
---|
32 | // default destructor
|
---|
33 | ~BiHierarchyCamera();
|
---|
34 |
|
---|
35 | // regular visibility, like isVisible
|
---|
36 | NodeVisibility getVisibilitySimple(const AxisAlignedBox& box ) const;
|
---|
37 | // enhanced visibility
|
---|
38 | NodeVisibility getVisibilityEnhanced(const AxisAlignedBox& box) const;
|
---|
39 |
|
---|
40 | // statistical info
|
---|
41 | mutable unsigned int mNumVisQueries;
|
---|
42 | };
|
---|
43 |
|
---|
44 | } // namespace Ogre
|
---|
45 |
|
---|
46 | #endif // _OgreBiHierarchyCamera_H_
|
---|
Note: See
TracBrowser
for help on using the repository browser.