OpenGL.arrays | index /build/buildd/pyopengl-3.0.0~b6/OpenGL/arrays/__init__.py |
Abstraction point for handling of data-pointers in OpenGL
The purpose of this package is to allow for the registration and dispatch
of handlers for different data-types in such a way that you can add new
data-types to the set of types which PyOpenGL will handle as arguments
to functions requiring typed pointers.
Possible data types:
Numpy arrays
Numarray arrays
PyGame surfaces
PyMedia buffers
Python buffer-objects
Memory-mapped files
PIL images
Package Contents | ||
__init__ -- Abstraction point for handling of data-pointers in OpenGL _numeric -- Run-time calculation of offset into Python Numeric (old) structures _strings -- Run-time calculation of offset into Python string structure arraydatatype -- Array data-type implementations (abstraction points for GL array types arrayhelpers -- Helper functions for wrapping array-using operations ctypesarrays -- ctypes sized data-arrays as a data-formatmechanism ctypesparameters -- ctypes single-value "parameter" arguments (e.g. byref) ctypespointers -- ctypes data-pointers as a data-format mechanism formathandler -- Base class for the various Python data-format storage type APIs lists -- Lists/tuples as data-format for storage nones -- Passing of None as an array data-type numarrays numbers -- Numbers passed as array handling code for PyOpenGL numeric numericnames -- Module to provide numeric-module name for current version numpymodule strings -- String-array-handling code for PyOpenGL vbo -- VertexBufferObject helper class |
Data | ||
GL_CONSTANT_TO_ARRAY_TYPE = {GL_BYTE: <class 'OpenGL.arrays.arraydatatype.GLbyteArray'>, GL_UNSIGNED_BYTE: <class 'OpenGL.arrays.arraydatatype.GLubyteArray'>, GL_SHORT: <class 'OpenGL.arrays.arraydatatype.GLshortArray'>, GL_UNSIGNED_SHORT: <class 'OpenGL.arrays.arraydatatype.GLushortArray'>, GL_INT: <class 'OpenGL.arrays.arraydatatype.GLintArray'>, GL_UNSIGNED_INT: <class 'OpenGL.arrays.arraydatatype.GLuintArray'>, GL_FLOAT: <class 'OpenGL.arrays.arraydatatype.GLfloatArray'>, GL_DOUBLE: <class 'OpenGL.arrays.arraydatatype.GLdoubleArray'>} __file__ = '/build/buildd/pyopengl-3.0.0~b6/OpenGL/arrays/__init__.py' __name__ = 'OpenGL.arrays' __path__ = ['/build/buildd/pyopengl-3.0.0~b6/OpenGL/arrays'] log = <logging.Logger instance at 0x87b2aec> |