uicore::StorageBuffer Class Referenceabstract

Storage Buffer. More...

#include <storage_buffer.h>

Public Member Functions

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. More...
 
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. More...
 
virtual void upload_data (const GraphicContextPtr &gc, const void *data, int size)=0
 Uploads data to storage buffer. More...
 

Static Public Member Functions

static std::shared_ptr< StorageBuffercreate (const GraphicContextPtr &gc, int size, int stride, BufferUsage usage=usage_dynamic_draw)
 Constructs a buffer. More...
 
static std::shared_ptr< StorageBuffercreate (const GraphicContextPtr &gc, const void *data, int size, int stride, BufferUsage usage=usage_dynamic_draw)
 

Detailed Description

Storage Buffer.

Member Function Documentation

virtual void uicore::StorageBuffer::copy_from ( const GraphicContextPtr gc,
const StagingBufferPtr buffer,
int  dest_pos = 0,
int  src_pos = 0,
int  size = -1 
)
pure virtual

Copies data from transfer buffer.

virtual void uicore::StorageBuffer::copy_to ( const GraphicContextPtr gc,
const StagingBufferPtr buffer,
int  dest_pos = 0,
int  src_pos = 0,
int  size = -1 
)
pure virtual

Copies data to transfer buffer.

static std::shared_ptr<StorageBuffer> uicore::StorageBuffer::create ( const GraphicContextPtr gc,
int  size,
int  stride,
BufferUsage  usage = usage_dynamic_draw 
)
static

Constructs a buffer.

static std::shared_ptr<StorageBuffer> uicore::StorageBuffer::create ( const GraphicContextPtr gc,
const void *  data,
int  size,
int  stride,
BufferUsage  usage = usage_dynamic_draw 
)
static
virtual void uicore::StorageBuffer::upload_data ( const GraphicContextPtr gc,
const void *  data,
int  size 
)
pure virtual

Uploads data to storage buffer.

The size specified must match the size of the buffer and is only included to help guard against buffer overruns.


The documentation for this class was generated from the following file: