|
Fireworks Engine
v2.0
Lightweight Sandbox Game Engine using OpenGL for additional Customisation and Quick Prototyping
|
Creates Vertex Array Object (VAOs). More...
#include <vertexarray.h>
Public Member Functions | |
| VertexArray () | |
| Generates VAO. More... | |
| ~VertexArray () | |
| void | addBuffer (Buffer *buffer, GLuint index) |
| Adds the the vertex buffer (VBO) to the VAO. More... | |
| void | bind () const |
| Binds the vertex array. More... | |
| void | unbind () const |
| Unbind the vertex array. More... | |
Creates Vertex Array Object (VAOs).
| fireworks::graphics::VertexArray::VertexArray | ( | ) |
Generates VAO.
| fireworks::graphics::VertexArray::~VertexArray | ( | ) |
| void fireworks::graphics::VertexArray::addBuffer | ( | Buffer * | buffer, |
| GLuint | index | ||
| ) |
Adds the the vertex buffer (VBO) to the VAO.
| buffer | The vertex buffer containing the vertex data of the geometry |
| index | To which Attribute the corresponding buffers corresponds to |
| void fireworks::graphics::VertexArray::bind | ( | ) | const |
Binds the vertex array.
| void fireworks::graphics::VertexArray::unbind | ( | ) | const |
Unbind the vertex array.