mirror of
https://github.com/guezoloic/LearnOpenGL.git
synced 2026-01-25 10:34:16 +00:00
feat!: rework header files
This commit is contained in:
24
inc/core/ebo.hpp
Executable file
24
inc/core/ebo.hpp
Executable file
@@ -0,0 +1,24 @@
|
||||
#ifndef EBO_HPP
|
||||
#define EBO_HPP
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
#include "glad/glad.h"
|
||||
namespace core
|
||||
{
|
||||
class EBO
|
||||
{
|
||||
private:
|
||||
GLuint id;
|
||||
|
||||
public:
|
||||
EBO();
|
||||
~EBO();
|
||||
|
||||
void setData(const unsigned int* indices, size_t size);
|
||||
|
||||
void bind();
|
||||
void unbind();
|
||||
};
|
||||
}; // namespace core
|
||||
#endif // EBO_HPP
|
||||
Reference in New Issue
Block a user