void glDrawRangeElementsEXT(GLenum mode,
GLsizei count,
GLuint start,
GLuint end,
GLenum type,
const GLvoid *indices)
| mode | Specifies what kind of primitives to render. Symbolic constants GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_TRIANGLES, GL_QUAD_STRIP, GL_QUADS, and GL_POLYGON are accepted. |
| count | Specifies the number of elements to be rendered. |
| start | Specifies the minimum index number that will be accessed. |
| end | Specifies the maximum index number that will be accessed. |
| type | Specifies the type of the values in indices. Must be one of GL_UNSIGNED_BYTE, GL_UNSIGNED_SHORT, or GL_UNSIGNED_INT. |
| indices | Specifies a pointer to the location where the indices are stored. |
glDrawRangeElementsEXT may also be further constrained to only operate
at maximum performance for limited amounts of data. Implementations may
advertise recommended maximum amounts of vertex and index data using the
GL_MAX_ELEMENTS_VERTICES_EXT and GL_MAX_ELEMENTS_INDICES_EXT constants.
If a particular call to glDrawRangeElementsEXT has
An implementation which has no effective limits can advertise the maximum integer value for the two constants. An implementation must always process a glDrawRangeElementsEXT call with valid parameters regardless of the amount of data passed in the call.
The parameters mode, count, type, and indices behave exactly the same as in the function glDrawElements.
GL_INVALID_VALUE is generated if count is negative.
GL_INVALID_OPERATION is generated if glDrawRangeElementsEXT is executed between the execution of glBegin and the corresponding glEnd.
GL_INVALID_VALUE will be returned if end is less than start.