mirror of
https://github.com/guezoloic/LearnOpenGL.git
synced 2026-01-25 09:34:16 +00:00
feat: rework ebo, vao and vbo
This commit is contained in:
@@ -5,16 +5,17 @@
|
||||
|
||||
#include "glad/glad.h"
|
||||
|
||||
|
||||
class EBO
|
||||
{
|
||||
private:
|
||||
GLuint id;
|
||||
|
||||
public:
|
||||
EBO(unsigned int* indices, size_t size);
|
||||
EBO();
|
||||
~EBO();
|
||||
|
||||
void setData(unsigned int* indices, size_t size);
|
||||
|
||||
void bind();
|
||||
void unbind();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user