#include <VisVertexArray.h>
Inherited by Vis::VertexArrayPA, Vis::VertexArrayT2P4, Vis::VertexArrayTCP, Vis::VertexBufferPA, and Vis::VertexBufferTCP.
Public Member Functions | |
| VertexArray () | |
| virtual | ~VertexArray () |
| void | addIndex (GLuint i) |
| void | addVertex (const T &v) |
| virtual void | bind ()=0 |
| vector< GLuint > & | getIndices () |
| int | getIndicesSize () const |
| vector< T > & | getVertices () |
| int | getVerticesSize () const |
| virtual void | render (const int start, const int size)=0 |
| virtual void | unbind ()=0 |
| Vis::VertexArray< T >::VertexArray | ( | ) | [inline] |
ctor.
| virtual Vis::VertexArray< T >::~VertexArray | ( | ) | [inline, virtual] |
dtor.
| void Vis::VertexArray< T >::addIndex | ( | GLuint | i | ) | [inline] |
Add an index to the index array.
| i | index to add. |
| void Vis::VertexArray< T >::addVertex | ( | const T & | v | ) | [inline] |
Add an Vertex to the vertex array.
| v | vertex to add. |
| virtual void Vis::VertexArray< T >::bind | ( | ) | [pure virtual] |
Bind the vertex array.
Implemented in Vis::VertexArrayPA, Vis::VertexArrayT2P4, Vis::VertexArrayTCP, Vis::VertexBufferPA, and Vis::VertexBufferTCP.
| vector<GLuint>& Vis::VertexArray< T >::getIndices | ( | ) | [inline] |
Return a reference to the index array.
| int Vis::VertexArray< T >::getIndicesSize | ( | ) | const [inline] |
Return the size of the index array.
| vector<T>& Vis::VertexArray< T >::getVertices | ( | ) | [inline] |
Return a reference to the vertex array.
| int Vis::VertexArray< T >::getVerticesSize | ( | ) | const [inline] |
Return the size of the vertex array.
| virtual void Vis::VertexArray< T >::render | ( | const int | start, | |
| const int | size | |||
| ) | [pure virtual] |
Render the vertices defined in the vertex array.
| start | start-index in the index array | |
| size | size of indices to render. |
Implemented in Vis::VertexArrayPA, Vis::VertexArrayT2P4, Vis::VertexArrayTCP, Vis::VertexBufferPA, and Vis::VertexBufferTCP.
| virtual void Vis::VertexArray< T >::unbind | ( | ) | [pure virtual] |
Unbind the vertex array.
Implemented in Vis::VertexArrayPA, Vis::VertexArrayT2P4, Vis::VertexArrayTCP, Vis::VertexBufferPA, and Vis::VertexBufferTCP.
1.5.7.1