80 GLS_EXPORT
Culler(
bool enabled =
true );
98 if( ( _planes[ 0 ].a * center.x + _planes[ 0 ].b * center.y + _planes[ 0 ].c * center.z + _planes[ 0 ].d ) <= -radius )
100 if( ( _planes[ 1 ].a * center.x + _planes[ 1 ].b * center.y + _planes[ 1 ].c * center.z + _planes[ 1 ].d ) <= -radius )
102 if( ( _planes[ 2 ].a * center.x + _planes[ 2 ].b * center.y + _planes[ 2 ].c * center.z + _planes[ 2 ].d ) <= -radius )
104 if( ( _planes[ 3 ].a * center.x + _planes[ 3 ].b * center.y + _planes[ 3 ].c * center.z + _planes[ 3 ].d ) <= -radius )
106 if( ( _planes[ 4 ].a * center.x + _planes[ 4 ].b * center.y + _planes[ 4 ].c * center.z + _planes[ 4 ].d ) <= -radius )
108 if( ( _planes[ 5 ].a * center.x + _planes[ 5 ].b * center.y + _planes[ 5 ].c * center.z + _planes[ 5 ].d ) <= -radius )
117 inline bool Enabled(
void )
const {
return _enabled; }
123 inline void Enabled(
bool newVal ) { _enabled = newVal; }
Class to contain current OpenGL view, projection and draw matrices.
Definition: util.h:471
Culler(bool enabled=true)
bool SphereOutsideFrustum(const Vector ¢er, const float radius) const
Definition: cull.h:96
void Enabled(bool newVal)
Definition: cull.h:123
void ExtractFrustum(OpenGLMatrices &matrices)
The disti::Vertex class. A class for manipulating 3D vertices.
Generally useful defines, macros, enumerations and function prototypes.
CullResultEnum
Definition: cull.h:53
PlaneClass _planes[6]
Definition: cull.h:74
CullResultEnum SphereInFrustum(const Vector &v, const float radius) const
const PlaneClass & Plane(const ClippingPlanesEnum &whichPlane) const
bool Enabled(void) const
Definition: cull.h:117
Definition: bmpimage.h:46
ClippingPlanesEnum
Definition: cull.h:61