85 GLS_EXPORT
Culler(
bool enabled=
true);
103 if( (_planes[0].a * center.x + _planes[0].b * center.y + _planes[0].c * center.z + _planes[0].d) <= -radius )
105 if( (_planes[1].a * center.x + _planes[1].b * center.y + _planes[1].c * center.z + _planes[1].d) <= -radius )
107 if( (_planes[2].a * center.x + _planes[2].b * center.y + _planes[2].c * center.z + _planes[2].d) <= -radius )
109 if( (_planes[3].a * center.x + _planes[3].b * center.y + _planes[3].c * center.z + _planes[3].d) <= -radius )
111 if( (_planes[4].a * center.x + _planes[4].b * center.y + _planes[4].c * center.z + _planes[4].d) <= -radius )
113 if( (_planes[5].a * center.x + _planes[5].b * center.y + _planes[5].c * center.z + _planes[5].d) <= -radius )
122 inline bool Enabled(
void)
const {
return _enabled; }
128 inline void Enabled(
bool newVal) { _enabled = newVal; }
Class to contain current OpenGL view, projection and draw matrices.
Definition: util.h:289
Culler(bool enabled=true)
bool SphereOutsideFrustum(const Vector ¢er, const float radius) const
Definition: cull.h:101
void Enabled(bool newVal)
Definition: cull.h:128
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:56
PlaneClass _planes[6]
Definition: cull.h:79
CullResultEnum SphereInFrustum(const Vector &v, const float radius) const
const PlaneClass & Plane(const ClippingPlanesEnum &whichPlane) const
bool Enabled(void) const
Definition: cull.h:122
Definition: bmpimage.h:46
ClippingPlanesEnum
Definition: cull.h:64