#include <VisVertexBufferPA.h>
Inherits Vis::VertexArray< Vis::VertexPA >.
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) |
Vis::VertexBufferPA::VertexBufferPA | ( | ) |
ctor.
Vis::VertexBufferPA::~VertexBufferPA | ( | ) |
dtor.
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.
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.
start | start index in the vertex buffer | |
size | size of the vertices to update. |