cluDefault functions
[Standard functions]

Standard functions to set CLU structs to meaningful defaults. More...

Functions

CLUquaternioncluDefaultQuaternion (CLUquaternion *quaternion)
CLUplanecluDefaultPlane (CLUplane *plane)
CLUspherecluDefaultSphere (CLUsphere *sphere)
CLUconecluDefaultCone (CLUcone *cone)
CLUraycluDefaultRay (CLUray *ray)
CLUalignedboxcluDefaultAlignedBox (CLUalignedbox *box)

Detailed Description

Functions of the form:

  CLU[name]* cluDefault[Name](CLU[name]* [name])
  

set CLU structs to suitable default values. Pointers are set to NULL, and array counters are set to 0. The defaults values for other members are the corresponding OpenGL defaults. For example: since the default colour in floating point RGBA space is (1.0f, 1.0f, 1.0f, 1.0f), the default values for the CLUcolour struct are (r = 1.0f), (g = 1.0f), (b = 1.0f), and (a = 1.0f). When no useful OpenGL default is defined we create a (hopefully) useful default. For example: the default image is a small 2x2 image with different coloured pixels. If input is NULL, no operation is performed.


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