Functions | |
CLimage * | clInitImage (CLimage *image) |
CLmaterial * | clInitMaterial (CLmaterial *material) |
CLlight * | clInitLight (CLlight *light) |
CLtexture * | clInitTexture (CLtexture *texture) |
CLprimitiveset * | clInitPrimitiveSet (CLprimitiveset *primitiveset) |
CLmesh * | clInitMesh (CLmesh *mesh) |
CLcontext * | clInitContext (CLcontext *context) |
CLmodel * | clInitModel (CLmodel *model) |
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).
|
Definition at line 7 of file clinit.c. References CLimage::data, CLimage::height, and CLimage::width. Referenced by clInitTexture(), and clNewImage(). |