valuesArray = gl.GetPointer(pname, n)
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.
n
items read from the respective pointer#GL_INVALID_ENUM
is generated if pname
is not an accepted value.