CLmatrix Struct Reference

Defines a homogeneous 3D transformation matrix (4x4). More...

#include <cl.h>


Data Fields

GLfloat m00
GLfloat m01
GLfloat m02
GLfloat m03
GLfloat m10
GLfloat m11
GLfloat m12
GLfloat m13
GLfloat m20
GLfloat m21
GLfloat m22
GLfloat m23
GLfloat m30
GLfloat m31
GLfloat m32
GLfloat m33


Detailed Description

The CLmatrix struct defines a homogeneous 3D (4x4) transformation matrix in column-major order with each coordinate described by column first, then row:

      | m00 m10 m20 m30 |
  M = | m01 m11 m21 m31 |
      | m02 m12 m22 m32 |
      | m03 m13 m23 m33 |
  

This can be passed to a number of OpenGL functions by casting to a GLfloat*:

Example

  CLmatrix matrix;

  clDefaultMatrix(&matrix);
  glLoadMatrixf((GLfloat*)&matrix);
  

For more information consult the OpenGL documentation for glLoadMatrix() and glMultMatrix().

Definition at line 334 of file cl.h.


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