clan::StorageBuffer Class Reference

Storage Buffer. More...

#include <storage_buffer.h>

+ Inheritance diagram for clan::StorageBuffer:

Public Member Functions

Construction
 StorageBuffer ()
 Constructs a null instance. More...
 
 StorageBuffer (GraphicContext &gc, int size, int stride, BufferUsage usage=usage_dynamic_draw)
 Constructs a buffer. More...
 
 StorageBuffer (GraphicContext &gc, const void *data, int size, int stride, BufferUsage usage=usage_dynamic_draw)
 Constructs a buffer. More...
 
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...
 
StorageBufferProviderget_provider () const
 Get Provider. More...
 
Operations
bool operator== (const StorageBuffer &other) const
 Handle comparison operator. More...
 
void upload_data (GraphicContext &gc, const void *data, int size)
 Uploads data to storage buffer. More...
 
void copy_from (GraphicContext &gc, TransferBuffer &buffer, int dest_pos=0, int src_pos=0, int size=-1)
 Copies data from transfer buffer. More...
 
void copy_to (GraphicContext &gc, TransferBuffer &buffer, int dest_pos=0, int src_pos=0, int size=-1)
 Copies data to transfer buffer. More...
 

Detailed Description

Storage Buffer.


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