HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GEO_WorkVertexBuffer Class Reference

#include <GEO_WorkVertexBuffer.h>

Public Member Functions

 GEO_WorkVertexBuffer (GA_VertexPool &pool, GA_Size initial_size=0, GA_Size matrix_size=GA_MAXORDER)
 
virtual ~GEO_WorkVertexBuffer ()
 
void clear ()
 Clear all vertices out of the work vertex buffer. More...
 
GA_Size getVertexEntries () const
 Return the number of vertices allocated in the buffer. More...
 
void swapVertices (GA_Size i1, GA_Size i2)
 
GEO_VertexgetVertexElement (GA_Size idx)
 
const GEO_VertexgetVertexElement (GA_Size idx) const
 
GEO_VertexappendVertexElement ()
 

Detailed Description

Definition at line 37 of file GEO_WorkVertexBuffer.h.

Constructor & Destructor Documentation

GEO_WorkVertexBuffer::GEO_WorkVertexBuffer ( GA_VertexPool pool,
GA_Size  initial_size = 0,
GA_Size  matrix_size = GA_MAXORDER 
)
virtual GEO_WorkVertexBuffer::~GEO_WorkVertexBuffer ( )
virtual

Member Function Documentation

GEO_Vertex* GEO_WorkVertexBuffer::appendVertexElement ( )

If the vertex isn't already allocated at the index passed in, it will be created. The const method may return a NULL pointer if the vertex hasn't been allocated.

void GEO_WorkVertexBuffer::clear ( )

Clear all vertices out of the work vertex buffer.

GEO_Vertex* GEO_WorkVertexBuffer::getVertexElement ( GA_Size  idx)

If the vertex isn't already allocated at the index passed in, it will be created. The const method may return a NULL pointer if the vertex hasn't been allocated.

const GEO_Vertex* GEO_WorkVertexBuffer::getVertexElement ( GA_Size  idx) const

If the vertex isn't already allocated at the index passed in, it will be created. The const method may return a NULL pointer if the vertex hasn't been allocated.

GA_Size GEO_WorkVertexBuffer::getVertexEntries ( ) const
inline

Return the number of vertices allocated in the buffer.

Definition at line 66 of file GEO_WorkVertexBuffer.h.

void GEO_WorkVertexBuffer::swapVertices ( GA_Size  i1,
GA_Size  i2 
)

Swap two entries in the vertex array. This changes the vertex numbers associated with given entries in the vertex buffer.


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