CLUplane Struct Reference

Defines a plane (a, b, c, d). More...

#include <clu.h>


Data Fields

GLfloat a
GLfloat b
GLfloat c
GLfloat d


Detailed Description

The CLUplane struct defines a 3D plane. Planes are often used for collision detection (eg. with part of a surface). 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 to the six planes of the view frustum to reduce the total amount of geometry sent to OpenGL.

Example

  CLvertex point;
  CLnormal normal;
  CLUplane plane;

  cluSetVertex(&point, -10.0f, 0.0f, 4.0f);
  cluSetNormal(&normal, 1.0f, 0.0f, 0.5f);
  cluNormalNormalise(&normal);

  cluSetPlanePointNormal(&plane, &point, &normal);
  

Definition at line 210 of file clu.h.


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