clan::StorageBufferProvider Class Referenceabstract

Storage Buffer provider. More...

#include <storage_buffer_provider.h>

Public Member Functions

virtual ~StorageBufferProvider ()
 
virtual void copy_from (GraphicContext &gc, TransferBuffer &buffer, int dest_pos, int src_pos, int size)=0
 Copies data from transfer buffer. More...
 
virtual void copy_to (GraphicContext &gc, TransferBuffer &buffer, int dest_pos, int src_pos, int size)=0
 Copies data to transfer buffer. More...
 
virtual void create (int size, int stride, BufferUsage usage)=0
 Constructs a vertex array buffer. More...
 
virtual void create (const void *data, int size, int stride, BufferUsage usage)=0
 Create. More...
 
virtual void upload_data (GraphicContext &gc, const void *data, int size)=0
 Uploads data to storages buffer. More...
 

Detailed Description

Storage Buffer provider.

Constructor & Destructor Documentation

virtual clan::StorageBufferProvider::~StorageBufferProvider ( )
inlinevirtual

Member Function Documentation

virtual void clan::StorageBufferProvider::copy_from ( GraphicContext gc,
TransferBuffer buffer,
int  dest_pos,
int  src_pos,
int  size 
)
pure virtual

Copies data from transfer buffer.

virtual void clan::StorageBufferProvider::copy_to ( GraphicContext gc,
TransferBuffer buffer,
int  dest_pos,
int  src_pos,
int  size 
)
pure virtual

Copies data to transfer buffer.

virtual void clan::StorageBufferProvider::create ( int  size,
int  stride,
BufferUsage  usage 
)
pure virtual

Constructs a vertex array buffer.

virtual void clan::StorageBufferProvider::create ( const void *  data,
int  size,
int  stride,
BufferUsage  usage 
)
pure virtual

Create.

Parameters
data= void
size= value
usage= Buffer Usage
virtual void clan::StorageBufferProvider::upload_data ( GraphicContext gc,
const void *  data,
int  size 
)
pure virtual

Uploads data to storages 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: