Pyrogenesis  trunk
Public Member Functions | Private Attributes | List of all members
VertexIndexArray Class Reference

A VertexArray that is specialised to handle 16-bit array indices. More...

#include <VertexArray.h>

Inheritance diagram for VertexIndexArray:
Inheritance graph
[legend]
Collaboration diagram for VertexIndexArray:
Collaboration graph
[legend]

Public Member Functions

 VertexIndexArray (GLenum usage)
 
VertexArrayIterator< u16GetIterator () 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 ()
 
void PrepareForRendering ()
 
u8Bind ()
 
void FreeBackingStore ()
 

Private Attributes

Attribute m_Attr
 

Detailed Description

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.

Constructor & Destructor Documentation

VertexIndexArray::VertexIndexArray ( GLenum  usage)

Member Function Documentation

VertexArrayIterator< u16 > VertexIndexArray::GetIterator ( ) const

Gets the iterator over the (only) attribute in this array, i.e. a u16.

Member Data Documentation

Attribute VertexIndexArray::m_Attr
private

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