GLLOCKARRAYSEXT(3gl)GLLOCKARRAYSEXT(3gl)NAME
glLockArraysEXT - lock the enabled vertex arrays
glUnlockArraysEXT - unlock the enabled vertex arrays
C SPECIFICATION
void glLockArraysEXT( GLint first,
GLsizei count )
void glUnlockArraysEXT(void)PARAMETERS
first Specifies the starting index of the locked array elements.
count Specifies the number of array elements to be locked.
DESCRIPTION
The currently enabled vertex arrays can be locked with the command
glLockArraysEXT. When the vertex arrays are locked, the GL can compile
the array data or the transformed results of array data associated with
the currently enabled vertex arrays. The vertex arrays are unlocked by
the command glUnlockArraysEXT.
Between glLockArraysEXT and glUnlockArraysEXT the application should
ensure that none of the array data in the range of elements specified
by first and count are changed. Changes to the array data between the
execution of glLockArraysEXT and glUnlockArraysEXT commands may affect
calls to glDrawArrays, glArrayElement, or glDrawElements commands in
non-sequential ways.
While using a compiled vertex array, references to array elements by
the commands glDrawArrays, glArrayElement, or glDrawElements which are
outside of the range specified by first and count are undefined.
NOTES
glLockArraysEXT and glUnlockArraysEXT are not complied into display
lists but are executed immediately.
ERRORS
GL_INVALID_VALUE is generated if first is negative.
GL_INVALID_VALUE is generated if count is negative.
GL_INVALID_OPERATION is generated if glLockArraysEXT is executed
between the execution of glLockArraysEXT and the corresponding glUn‐
lockArraysEXT.
GL_INVALID_OPERATION is generated if glUnlockArraysEXT is called with‐
out a corresponding previous execution of glLockArraysEXT.
GL_INVALID_OPERATION is generated if glLockArraysEXT or glUnlockArray‐
sEXT is called between the execution of glBegin and the corresponding
glEnd.
30 April 01 GLLOCKARRAYSEXT(3gl)