#include <cl.h>
Data Fields | |
GLenum | mode |
unsigned int | num_indices |
GLuint * | indices |
CLprimitiveset
struct defines a primitive set of any type accepted by OpenGL (eg. GL_TRIANGLES
) as a set of indices into a CLmesh
. Its members can be passed to the OpenGL functions glDrawElements()
or used between the OpenGL functions glBegin()
and glEnd()
.
CLmesh* mesh; CLprimitiveset* primitiveset; GLuint i;
... clMeshAddPrimitiveSet(mesh, primitiveset); ...
glBegin(primitiveset->mode);
for (i = 0; i < primitiveset->num_indices; i++) { glVertex3fv(&mesh->vertices[primitiveset->indices[i]]); glNormal3fv(&mesh->normals[primitiveset->indices[i]]); }
glEnd();
For more information on CLprimitiveset
members consult the OpenGL documentation for glDrawElements()
, glBegin()
, and glEnd()
.
Definition at line 570 of file cl.h.