VertexBufferObject
(size, target, usage)¶Lightweight representation of an OpenGL VBO.
The data in the buffer is not replicated in any system memory (unless it is done so by the video driver). While this can improve memory usage and possibly performance, updates to the buffer are relatively slow.
This class does not implement AbstractMappable, and so has no
get_region
method. See MappableVertexBufferObject for a VBO class
that does implement get_region
.
Constructor:
__init__
(size, target, usage)¶Methods:
Attributes:
ptr
size
VertexBufferObject.
bind
()¶VertexBufferObject.
delete
()¶VertexBufferObject.
map
(invalidate=False)¶VertexBufferObject.
resize
(size)¶VertexBufferObject.
set_data
(data)¶VertexBufferObject.
set_data_region
(data, start, length)¶VertexBufferObject.
unbind
()¶VertexBufferObject.
unmap
()¶Attributes
VertexBufferObject.
ptr
= 0
VertexBufferObject.
size
= 0