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.
arrayByteCount(
cls
,
value
)
Given a data-value, try to determine number of bytes it's final form occupies
For most data-types this is arraySize() * atomic-unit-size
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.
Array datatype for GLubyte types
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
class HandlerRegistry(
dict
):