Name
gl.GetPointer -- return values of the specified pointer
Synopsis
valuesArray = gl.GetPointer(pname, n)
Function
gl.GetPointer() returns elements read from a GL pointer. pname is a symbolic constant indicating the pointer to be used and n specifies how many elements should be read and returned. pname can be set to the following values:

 
#GL_COLOR_ARRAY_POINTER
#GL_EDGE_FLAG_ARRAY_POINTER
#GL_FEEDBACK_BUFFER_POINTER
#GL_INDEX_ARRAY_POINTER
#GL_NORMAL_ARRAY_POINTER
#GL_SELECTION_BUFFER_POINTER
#GL_TEXTURE_COORD_ARRAY_POINTER
#GL_VERTEX_ARRAY_POINTER

The pointers are all client-side state.

The initial value for each pointer is NULL.

Please consult an OpenGL reference manual for more information.

Inputs
pname
specifies the array or buffer pointer to be queried (see above for possible values)
n
number of items to read from pointer
Results
valuesArray
table containing n items read from the respective pointer
Errors
#GL_INVALID_ENUM is generated if pname is not an accepted value.


Show TOC