CLcontext Struct Reference

Defines a set of materials, textures, lights, meshes, and models. More...

#include <cl.h>


Data Fields

unsigned int num_materials
CLmaterial ** materials
unsigned int num_textures
CLtexture ** textures
unsigned int num_lights
CLlight ** lights
unsigned int num_models
CLmodel ** models


Detailed Description

The CLcontext struct defines a context: a set of materials, textures, lights, meshes, and models. All this information is stored in one struct for a two main of reasons. It can be used to maintain a minimum set of each group, and it makes serialisation much easier. For example, meshes that share the same texture access it through a texture index rather than two maintaining two identical copies. This could also be achieved with pointers, but that creates serialisation difficulties.

For more information see CLmaterial, CLtexture, CLlight, CLmesh, and CLmodel.

Definition at line 774 of file cl.h.


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