Model functions
[Convenience functions]


Functions

CLmodel * cluModelGenerateNormals (CLmodel *model)
CLmodel * cluModelRemoveUnusedVertices (CLmodel *model)
GLfloat cluModelWidth (CLmodel *model)
GLfloat cluModelHeight (CLmodel *model)
GLfloat cluModelDepth (CLmodel *model)
CLvertex * cluModelLocalOrigin (CLvertex *v, const CLmodel *model)
CLmodel * cluModelCentre (CLmodel *model)
CLmodel * cluModelSetOrigin (CLmodel *model, const CLvertex *v)
CLmodel * cluModelScale (CLmodel *model, GLfloat scale)
CLmodel * cluModelScaleUnitCube (CLmodel *model)
CLmodel * cluModelResize (CLmodel *model, GLfloat sx, GLfloat sy, GLfloat sz)
CLmodel * cluModelMergeMeshes (CLmodel *model)
 Takes a model with many meshes and merges it together into a model with one mesh and many primitive sets.
CLcolour * cluColourGeneratePalette (unsigned int red_separation, unsigned int green_separation, unsigned int blue_separation)
 Generates an array of CLcolour (somewhat) evenly distrubuted throughout the colour spectrum.

Function Documentation

CLcolour* cluColourGeneratePalette unsigned int  red_separation,
unsigned int  green_separation,
unsigned int  blue_separation
 

Parameters:
red_separation The number of segments into which the red channel of the colour space is separated.
green_separation The number of segments into which the green channel of the colour space is separated.
blue_separation The number of segments into which the blue channel of the colour space is separated.
Returns:
An array of CLcolours. The array is red_separation * blue_separation * green_separation elements in length.
Todo:
The separation parameter is an unwieldy and awkward way to call the function but makes the internals far easier.

Definition at line 22 of file clucolour.c.

References cluSetColour().


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