clDefault functions
[Standard functions]

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

Functions

CLcolourclDefaultColour (CLcolour *colour)
CLvertexclDefaultVertex (CLvertex *vertex)
CLnormalclDefaultNormal (CLnormal *normal)
CLtexcoordclDefaultTexCoord (CLtexcoord *texcoord)
CLedgeflagclDefaultEdgeFlag (CLedgeflag *edgeflag)
CLmatrixclDefaultMatrix (CLmatrix *matrix)
CLimageclDefaultImage (CLimage *image)
CLlightclDefaultLight (CLlight *light)
CLmaterialclDefaultMaterial (CLmaterial *material)
CLtextureclDefaultTexture (CLtexture *texture)
CLprimitivesetclDefaultPrimitiveSet (CLprimitiveset *primitiveset)
CLmeshclDefaultMesh (CLmesh *mesh)
CLcontextclDefaultContext (CLcontext *context)
CLmodelclDefaultModel (CLmodel *model)

Detailed Description

Functions of the form:

  CL[name]* clDefault[Name](CL[name]* [name])
  

set CL 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 CLcolour 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 CL by  doxygen 1.4.6