clInit functions
[Standard functions]

Standard functions for initiliasing CL struct members to "safe" values. More...

Functions

CLimageclInitImage (CLimage *image)
CLmaterialclInitMaterial (CLmaterial *material)
CLlightclInitLight (CLlight *light)
CLtextureclInitTexture (CLtexture *texture)
CLprimitivesetclInitPrimitiveSet (CLprimitiveset *primitiveset)
CLmeshclInitMesh (CLmesh *mesh)
CLcontextclInitContext (CLcontext *context)
CLmodelclInitModel (CLmodel *model)

Detailed Description

The clInit functions are of the form:

  GLvoid clInit[Name](CL[name]* [name])
  

initiliase CL struct members to "safe" values. These should be used for structs that are not created using the clNew functions, since some elements (such as pointers) may not be "safe". CL structs may contain pointers, array counter variables, and OpenGL runtime values (such as display list IDs). These are initialised to safe values: pointers are set to NULL, array counters are set to zero, and runtime values are set to the reserved values for that flag them as unused (zero for OpenGL display lists and texture objects). These functions return a pointer to the input struct or NULL on error (eg. input struct was NULL).


Function Documentation

CLimage* clInitImage CLimage image  ) 
 

Todo:
Documentation for this file.

Definition at line 7 of file clinit.c.

References CLimage::data, CLimage::height, and CLimage::width.

Referenced by clInitTexture(), and clNewImage().


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