clan::TransferBufferProvider Class Referenceabstract

Transfer Buffer provider. More...

#include <transfer_buffer_provider.h>

Public Member Functions

virtual ~TransferBufferProvider ()
virtual void create (int size, BufferUsage usage)=0
 Constructs a array buffer. More...
virtual void create (void *data, int size, BufferUsage usage)=0
 Create. More...
virtual void * get_data ()=0
 Retrieves a pointer to the mapped buffer. More...
virtual void lock (GraphicContext &gc, BufferAccess access)=0
 Maps buffer into system memory. More...
virtual void unlock ()=0
 Unmaps buffer. More...
virtual void upload_data (GraphicContext &gc, int offset, const void *data, int size)=0
 Uploads data to buffer. More...

Detailed Description

Transfer Buffer provider.

Constructor & Destructor Documentation

virtual clan::TransferBufferProvider::~TransferBufferProvider ( )

Member Function Documentation

virtual void clan::TransferBufferProvider::create ( int  size,
BufferUsage  usage 
pure virtual

Constructs a array buffer.

virtual void clan::TransferBufferProvider::create ( void *  data,
int  size,
BufferUsage  usage 
pure virtual


data= void
size= value
usage= Buffer Usage
virtual void* clan::TransferBufferProvider::get_data ( )
pure virtual

Retrieves a pointer to the mapped buffer.

virtual void clan::TransferBufferProvider::lock ( GraphicContext gc,
BufferAccess  access 
pure virtual

Maps buffer into system memory.

virtual void clan::TransferBufferProvider::unlock ( )
pure virtual

Unmaps buffer.

virtual void clan::TransferBufferProvider::upload_data ( GraphicContext gc,
int  offset,
const void *  data,
int  size 
pure virtual

Uploads data to buffer.

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