clan::VertexArrayVector< Type > Class Template Reference

Vertex Array Vector. More...

#include <vertex_array_vector.h>

+ Inheritance diagram for clan::VertexArrayVector< Type >:

Public Member Functions

 VertexArrayVector ()
 Constructs a null instance. More...
 
 VertexArrayVector (const VertexArrayBuffer &buffer)
 Constructs a VertexArrayBuffer using an existing VertexArrayBuffer. More...
 
 VertexArrayVector (GraphicContext &gc, int size, BufferUsage usage=usage_static_draw)
 Constructs a VertexArrayBuffer. More...
 
 VertexArrayVector (GraphicContext &gc, Type *data, int size, BufferUsage usage=usage_static_draw)
 Constructs a VertexArrayBuffer. More...
 
 VertexArrayVector (GraphicContext &gc, const std::vector< Type > &data, BufferUsage usage=usage_static_draw)
 
void copy_from (GraphicContext &gc, TransferVector< Type > &buffer, int dest_pos=0, int src_pos=0, int size=-1)
 Copies data from transfer buffer. More...
 
void copy_to (GraphicContext &gc, TransferVector< Type > &buffer, int dest_pos=0, int src_pos=0, int size=-1)
 Copies data to transfer buffer. More...
 
void upload_data (GraphicContext &gc, int offset, const Type *data, int size)
 Uploads data to vertex array buffer. More...
 
void upload_data (GraphicContext &gc, int offset, const std::vector< Type > &data)
 Uploads data to vertex array buffer. More...
 
- Public Member Functions inherited from clan::VertexArrayBuffer
 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

template<typename Type>
class clan::VertexArrayVector< Type >

Vertex Array Vector.

Constructor & Destructor Documentation

template<typename Type>
clan::VertexArrayVector< Type >::VertexArrayVector ( )
inline

Constructs a null instance.

template<typename Type>
clan::VertexArrayVector< Type >::VertexArrayVector ( const VertexArrayBuffer buffer)
inlineexplicit

Constructs a VertexArrayBuffer using an existing VertexArrayBuffer.

template<typename Type>
clan::VertexArrayVector< Type >::VertexArrayVector ( GraphicContext gc,
int  size,
BufferUsage  usage = usage_static_draw 
)
inline

Constructs a VertexArrayBuffer.

Parameters
gc= Graphic Context
size= value
usage= Buffer Usage
template<typename Type>
clan::VertexArrayVector< Type >::VertexArrayVector ( GraphicContext gc,
Type *  data,
int  size,
BufferUsage  usage = usage_static_draw 
)
inline

Constructs a VertexArrayBuffer.

Parameters
gc= Graphic Context
data= void
size= value
usage= Buffer Usage
template<typename Type>
clan::VertexArrayVector< Type >::VertexArrayVector ( GraphicContext gc,
const std::vector< Type > &  data,
BufferUsage  usage = usage_static_draw 
)
inline

Member Function Documentation

template<typename Type>
void clan::VertexArrayVector< Type >::copy_from ( GraphicContext gc,
TransferVector< Type > &  buffer,
int  dest_pos = 0,
int  src_pos = 0,
int  size = -1 
)
inline

Copies data from transfer buffer.

References clan::VertexArrayBuffer::copy_from().

template<typename Type>
void clan::VertexArrayVector< Type >::copy_to ( GraphicContext gc,
TransferVector< Type > &  buffer,
int  dest_pos = 0,
int  src_pos = 0,
int  size = -1 
)
inline

Copies data to transfer buffer.

References clan::VertexArrayBuffer::copy_to().

template<typename Type>
void clan::VertexArrayVector< Type >::upload_data ( GraphicContext gc,
int  offset,
const Type *  data,
int  size 
)
inline

Uploads data to vertex array buffer.

References clan::VertexArrayBuffer::upload_data().

template<typename Type>
void clan::VertexArrayVector< Type >::upload_data ( GraphicContext gc,
int  offset,
const std::vector< Type > &  data 
)
inline

Uploads data to vertex array buffer.

References clan::VertexArrayBuffer::upload_data().


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