igor::iVertexBuffer Class Reference

#include <iVertexBuffer.h>

Public Member Functions

void bind () const
 
void setData (uint32 size, const void *vertexData)
 
void setLayout (const iBufferLayout &layout)
 
const iBufferLayoutgetLayout () const
 
bool isDynamic () const
 
uint32 getVertexCount () const
 
uint32 getVertexSize () const
 
uint32 getBufferSize () const
 

Static Public Member Functions

static iVertexBufferPtr create (uint32 size, const void *vertexData=nullptr)
 

Friends

class iVertexBufferDeleter
 
class iVertexArray
 

Detailed Description

vertex buffer aka vertex buffer object

Member Function Documentation

◆ bind()

void igor::iVertexBuffer::bind ( ) const

bind this buffer

◆ create()

iVertexBufferPtr igor::iVertexBuffer::create ( uint32  size,
const void *  vertexData = nullptr 
)
static
Returns
a newly created vertex buffer
Parameters
sizebuffer size in bytes
vertexDatathe vertex data

◆ getBufferSize()

uint32 igor::iVertexBuffer::getBufferSize ( ) const
Returns
buffer size in byte

◆ getLayout()

const iBufferLayout & igor::iVertexBuffer::getLayout ( ) const
Returns
buffer layout

◆ getVertexCount()

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

◆ getVertexSize()

uint32 igor::iVertexBuffer::getVertexSize ( ) const
Returns
vertex size

◆ isDynamic()

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

◆ setData()

void igor::iVertexBuffer::setData ( uint32  size,
const void *  vertexData 
)

sets data on buffer

Parameters
sizedata size in bytes
vertexDatathe vertex data

◆ setLayout()

void igor::iVertexBuffer::setLayout ( const iBufferLayout layout)

sets buffer layout

Parameters
layoutthe layout to set

Friends And Related Function Documentation

◆ iVertexArray

friend class iVertexArray
friend

◆ iVertexBufferDeleter

friend class iVertexBufferDeleter
friend

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