|
0.45.0
|
#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 iIndexBufferPtr & | getIndexBuffer () const |
| uint32 | getIndexCount () const |
| uint32 | getVertexCount () const |
Static Public Member Functions | |
| static iVertexArrayPtr | create () |
| static void | unbind () |
Friends | |
| class | iVertexArrayDeleter |
vertex array aka vertex array object
| void igor::iVertexArray::addVertexBuffer | ( | const iVertexBufferPtr & | vertexBuffer | ) |
adds a vertex buffer to the vertex array
| vertexBuffer | the vertex buffer to be added |
| void igor::iVertexArray::bind | ( | ) | const |
bind this buffer
|
static |
| const iIndexBufferPtr & igor::iVertexArray::getIndexBuffer | ( | ) | const |
| uint32 igor::iVertexArray::getIndexCount | ( | ) | const |
| const std::vector< iVertexBufferPtr > & igor::iVertexArray::getVertexBuffers | ( | ) | const |
| uint32 igor::iVertexArray::getVertexCount | ( | ) | const |
| void igor::iVertexArray::setIndexBuffer | ( | const iIndexBufferPtr & | indexBuffer | ) |
sets the index buffer
| indexBuffer | the index buffer to be set |
|
static |
unbind any buffer
|
friend |