Trees | Indices | Toggle frames |
---|
__init__(self,
count,
gl_type)
Create the attribute accessor.
|
|
enable(self)
Enable the attribute using glEnableClientState.
|
|
set_pointer(self,
offset)
Setup this attribute to point to the currently bound buffer at
the given offset.
|
|
AbstractBufferRegion |
get_region(self,
buffer,
start,
count)
Map a buffer region using this attribute as an accessor.
|
set_region(self,
buffer,
start,
count,
data)
Set the data over a region of the buffer.
|
Setup this attribute to point to the currently bound buffer at the given offset.
offset should be based on the currently bound buffer's ptr member.
Map a buffer region using this attribute as an accessor.
The returned region can be modified as if the buffer was a contiguous array of this attribute (though it may actually be interleaved or otherwise non-contiguous).
The returned region consists of a contiguous array of component
data elements. For example, if this attribute uses 3 floats per
vertex, and the count
parameter is 4, the number of floats mapped
will be 3 * 4 = 12.
Trees | Indices | Toggle frames |
---|
Generated by Epydoc 3.0beta1 on Thu Dec 31 17:58:18 2009 | http://epydoc.sourceforge.net |