Numpy (new version) module implementation of the OpenGL-ctypes array interfaces
XXX Need to register handlers for all of the scalar types that numpy returns, would like to have all return values be int/float if they are of compatible type as well.
Functions ClassesNumpy-specific data-type handler for OpenGL
Attributes:
(
cls , value , typeCode = None)
Given a data-value, calculate number of bytes required to represent
arraySize(
cls , value , typeCode = None)
Given a data-value, calculate dimensions for the array
arrayToGLType(
cls , value)
Given a value, guess OpenGL type of the corresponding pointer
asArray(
cls , value , typeCode = None)
Convert given value to an array value of given typeCode
contiguous(
cls , source , typeCode = None)
Get contiguous array from source
All gl*Pointer calls should use contiguous arrays, as non- contiguous arrays will be re-copied on every rendering pass. Although this doesn't raise an error, it does tend to slow down rendering.
dataPointer(
cls , instance)
Convert given instance to a data-pointer value (integer)
dimensions(
cls , value , typeCode = None)
Determine dimensions of the passed array value (if possible)
from_param(
cls , instance , typeCode = None)
unitSize(
cls , value , typeCode = None)
Determine unit size of an array (if possible)
zeros(
cls , dims , typeCode)
Return Numpy array of zeros in given size
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4