Skip to content

buffer

FreeBodyEngine.graphics.buffer #

Buffer #

Abstracts different buffer object across grahpics APIs, providing the ability to store and use large amount data on the GPU.

bind() #

Binds the buffer for use.

destroy() #

Releases the buffer's underlying GPU resources.

get_data() #

Returns the data last passed to set_data().

get_max_size() staticmethod #

Returns the max size of the buffer in bytes.

set_data(data) #

Uploads data to the buffer, replacing its current contents.

unbind() #

Unbinds the buffer.