clan::TransferBuffer Class Reference

Transfer Buffer. More...

#include <transfer_buffer.h>

+ Inheritance diagram for clan::TransferBuffer:

Public Member Functions

Construction
 TransferBuffer ()
 Constructs a null instance. More...
 
 TransferBuffer (GraphicContext &gc, int size, BufferUsage usage=usage_dynamic_copy)
 Constructs a transfer buffer. More...
 
 TransferBuffer (GraphicContext &gc, const void *data, int size, BufferUsage usage=usage_dynamic_copy)
 Constructs a transfer buffer. More...
 
virtual ~TransferBuffer ()
 
Attributes
bool is_null () const
 Returns true if this object is invalid. More...
 
void throw_if_null () const
 Throw an exception if this object is invalid. More...
 
void * get_data ()
 Retrieves a pointer to the mapped buffer. More...
 
TransferBufferProviderget_provider () const
 Get Provider. More...
 
Operations
bool operator== (const TransferBuffer &other) const
 Handle comparison operator. More...
 
void lock (GraphicContext &gc, BufferAccess access)
 Maps buffer into system memory. More...
 
void unlock ()
 Unmaps buffer. More...
 
void upload_data (GraphicContext &gc, int offset, const void *data, int size)
 Uploads data to transfer buffer. More...
 

Detailed Description

Transfer Buffer.


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