Vis::VertexBufferPA Class Reference

#include <VisVertexBufferPA.h>

Inherits Vis::VertexArray< Vis::VertexPA >.

Collaboration diagram for Vis::VertexBufferPA:
[legend]

List of all members.

Public Member Functions

 VertexBufferPA ()
 ~VertexBufferPA ()
void bind ()
void createBuffer ()
void render (const int start, const int size)
void setDrawMode (GLenum mode)
void unbind ()
void updateBuffer (const int start, const int size)


Detailed Description

Manages the OpenGL calls for binding and drawing vertices. The vertex and index-arrays are stored as vertex buffer objects on the gpu. The vertex has a position and one attribute. The indices define a triangle.

Constructor & Destructor Documentation

Vis::VertexBufferPA::VertexBufferPA (  ) 

ctor.

Vis::VertexBufferPA::~VertexBufferPA (  ) 

dtor.


Member Function Documentation

void Vis::VertexBufferPA::bind (  )  [virtual]

Bind the vertex- and index-buffer.

Implements Vis::VertexArray< T >.

void Vis::VertexBufferPA::createBuffer (  ) 

Create the vertex- and index-buffer.

void Vis::VertexBufferPA::render ( const int  start,
const int  size 
) [virtual]

Render triangles defined by the vertex- and index-array.

Parameters:
start start-index in the index array
size size of indices to render.

Implements Vis::VertexArray< T >.

void Vis::VertexBufferPA::setDrawMode ( GLenum  mode  ) 

Set the draw mode. mode draw mode (eg. GL_TRIANGLES)

void Vis::VertexBufferPA::unbind (  )  [virtual]

Unbind the vertex- and index-buffer.

Implements Vis::VertexArray< T >.

void Vis::VertexBufferPA::updateBuffer ( const int  start,
const int  size 
)

Update the vertex buffer.

Parameters:
start start index in the vertex buffer
size size of the vertices to update.


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

Generated on Mon Jan 26 15:00:43 2009 for FlowVis by  doxygen 1.5.7.1