|
Pyrogenesis
13997
|
A VertexArray that is specialised to handle 16-bit array indices. More...
#include <VertexArray.h>
Public Member Functions | |
| VertexIndexArray (GLenum usage) | |
| VertexArrayIterator< u16 > | GetIterator () const |
| Gets the iterator over the (only) attribute in this array, i.e. a u16. More... | |
Public Member Functions inherited from VertexArray | |
| VertexArray (GLenum usage, GLenum target=GL_ARRAY_BUFFER) | |
| ~VertexArray () | |
| void | SetNumVertices (size_t num) |
| void | AddAttribute (Attribute *attr) |
| size_t | GetNumVertices () const |
| size_t | GetStride () const |
| void | Layout () |
| void | Upload () |
| u8 * | Bind () |
| void | FreeBackingStore () |
Private Attributes | |
| Attribute | m_Attr |
A VertexArray that is specialised to handle 16-bit array indices.
Call Bind() and pass the return value to the indices parameter of glDrawElements/glDrawRangeElements/glMultiDrawElements. Use CVertexBuffer::Unbind() to unbind the array when done.
Definition at line 212 of file VertexArray.h.
| VertexIndexArray::VertexIndexArray | ( | GLenum | usage | ) |
Definition at line 314 of file VertexArray.cpp.
| VertexArrayIterator< u16 > VertexIndexArray::GetIterator | ( | ) | const |
Gets the iterator over the (only) attribute in this array, i.e. a u16.
Definition at line 322 of file VertexArray.cpp.
|
private |
Definition at line 221 of file VertexArray.h.
1.8.5