VertexArray Class

Inheritance diagram of VertexArray

class VertexArray(size)

A ctypes implementation of a vertex array.

Many of the methods on this class are effectively no-op’s, such as bind, unbind, map, unmap and delete; they exist in order to present a consistent interface with VertexBufferObject.

This buffer type is also mappable, and so get_region can be used.

Constructor:

__init__(size)

Methods:

bind()
delete()
get_region(start, size, ptr_type)
map([invalidate])
resize(size)
set_data(data)
set_data_region(data, start, length)
unbind()
unmap()

Attributes:

ptr Type: int
size Type: int

Methods

VertexArray.bind()
VertexArray.delete()
VertexArray.get_region(start, size, ptr_type)
VertexArray.map(invalidate=False)
VertexArray.resize(size)
VertexArray.set_data(data)
VertexArray.set_data_region(data, start, length)
VertexArray.unbind()
VertexArray.unmap()

Inherited members

Attributes

VertexArray.ptr = 0
VertexArray.size = 0

Table Of Contents

Previous topic

MappableVertexBufferObject Class

Next topic

VertexArrayRegion Class