0.44.0
|
#include <iVertexBuffer.h>
Public Member Functions | |
void | bind () const |
void | setData (uint32 size, const void *vertexData) |
void | setLayout (const iBufferLayout &layout) |
const iBufferLayout & | getLayout () 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 |
vertex buffer aka vertex buffer object
void igor::iVertexBuffer::bind | ( | ) | const |
bind this buffer
|
static |
size | buffer size in bytes |
vertexData | the vertex data |
uint32 igor::iVertexBuffer::getBufferSize | ( | ) | const |
const iBufferLayout & igor::iVertexBuffer::getLayout | ( | ) | const |
uint32 igor::iVertexBuffer::getVertexCount | ( | ) | const |
uint32 igor::iVertexBuffer::getVertexSize | ( | ) | const |
bool igor::iVertexBuffer::isDynamic | ( | ) | const |
void igor::iVertexBuffer::setData | ( | uint32 | size, |
const void * | vertexData | ||
) |
sets data on buffer
size | data size in bytes |
vertexData | the vertex data |
void igor::iVertexBuffer::setLayout | ( | const iBufferLayout & | layout | ) |
sets buffer layout
layout | the layout to set |
|
friend |
|
friend |