A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://pyopengl.sourceforge.net/documentation/pydoc/OpenGL.arrays.numpymodule.html below:

OpenGL.arrays.numpymodule

OpenGL.arrays.numpymodule

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 Classes

Numpy-specific data-type handler for OpenGL

Attributes:

ERROR_ON_COPY
if True, will raise errors if we have to copy an array object in order to produce a contiguous array of the correct type.
arrayByteCount

(

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

source
numpy Python array (or compatible object) for use as the data source. If this is not a contiguous array of the given typeCode, a copy will be made, otherwise will just be returned unchanged.
typeCode
optional 1-character typeCode specifier for the numpy.array function.

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