#include <VisVertexBufferTCP.h>
Inherits Vis::VertexArray< Vis::VertexTCP >.
Public Member Functions | |
VertexBufferTCP () | |
~VertexBufferTCP () | |
void | bind () |
void | createBuffer () |
void | render (const int start, const int size) |
void | unbind () |
void | updateBuffer (const int start, const int size) |
Vis::VertexBufferTCP::VertexBufferTCP | ( | ) |
ctor.
Vis::VertexBufferTCP::~VertexBufferTCP | ( | ) |
dtor.
void Vis::VertexBufferTCP::bind | ( | ) | [virtual] |
Bind the vertex- and index-buffer.
Implements Vis::VertexArray< T >.
void Vis::VertexBufferTCP::createBuffer | ( | ) |
Create the vertex- and index-buffer.
void Vis::VertexBufferTCP::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::VertexBufferTCP::unbind | ( | ) | [virtual] |
Unbind the vertex- and index-buffer.
Implements Vis::VertexArray< T >.
void Vis::VertexBufferTCP::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. |