source: trunk/VUT/obsolete/OcclusionCullingSceneManager/include/OgreSolidHalfBoundingBox.h @ 54

Revision 54, 1.3 KB checked in by mattausch, 20 years ago (diff)

fixed terrainscenemanager bug

Line 
1#ifndef _SolidHalfBoundingBox_H__
2#define _SolidHalfBoundingBox_H__
3
4#include "OgrePrerequisites.h"
5
6#include "OgreWireBoundingBox.h"
7
8namespace Ogre {
9
10    /** Allows the rendering of one half of a solid bounding box.
11        @remarks
12            This class builds a wireframe renderable from a given aabb. A pointer to this class can be
13                        added to a render queue to display the bounding box of an object.
14    */
15        class SolidHalfBoundingBox : public WireBoundingBox
16        {
17        public:
18
19                SolidHalfBoundingBox( bool isFirstHalf );
20                void setupBoundingBox( const AxisAlignedBox& aabb );
21                /** Override this method to prevent parent transforms (rotation,translation,scale)
22                and to make it public.
23        */
24                void getWorldTransforms( Matrix4* xform ) const;
25
26    protected:
27       
28        /** Builds the wireframe line list.
29                @param the axis aligned bounding box for setting up the list.
30        */
31                void setupBoundingBoxVertices( const AxisAlignedBox& aab );
32                /**
33                        Sets the material used for occlusion queries.
34                        @remarks the material is called "OcclusionQuery" and
35                        uses no lighting, no depth write, and no colours
36                */
37                void setOcclusionQueryMaterial( void );
38                /** Whether this half box is the first or the second half of the bounding box.
39                */
40                bool mIsFirstHalf;     
41        };
42
43}// namespace
44
45#endif
46
47
Note: See TracBrowser for help on using the repository browser.