|
Fireworks Engine
v2.0
Lightweight Sandbox Game Engine using OpenGL for additional Customisation and Quick Prototyping
|
Creates Vertex Buffers. More...
#include <buffer.h>
Public Member Functions | |
| Buffer (GLfloat *data, GLsizei count, GLuint componentCount) | |
| Create and generate VertexBuffer. More... | |
| ~Buffer () | |
| void | bind () const |
| Bind the buffer. More... | |
| void | unbind () const |
| Unbind the buffer. More... | |
| GLuint | getComponentCount () const |
| Gets the types of components in the vertex data. More... | |
Creates Vertex Buffers.
| fireworks::graphics::Buffer::Buffer | ( | GLfloat * | data, |
| GLsizei | count, | ||
| GLuint | componentCount | ||
| ) |
Create and generate VertexBuffer.
| data | The vertex data of the geometry |
| count | The count of the number of variants of vertex data |
| componentCount | The count of different variations of vertex data |
| fireworks::graphics::Buffer::~Buffer | ( | ) |
| void fireworks::graphics::Buffer::bind | ( | ) | const |
Bind the buffer.
|
inline |
Gets the types of components in the vertex data.
| void fireworks::graphics::Buffer::unbind | ( | ) | const |
Unbind the buffer.