gles module defines array type for representing numerical data of specific GL type. array objects are convenient when numerical data for OpenGL ES calls is specified in Python code. Class array also defines the standard Python sequence methods so its instances can be iterated and individual items in arrays can be manipulated easily.
|type, dimension, sequence)|
Value of type must be one of the following:
The data in sequence is flattened before it is used to fill the
array. When type is
GL_FLOAT, the sequence can contains floats or
integers. With all other types, sequence must only contain
integers. Values in sequence are casted in C to the requested type, so if
the requested type cannot properly represent all the values the results can be
See About this document... for information on suggesting changes.