BMC Engine v1.0.0
An open-source game engine powered by C and C++
|
#include <VBO.h>
Public Member Functions | |
VBO (GLfloat *verts, int length) | |
void | bind () |
void | unbind () |
void | cleanup () |
Public Attributes | |
GLuint | id |
Vertex buffer object
VBO::VBO | ( | GLfloat * | verts, |
int | length ) |
Create the VBO.
verts | The vertices array. |
length | The amount of items in the vertices array. |
void VBO::bind | ( | ) |
Bind the VBO buffer.
void VBO::cleanup | ( | ) |
Delete the VBO buffer.
void VBO::unbind | ( | ) |
Unbind the VBO buffer.
GLuint VBO::id |
The ID to store the VBO to.