Vivid
|
Manages the IndexBuffer. For more information on IndexBuffers, visit https://learnopengl.com/Getting-started/Hello-Triangle Element Buffer Objects. More...
#include <IndexBuffer.h>
Public Member Functions | |
IndexBuffer (Vector< unsigned int > &indices) | |
void | Bind () const |
void | Unbind () const |
unsigned int | GetCount () const |
Static Public Member Functions | |
static Ref< IndexBuffer > | Create (Vector< unsigned int > &indices) |
Public Attributes | |
unsigned int | m_RendererID |
unsigned int | m_Count |
Manages the IndexBuffer. For more information on IndexBuffers, visit https://learnopengl.com/Getting-started/Hello-Triangle Element Buffer Objects.
To create an IndexBuffer use the Create function. It takes in a Vector of unsigned integers that contains the indices and allocates the buffer to the GPU.
Definition at line 13 of file IndexBuffer.h.
Vivid::IndexBuffer::IndexBuffer | ( | Vector< unsigned int > & | indices | ) |
Definition at line 6 of file IndexBuffer.cpp.
Vivid::IndexBuffer::~IndexBuffer | ( | ) |
Definition at line 15 of file IndexBuffer.cpp.
void Vivid::IndexBuffer::Bind | ( | ) | const |
Definition at line 20 of file IndexBuffer.cpp.
|
static |
Definition at line 30 of file IndexBuffer.cpp.
|
inline |
Definition at line 30 of file IndexBuffer.h.
void Vivid::IndexBuffer::Unbind | ( | ) | const |
Definition at line 25 of file IndexBuffer.cpp.
unsigned int Vivid::IndexBuffer::m_Count |
Definition at line 17 of file IndexBuffer.h.
unsigned int Vivid::IndexBuffer::m_RendererID |
Definition at line 16 of file IndexBuffer.h.