GLDRAWMESHARRAYSSUN(3gl)GLDRAWMESHARRAYSSUN(3gl)NAMEglDrawMeshArraysSUN - draw a triangle/quad mesh using enabled vertex
arrays
C SPECIFICATION
void glDrawMeshArraysSUN( GLenum mode,
GLint first,
GLsizei count,
GLint width )
PARAMETERS
mode Specifies what kind of primitives to render. Symbolic constants
GL_TRIANGLE_MESH_SUN, and GL_QUAD_MESH_SUN are accepted.
first Specifies the starting index in the enabled arrays.
count Specifies the number of indices to be rendered.
width Specifies the number vertices in each row of the mesh.
DESCRIPTIONglDrawMeshArraysSUN constructs a mesh primitive using the elements from
index first through first+count-1 of each enabled array. The mode
specifies if it is a quad mesh or triangle mesh. The vertics in the
vertex arrays must be arranged in row major format to form the mesh.
For example if a quad mesh is 4 vertices wide, the vertices in the
first row are the vertex 1, 2, 3, 4 from left to right, and the ver‐
tices in the second row are the vertex 5, 6, 7, 8 from left to right,
etc..
Each row must have the same number of vertices as specified by width.
If count is not a multiply of width, then the vertices in the last row
are discarded.
NOTES
Mesh primitive is only available through vertex arrays, no immediate
mode support for mesh primitive at this point.
ERRORS
GL_INVALID_ENUM is generated if mode is not an accepted value.
GL_INVALID_VALUE is generated if first is negative.
GL_INVALID_VALUE is generated if count is negative.
GL_INVALID_VALUE is generated if width is less than 2.
16 April 01 GLDRAWMESHARRAYSSUN(3gl)