source: trunk/VUT/Ogre/include/OgreSolidHalfBoundingBox.h @ 85

Revision 85, 1.3 KB checked in by mattausch, 19 years ago (diff)

corrected bug so chc is much faster than stop and wait

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