#include <clu.h>
Data Fields | |
GLfloat | a |
GLfloat | b |
GLfloat | c |
GLfloat | d |
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.
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.