Revision 1312,
1.0 KB
checked in by szydlowski, 18 years ago
(diff) |
per-frame-stats with internal rendering - use depth pass issue unresolved
|
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 _OgreKdTreeCamera_H_
|
---|
11 | #define _OgreKdTreeCamera_H_
|
---|
12 |
|
---|
13 | #include <OgreCamera.h>
|
---|
14 |
|
---|
15 | #define KDCAMPTR_CAST(cam) (static_cast<KdTreeCamera *>(cam))
|
---|
16 |
|
---|
17 | namespace Ogre
|
---|
18 | {
|
---|
19 |
|
---|
20 | class KdTreeCamera : public Camera
|
---|
21 | {
|
---|
22 | public:
|
---|
23 | enum NodeVisibility
|
---|
24 | {
|
---|
25 | KDNV_NONE,
|
---|
26 | KDNV_PART,
|
---|
27 | KDNV_FULL
|
---|
28 | };
|
---|
29 |
|
---|
30 | // default constructor
|
---|
31 | KdTreeCamera(const String& name, SceneManager *sm);
|
---|
32 | // default destructor
|
---|
33 | ~KdTreeCamera();
|
---|
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 // _OgreKdTreeCamera_H_ |
---|
Note: See
TracBrowser
for help on using the repository browser.