uicore::VertexArrayVector< Type > Class Template Reference

Typed access to a vertex array buffer. More...

#include <vertex_array_vector.h>

Public Member Functions

 VertexArrayVector ()
 Constructs a vertex array vector. More...
 
 VertexArrayVector (const VertexArrayBufferPtr &buffer)
 
 VertexArrayVector (const GraphicContextPtr &gc, int size, BufferUsage usage=usage_static_draw)
 
 VertexArrayVector (const GraphicContextPtr &gc, Type *data, int size, BufferUsage usage=usage_static_draw)
 
 VertexArrayVector (const GraphicContextPtr &gc, const std::vector< Type > &data, BufferUsage usage=usage_static_draw)
 
const VertexArrayBufferPtrbuffer () const
 Returns the buffer used by the vector. More...
 
void copy_from (const GraphicContextPtr &gc, StagingVector< Type > &buffer, int dest_pos=0, int src_pos=0, int size=-1)
 Copies data from transfer buffer. More...
 
void copy_to (const GraphicContextPtr &gc, StagingVector< Type > &buffer, int dest_pos=0, int src_pos=0, int size=-1)
 Copies data to transfer buffer. More...
 
 operator const VertexArrayBufferPtr & () const
 
void upload_data (const GraphicContextPtr &gc, int offset, const Type *data, int size)
 Uploads data to vertex array buffer. More...
 
void upload_data (const GraphicContextPtr &gc, int offset, const std::vector< Type > &data)
 Uploads data to vertex array buffer. More...
 

Detailed Description

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

Typed access to a vertex array buffer.

Constructor & Destructor Documentation

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

Constructs a vertex array vector.

template<typename Type>
uicore::VertexArrayVector< Type >::VertexArrayVector ( const VertexArrayBufferPtr buffer)
inline
template<typename Type>
uicore::VertexArrayVector< Type >::VertexArrayVector ( const GraphicContextPtr gc,
int  size,
BufferUsage  usage = usage_static_draw 
)
inline
template<typename Type>
uicore::VertexArrayVector< Type >::VertexArrayVector ( const GraphicContextPtr gc,
Type *  data,
int  size,
BufferUsage  usage = usage_static_draw 
)
inline
template<typename Type>
uicore::VertexArrayVector< Type >::VertexArrayVector ( const GraphicContextPtr gc,
const std::vector< Type > &  data,
BufferUsage  usage = usage_static_draw 
)
inline

Member Function Documentation

template<typename Type>
const VertexArrayBufferPtr& uicore::VertexArrayVector< Type >::buffer ( ) const
inline

Returns the buffer used by the vector.

Referenced by uicore::VertexArrayVector< Type >::operator const VertexArrayBufferPtr &().

template<typename Type>
void uicore::VertexArrayVector< Type >::copy_from ( const GraphicContextPtr gc,
StagingVector< Type > &  buffer,
int  dest_pos = 0,
int  src_pos = 0,
int  size = -1 
)
inline

Copies data from transfer buffer.

template<typename Type>
void uicore::VertexArrayVector< Type >::copy_to ( const GraphicContextPtr gc,
StagingVector< Type > &  buffer,
int  dest_pos = 0,
int  src_pos = 0,
int  size = -1 
)
inline

Copies data to transfer buffer.

template<typename Type>
uicore::VertexArrayVector< Type >::operator const VertexArrayBufferPtr & ( ) const
inline
template<typename Type>
void uicore::VertexArrayVector< Type >::upload_data ( const GraphicContextPtr gc,
int  offset,
const Type *  data,
int  size 
)
inline

Uploads data to vertex array buffer.

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

Uploads data to vertex array buffer.


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