MappableVertexBufferObject Class

Inheritance diagram of MappableVertexBufferObject

class MappableVertexBufferObject(size, target, usage)

A VBO with system-memory backed store.

Updates to the data via set_data, set_data_region and map will be held in local memory until bind is called. The advantage is that fewer OpenGL calls are needed, increasing performance.

There may also be less performance penalty for resizing this buffer.

Updates to data via map are committed immediately.

Constructor:

__init__(size, target, usage)

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

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

Inherited members

Methods

MappableVertexBufferObject.delete()
MappableVertexBufferObject.unbind()

Attributes

MappableVertexBufferObject.ptr = 0
MappableVertexBufferObject.size = 0

Table Of Contents

Previous topic

IndirectArrayRegion Class

Next topic

VertexArray Class