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 (const uint32_t 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 (const Renderer::Backend::IBuffer::Type type, const uint32_t usage)
 
 ~VertexArray ()
 
void SetNumberOfVertices (const size_t numberOfVertices)
 
void AddAttribute (Attribute *attr)
 
size_t GetNumberOfVertices () const
 
uint32_t GetStride () const
 
void Layout ()
 
void Upload ()
 
void PrepareForRendering ()
 
void UploadIfNeeded (Renderer::Backend::IDeviceCommandContext *deviceCommandContext)
 
void FreeBackingStore ()
 
Renderer::Backend::IBufferGetBuffer ()
 
uint32_t GetOffset () const
 

Private Attributes

Attribute m_Attr
 

Detailed Description

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

Call UploadIfNeeded() before use in Draw/DrawIndexed.

Constructor & Destructor Documentation

◆ VertexIndexArray()

VertexIndexArray::VertexIndexArray ( const uint32_t  usage)

Member Function Documentation

◆ GetIterator()

VertexArrayIterator< u16 > VertexIndexArray::GetIterator ( ) const

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

Member Data Documentation

◆ m_Attr

Attribute VertexIndexArray::m_Attr
private

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