OpenGL's index buffer class, used in agnostic Mesh instance.
More...
#include <OpenGLBuffer.h>
|
| | OpenGLIndexBuffer (uint32_t *indices, uint32_t count) |
| | Constructor.
|
| |
| virtual | ~OpenGLIndexBuffer () |
| | Deletes the buffers and cleans up.
|
| |
| virtual void | Bind () const override |
| | Binds the indexbuffer.
|
| |
| virtual void | UnBind () const override |
| | UnBinds the buffer.
|
| |
| virtual uint32_t | GetCount () const override |
| | Returns the length of indexbuffer.
|
| |
|
|
static IndexBuffer * | Create (uint32_t *vertices, uint32_t size) |
| |
OpenGL's index buffer class, used in agnostic Mesh instance.
- Since
- Karma 1.0.0
◆ OpenGLIndexBuffer()
| Karma::OpenGLIndexBuffer::OpenGLIndexBuffer |
( |
uint32_t * | indices, |
|
|
uint32_t | count ) |
Constructor.
Initializes the relevant buffers and uploads them to GPU.
- Parameters
-
| indices | The array of floats containing indexbuffer data |
| count | The length of the indexbuffer array |
- Since
- Karma 1.0.0
◆ ~OpenGLIndexBuffer()
| Karma::OpenGLIndexBuffer::~OpenGLIndexBuffer |
( |
| ) |
|
|
virtual |
Deletes the buffers and cleans up.
- Since
- Karma 1.0.0
◆ Bind()
| void Karma::OpenGLIndexBuffer::Bind |
( |
| ) |
const |
|
overridevirtual |
◆ GetCount()
| virtual uint32_t Karma::OpenGLIndexBuffer::GetCount |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ UnBind()
| void Karma::OpenGLIndexBuffer::UnBind |
( |
| ) |
const |
|
overridevirtual |
The documentation for this class was generated from the following files:
- Karma/src/Platform/OpenGL/OpenGLBuffer.h
- Karma/src/Platform/OpenGL/OpenGLBuffer.cpp