clan::VertexArrayBuffer Class Reference

Vertex Array Buffer. More...

#include <vertex_array_buffer.h>

+ Inheritance diagram for clan::VertexArrayBuffer:

Public Member Functions

 VertexArrayBuffer ()
 Constructs a null instance. More...
 
 VertexArrayBuffer (GraphicContext &gc, int size, BufferUsage usage=usage_static_draw)
 Constructs a VertexArrayBuffer. More...
 
 VertexArrayBuffer (GraphicContext &gc, const void *data, int size, BufferUsage usage=usage_static_draw)
 Constructs a VertexArrayBuffer. More...
 
virtual ~VertexArrayBuffer ()
 
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...
 
VertexArrayBufferProviderget_provider () const
 Get Provider. More...
 
bool is_null () const
 Returns true if this object is invalid. More...
 
 operator bool () const
 
bool operator== (const VertexArrayBuffer &other) const
 Handle comparison operator. More...
 
void throw_if_null () const
 Throw an exception if this object is invalid. More...
 
void upload_data (GraphicContext &gc, int offset, const void *data, int size)
 Uploads data to vertex array buffer. More...
 

Detailed Description

Vertex Array Buffer.

Constructor & Destructor Documentation

clan::VertexArrayBuffer::VertexArrayBuffer ( )

Constructs a null instance.

clan::VertexArrayBuffer::VertexArrayBuffer ( GraphicContext gc,
int  size,
BufferUsage  usage = usage_static_draw 
)

Constructs a VertexArrayBuffer.

Parameters
gc= Graphic Context
size= value
usage= Buffer Usage
clan::VertexArrayBuffer::VertexArrayBuffer ( GraphicContext gc,
const void *  data,
int  size,
BufferUsage  usage = usage_static_draw 
)

Constructs a VertexArrayBuffer.

Parameters
gc= Graphic Context
data= void
size= value
usage= Buffer Usage
virtual clan::VertexArrayBuffer::~VertexArrayBuffer ( )
virtual

Member Function Documentation

void clan::VertexArrayBuffer::copy_from ( GraphicContext gc,
TransferBuffer buffer,
int  dest_pos = 0,
int  src_pos = 0,
int  size = -1 
)

Copies data from transfer buffer.

Referenced by clan::VertexArrayVector< Type >::copy_from().

void clan::VertexArrayBuffer::copy_to ( GraphicContext gc,
TransferBuffer buffer,
int  dest_pos = 0,
int  src_pos = 0,
int  size = -1 
)

Copies data to transfer buffer.

Referenced by clan::VertexArrayVector< Type >::copy_to().

VertexArrayBufferProvider* clan::VertexArrayBuffer::get_provider ( ) const

Get Provider.

Returns
provider
bool clan::VertexArrayBuffer::is_null ( ) const
inline

Returns true if this object is invalid.

clan::VertexArrayBuffer::operator bool ( ) const
inlineexplicit
bool clan::VertexArrayBuffer::operator== ( const VertexArrayBuffer other) const

Handle comparison operator.

void clan::VertexArrayBuffer::throw_if_null ( ) const

Throw an exception if this object is invalid.

void clan::VertexArrayBuffer::upload_data ( GraphicContext gc,
int  offset,
const void *  data,
int  size 
)

Uploads data to vertex array buffer.

Referenced by clan::VertexArrayVector< Type >::upload_data().


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