CLvertex Struct Reference

Defines 3D point (x, y, z). More...

#include <cl.h>


Data Fields

GLfloat x
GLfloat y
GLfloat z


Detailed Description

The CLvertex struct defines a point in the 3D cartesian coordinate space. It can be passed to the OpenGL glVertex() function by casting to a GLfloat*.

Example

  CLvertex vertex = {-1.0f, -1.0f, 10.0f}

  glVertex3fv((GLfloat*)&vertex);
  

For more information consult the OpenGL documentation for glVertex().

Definition at line 252 of file cl.h.


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