OpenGL_accelerate.vbo
index
/home/mcfletch/pylive/OpenGL_accelerate/vbo.so

Cython-coded VBO implementation

 
Modules
       
__builtin__
ctypes
OpenGL.error
weakref

 
Classes
       
FormatHandler(object)
VBOHandler
VBOOffsetHandler
object
VBO
VBOOffset

 
class VBO(object)
    Instances can be passed into array-handling routines
 
You can check for whether VBOs are supported by accessing the implementation
attribute of the VBO, which will raise a RuntimeError if there is no available 
implementation.
 
Attributes:
 
    int copied -- whether we are copied to back-end yet 
    int created -- whether we've created a buffer yet 
    unsigned int buffer -- our buffer once created 
    object data -- our data-holding array-compatible object 
    target -- our resolved GL constant target 
    target_spec -- our (unresolved) GL constant specifier 
    usage -- our resolved GL constant usage 
    usage_spec -- our (unresolved) GL constant usage specifier 
    _copy_segments -- slices of data to copy to back-end 
    _I_ -- our implementation object 
    arrayType -- our reference to arraydatatype.ArrayDatatype
 
  Methods defined here:
__add__(...)
Add an integer to this VBO (offset)
__delitem__(...)
x.__delitem__(y) <==> del x[y]
__enter__ = bind(...)
__exit__(...)
Context manager exit
__getattr__(...)
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__len__(...)
x.__len__() <==> len(x)
__radd__(...)
x.__radd__(y) <==> y+x
__setitem__(...)
x.__setitem__(i, y) <==> x[i]=y
bind(...)
Bind this buffer for use in vertex calls
copy_data(...)
Copy our data into the buffer on the GL side
create_buffers(...)
Create the internal buffer(s)
delete(...)
Delete this buffer explicitly
set_array(...)
Update our entire array with new data
unbind(...)
Unbind the buffer (make normal array operations active)

Data descriptors defined here:
arrayType
buffer
copied
created
data
implementation
Retrieve our implementation reference
resolved
size
target
target_spec
usage
usage_spec

Data and other attributes defined here:
__new__ = <built-in method __new__ of type object at 0x7f8ea9747940>
T.__new__(S, ...) -> a new object with type S, a subtype of T
__pyx_vtable__ = <PyCObject object at 0x3790300>

 
class VBOHandler(FormatHandler)
    Handles VBO instances passed in as array data
 
 
Method resolution order:
VBOHandler
FormatHandler
object

Methods defined here:
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Data and other attributes defined here:
__new__ = <built-in method __new__ of type object at 0x7f8ea9747c80>
T.__new__(S, ...) -> a new object with type S, a subtype of T
__pyx_vtable__ = <PyCObject object at 0x3790350>
isOutput = False

Methods inherited from FormatHandler:
arrayByteCount(...)
Given a data-value, calculate number of bytes required to represent
arraySize(...)
Retrieve array size reference
arrayToGLType(...)
Given a value, guess OpenGL type of the corresponding pointer
asArray(...)
Retrieve the given value as a (contiguous) array of type typeCode
dataPointer(...)
Retrieve data-pointer directly
dimensions(...)
Retrieve full set of dimensions for the array as tuple
from_param(...)
simple function-based from_param
register(...)
Register this class as handler for given set of types
registerEquivalent(...)
Register a sub-class for handling as the base-type
registerReturn(...)
Register this handler as the default return-type handler
unitSize(...)
Retrieve last dimension of the array
zeros(...)
Create an array initialized to zeros

Data descriptors inherited from FormatHandler:
ERROR_ON_COPY

Data and other attributes inherited from FormatHandler:
HANDLED_TYPES = ()

 
class VBOOffset(object)
    Offset into a VBO instance
 
This is just a convenience object that lets you say 
vbo + integer and have the value passed as the correct 
data-type instead of being interpreted as a pointer to 
an integer-array of the offset.
 
  Methods defined here:
__add__(...)
__getattr__(...)
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__radd__(...)
x.__radd__(y) <==> y+x

Data descriptors defined here:
offset
vbo

Data and other attributes defined here:
__new__ = <built-in method __new__ of type object at 0x7f8ea9747ae0>
T.__new__(S, ...) -> a new object with type S, a subtype of T
__pyx_vtable__ = <PyCObject object at 0x3790328>

 
class VBOOffsetHandler(FormatHandler)
    
Method resolution order:
VBOOffsetHandler
FormatHandler
object

Methods defined here:
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Data and other attributes defined here:
__new__ = <built-in method __new__ of type object at 0x7f8ea9747e20>
T.__new__(S, ...) -> a new object with type S, a subtype of T
__pyx_vtable__ = <PyCObject object at 0x3790378>
isOutput = False

Methods inherited from FormatHandler:
arrayByteCount(...)
Given a data-value, calculate number of bytes required to represent
arraySize(...)
Retrieve array size reference
arrayToGLType(...)
Given a value, guess OpenGL type of the corresponding pointer
asArray(...)
Retrieve the given value as a (contiguous) array of type typeCode
dataPointer(...)
Retrieve data-pointer directly
dimensions(...)
Retrieve full set of dimensions for the array as tuple
from_param(...)
simple function-based from_param
register(...)
Register this class as handler for given set of types
registerEquivalent(...)
Register a sub-class for handling as the base-type
registerReturn(...)
Register this handler as the default return-type handler
unitSize(...)
Retrieve last dimension of the array
zeros(...)
Create an array initialized to zeros

Data descriptors inherited from FormatHandler:
ERROR_ON_COPY

Data and other attributes inherited from FormatHandler:
HANDLED_TYPES = ()

 
Data
        _NULL = <object object at 0x7f8ebf8a0100>
__file__ = '/home/mcfletch/pylive/OpenGL_accelerate/vbo.so'
__name__ = 'OpenGL_accelerate.vbo'
__package__ = 'OpenGL_accelerate'