EZ
Up Prev Next Contents


5.8.3 EZ_Vertex{23}f{v} and EZ_Normal3f{v}

EZ_Vertex23fv specifies the coordinates of a vertex and EZ_Normal3fv specifies the normal vector at a vertex. Arguments are either 2 floats or 3 floats or a pointer to 2 or 3 floats. The normal vector is used in lighting calculations. For example, the following sequence specifies a rectangle.

EZ_Begin(EZ_QUADS); /* begin individual quads */ EZ_Normal3f(1.0, 0.0, 0.0); /* set the normal */ EZ_Vertex2f(0.0, 1.0); /* the first vertex */ EZ_Vertex2f(1.0, 1.0); EZ_Vertex2f(1.0, 0.0); EZ_Vertex2f(0.0, 1.0); EZ_End(); /* end the current object */


HTML Documentation Maintainance:Arturo Espinosa <arturo@nuclecu.unam.mx>