igor::iVertexArray Class Reference

#include <iVertexArray.h>

Public Member Functions

void bind () const
 
void addVertexBuffer (const iVertexBufferPtr &vertexBuffer)
 
void setIndexBuffer (const iIndexBufferPtr &indexBuffer)
 
const std::vector< iVertexBufferPtr > & getVertexBuffers () const
 
const iIndexBufferPtrgetIndexBuffer () const
 
uint32 getIndexCount () const
 
uint32 getVertexCount () const
 

Static Public Member Functions

static iVertexArrayPtr create ()
 
static void unbind ()
 

Friends

class iVertexArrayDeleter
 

Detailed Description

vertex array aka vertex array object

Member Function Documentation

◆ addVertexBuffer()

void igor::iVertexArray::addVertexBuffer ( const iVertexBufferPtr vertexBuffer)

adds a vertex buffer to the vertex array

Parameters
vertexBufferthe vertex buffer to be added

◆ bind()

void igor::iVertexArray::bind ( ) const

bind this buffer

◆ create()

iVertexArrayPtr igor::iVertexArray::create ( )
static
Returns
a newly created vertex array

◆ getIndexBuffer()

const iIndexBufferPtr & igor::iVertexArray::getIndexBuffer ( ) const
Returns
index buffer

◆ getIndexCount()

uint32 igor::iVertexArray::getIndexCount ( ) const
Returns
index count of index buffer

◆ getVertexBuffers()

const std::vector< iVertexBufferPtr > & igor::iVertexArray::getVertexBuffers ( ) const
Returns
list of all vertex buffers

◆ getVertexCount()

uint32 igor::iVertexArray::getVertexCount ( ) const
Returns
vertex count

◆ setIndexBuffer()

void igor::iVertexArray::setIndexBuffer ( const iIndexBufferPtr indexBuffer)

sets the index buffer

Parameters
indexBufferthe index buffer to be set

◆ unbind()

void igor::iVertexArray::unbind ( )
static

unbind any buffer

Friends And Related Function Documentation

◆ iVertexArrayDeleter

friend class iVertexArrayDeleter
friend

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