BMC Engine v1.0.0
An open-source game engine powered by C and C++
Loading...
Searching...
No Matches
VBO.h
1#ifndef VBO_H
2#define VBO_H
3
4#include "glad/glad.h"
5
6#include <iostream>
7
11class VBO {
12public:
16 GLuint id;
17
23 VBO(GLfloat* verts, int length);
24
28 void bind();
29
33 void unbind();
34
38 void cleanup();
39private:
40 GLfloat* vertices;
41 int size;
42};
43
44#endif // VBO_H
Definition VBO.h:11
void bind()
Definition VBO.cpp:11
VBO(GLfloat *verts, int length)
Definition VBO.cpp:3
void unbind()
Definition VBO.cpp:16
void cleanup()
Definition VBO.cpp:21
GLuint id
Definition VBO.h:16