33 #include "../Image/buffer_usage.h"
42 class StorageBufferProvider;
43 class StorageBuffer_Impl;
107 std::shared_ptr<StorageBuffer_Impl> impl;
Storage Buffer provider.
Definition: storage_buffer_provider.h:41
StorageBuffer()
Constructs a null instance.
Transfer Buffer.
Definition: transfer_buffer.h:46
bool is_null() const
Returns true if this object is invalid.
Definition: storage_buffer.h:75
StorageBufferProvider * get_provider() const
Get Provider.
void upload_data(GraphicContext &gc, const void *data, int size)
Uploads data to storage buffer.
void copy_from(GraphicContext &gc, TransferBuffer &buffer, int dest_pos=0, int src_pos=0, int size=-1)
Copies data from transfer buffer.
BufferUsage
Array Buffer usage enum.
Definition: buffer_usage.h:41
StorageBuffer(GraphicContext &gc, const void *data, int size, int stride, BufferUsage usage=usage_dynamic_draw)
Constructs a buffer.
Interface to drawing graphics.
Definition: graphic_context.h:258
void copy_to(GraphicContext &gc, TransferBuffer &buffer, int dest_pos=0, int src_pos=0, int size=-1)
Copies data to transfer buffer.
@ usage_dynamic_draw
Definition: buffer_usage.h:48
void throw_if_null() const
Throw an exception if this object is invalid.
StorageBuffer(GraphicContext &gc, int size, int stride, BufferUsage usage=usage_dynamic_draw)
Constructs a buffer.
Storage Buffer.
Definition: storage_buffer.h:48
bool operator==(const StorageBuffer &other) const
Handle comparison operator.