OpenGL.arrays.arraydatatype
Array data-type implementations (abstraction points for GL array types
Classes
class ArrayDatatype(
object
):
Mix-in for array datatype classes
The ArrayDatatype marker essentially is used to mark a particular argument
as having an "array" type, which means that it is eligible for handling
via the arrays sub-package and its registered handlers.
arraySize(
cls
,
value
,
typeCode
= None
)
Given a data-value, calculate dimensions for the array (number-of-units)
arrayToGLType(
cls
,
value
)
Given a data-value, guess the OpenGL type of the corresponding pointer
Note: this is not currently used in PyOpenGL and may be removed
eventually.
unitSize(
cls
,
value
,
typeCode
= None
)
Determine unit size of an array (if possible)
Uses our local type if defined, otherwise asks the handler to guess...
zeros(
cls
,
dims
,
typeCode
= None
)
Allocate a return array of the given dimensions filled with zeros
Array datatype for GLbyte types
Array datatype for ARB extension pointers-to-arrays
Array datatype for GLclampd types
Array datatype for GLclampf types
Array datatype for GLdouble types
Array datatype for GLenum types
Array datatype for GLfloat types
Array datatype for GLuint types
Array datatype for GLint types
Array datatype for GLshort types
Array datatype for GLsizei types
Array datatype for GLuint types
Array datatype for GLuint types
Array datatype for GLushort types
Array datatype for GLenum types