CLcolour Struct Reference

Defines a colour (r, g, b, a). More...

#include <cl.h>


Data Fields

GLfloat r
GLfloat g
GLfloat b
GLfloat a


Detailed Description

The CLcolour struct defines a colour in the RGBA colourspace. It can be passed to the OpenGL glColour() function by casting to a GLfloat*.

Example

  CLcolour colour = {1.0f, 0.0f, 0.0f, 1.0f};
  glColor4fv((GLfloat*)&colour);
  

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

Definition at line 227 of file cl.h.


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