clPrint functions
[Standard functions]

Standard functions to print CL structs in a human-readable format. More...

Functions

bool clPrintEnum (const CLenum *e)
bool clPrintColour (const CLcolour *colour)
bool clPrintVertex (const CLvertex *vertex)
bool clPrintNormal (const CLnormal *normal)
bool clPrintTexCoord (const CLtexcoord *texcoord)
bool clPrintEdgeFlag (const CLedgeflag *edgeflag)
bool clPrintMatrix (const CLmatrix *matrix)
bool clPrintImage (const CLimage *image)
bool clPrintLight (const CLlight *light)
bool clPrintMaterial (const CLmaterial *material)
bool clPrintTexture (const CLtexture *texture)
bool clPrintPrimitiveSet (const CLprimitiveset *primitiveset)
bool clPrintMesh (const CLmesh *mesh)
bool clPrintContext (const CLcontext *context)
bool clPrintModel (const CLmodel *model)
bool clPrintContextSummary (const CLcontext *context)
bool clPrintModelSummary (const CLmodel *model)
 A brief summary of the contents of the CLmodel.

Detailed Description

Functions of the form:

  bool clPrint[Name](const CL[name]* [name])
  

print CL structs in a (moderately) human-readable format. These functions are analogous to the standard "printf" function. Unlike the printf function, these functions do not return a int value. Instead they return a bool indicating whether or not all printf commands were a success. (Who usually checks the return value of a printf call anyway?) (I don't :P - Jamess)


Function Documentation

bool clPrintContextSummary const CLcontext context  ) 
 

Todo:
Incomplete

Definition at line 550 of file clprint.c.

References CLcontext::materials, and CLcontext::num_materials.

bool clPrintEnum const CLenum e  ) 
 

Todo:
these should all check return values of calls to other clPrint methods and return GL_FALSE if any fail!

it would be even better if GLenum were translated into english

Definition at line 8 of file clprint.c.

bool clPrintModelSummary const CLmodel model  ) 
 

Todo:
Eventually should compare each item against a default item instead of deep-comparing with zero. Needs equals methods for cl structs, eg. clEqualVertex(v0, v1)

Definition at line 453 of file clprint.c.

References CL_PRINTF, CLmodel::context, CLmodel::meshes, CLmodel::num_meshes, CLmesh::num_vertices, CLmesh::vertices, CLvertex::x, CLvertex::y, and CLvertex::z.


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