igor::iIndexBuffer Class Reference

#include <iIndexBuffer.h>

Public Member Functions

void bind ()
 
uint32 getIndexCount () const
 
void setData (uint32 size, const void *indexData)
 
bool isDynamic () const
 

Static Public Member Functions

static iIndexBufferPtr create (uint32 count, const uint32 *indices=nullptr)
 

Friends

class iIndexBufferDeleter
 
class iVertexArray
 

Detailed Description

index buffer aka index buffer object

Member Function Documentation

◆ bind()

void igor::iIndexBuffer::bind ( )

bin this buffer

◆ create()

iIndexBufferPtr igor::iIndexBuffer::create ( uint32  count,
const uint32 indices = nullptr 
)
static
Returns
a newly created index buffer
Parameters
coundindex count
indicesthe index data

◆ getIndexCount()

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

◆ isDynamic()

bool igor::iIndexBuffer::isDynamic ( ) const
Returns
true if this is a dynamic buffer

◆ setData()

void igor::iIndexBuffer::setData ( uint32  size,
const void *  indexData 
)

sets data on buffer

Ideally only use this if the buffer is dynamic but generally it should always be safe to use

Parameters
sizethe size in bytes
indexDatathe index data to set

Friends And Related Function Documentation

◆ iIndexBufferDeleter

friend class iIndexBufferDeleter
friend

◆ iVertexArray

friend class iVertexArray
friend

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