CLUsphere Struct Reference

Defines a sphere (origin, radius). More...

#include <clu.h>


Data Fields

CLvertex origin
GLfloat radius


Detailed Description

The CLUsphere struct defines a sphere. Spheres are often used as bounding volumes. They are useful for fast, gross geometry culling. This struct cannot be passed directly to OpenGL. Rather, it is used at the application level for application specific features or optimisations. For example, objects can be culled if a corresponding bounding sphere is not visible.

Example

  CLmesh* mesh;
  CLUsphere sphere;

  mesh = cluSetMeshCube(clInitMesh(clNewMesh()), 1.0f);
  cluSetSphereMesh(&sphere, mesh);
  

Definition at line 292 of file clu.h.


Generated on Thu Dec 27 13:53:42 2007 for CLU by  doxygen 1.4.6