mirror of
https://github.com/guezoloic/LearnOpenGL.git
synced 2026-01-25 12:34:15 +00:00
feat(VBO): add vbo config
This commit is contained in:
20
inc/VBO.hpp
Executable file
20
inc/VBO.hpp
Executable file
@@ -0,0 +1,20 @@
|
||||
#ifndef VBO_HPP
|
||||
#define VBO_HPP
|
||||
|
||||
#include <gl/glew.h>
|
||||
|
||||
class VBO
|
||||
{
|
||||
private:
|
||||
unsigned int id;
|
||||
|
||||
public:
|
||||
VBO(GLfloat* vertices, size_t size);
|
||||
~VBO();
|
||||
|
||||
void bind();
|
||||
void unbind();
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user