CLtexcoord Struct Reference

Defines a 2D texture coordinate (s, t). More...

#include <cl.h>


Data Fields

GLfloat s
GLfloat t


Detailed Description

The CLtexcoord struct defines a 2D texture coordinate within ([0,1], [0,1]). It can be passed to the OpenGL glTexCoord() function by casting to a GLfloat*.

Example

  CLtexcoord texcoord = {0.0f, 0.0f};

  glTexCoord2fv((GLfloat*)&texcoord);
  

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

Definition at line 300 of file cl.h.


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