32 #include "buffer_usage.h"
50 virtual void upload_data(
const GraphicContextPtr &gc,
int offset,
const void *data,
int size) = 0;
53 virtual void copy_from(
const GraphicContextPtr &gc,
const StagingBufferPtr &buffer,
int dest_pos = 0,
int src_pos = 0,
int size = -1) = 0;
56 virtual void copy_to(
const GraphicContextPtr &gc,
const StagingBufferPtr &buffer,
int dest_pos = 0,
int src_pos = 0,
int size = -1) = 0;
static std::shared_ptr< VertexArrayBuffer > create(const GraphicContextPtr &gc, int size, BufferUsage usage=usage_static_draw)
Constructs a vertex array buffer.
std::shared_ptr< VertexArrayBuffer > VertexArrayBufferPtr
Definition: d3d_target.h:41
BufferUsage
Array Buffer usage enum.
Definition: buffer_usage.h:35
std::shared_ptr< StagingBuffer > StagingBufferPtr
Definition: element_array_buffer.h:37
Definition: buffer_usage.h:40
virtual void copy_to(const GraphicContextPtr &gc, const StagingBufferPtr &buffer, int dest_pos=0, int src_pos=0, int size=-1)=0
Copies data to transfer buffer.
virtual void copy_from(const GraphicContextPtr &gc, const StagingBufferPtr &buffer, int dest_pos=0, int src_pos=0, int size=-1)=0
Copies data from transfer buffer.
virtual void upload_data(const GraphicContextPtr &gc, int offset, const void *data, int size)=0
Uploads data to vertex array buffer.
std::shared_ptr< GraphicContext > GraphicContextPtr
Definition: d3d_target.h:49
Vertex Array Buffer.
Definition: vertex_array_buffer.h:42
Definition: Application/application.h:35