mirror of
https://github.com/guezoloic/LearnOpenGL.git
synced 2026-01-25 09:34:16 +00:00
feat(EBO): add EBO config
This commit is contained in:
18
inc/EBO.hpp
Executable file
18
inc/EBO.hpp
Executable file
@@ -0,0 +1,18 @@
|
||||
#ifndef EBO_HPP
|
||||
#define EBO_HPP
|
||||
|
||||
#include <GL/glew.h>
|
||||
|
||||
class EBO
|
||||
{
|
||||
private:
|
||||
GLuint id;
|
||||
|
||||
public:
|
||||
EBO(const unsigned int* indices, size_t size);
|
||||
~EBO();
|
||||
|
||||
void bind();
|
||||
void unbind();
|
||||
};
|
||||
#endif
|
||||
Reference in New Issue
Block a user