#include <clu.h>
Data Fields | |
CLvertex | origin |
GLfloat | radius |
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.
CLmesh* mesh; CLUsphere sphere;
mesh = cluSetMeshCube(clInitMesh(clNewMesh()), 1.0f); cluSetSphereMesh(&sphere, mesh);
Definition at line 292 of file clu.h.