Functions | |
CLcolour * | clNewColour (GLvoid) |
CLvertex * | clNewVertex (GLvoid) |
CLnormal * | clNewNormal (GLvoid) |
CLtexcoord * | clNewTexCoord (GLvoid) |
CLedgeflag * | clNewEdgeFlag (GLvoid) |
CLmatrix * | clNewMatrix (GLvoid) |
CLimage * | clNewImage (GLvoid) |
CLlight * | clNewLight (GLvoid) |
CLmaterial * | clNewMaterial (GLvoid) |
CLtexture * | clNewTexture (GLvoid) |
CLprimitiveset * | clNewPrimitiveSet (GLvoid) |
CLmesh * | clNewMesh (GLvoid) |
CLcontext * | clNewContext (GLvoid) |
CLmodel * | clNewModel (GLvoid) |
CL[name]* clNew[Name](GLvoid)
allocate memory for a CL struct. These functions are analogous to the standard "malloc" function. They return a pointer to the malloced space or NULL if the request fails. Unlike malloc, these functions do not return a a void* since the memory is known to be for a certain struct. These functions call their respective clInit functions to ensure that the variables are initialised to "safe" values.