feat(VAO): add VAO config

This commit is contained in:
2025-11-15 20:01:08 +01:00
parent d257c2b827
commit 8bd3080a84
2 changed files with 63 additions and 0 deletions

23
inc/VAO.hpp Executable file
View File

@@ -0,0 +1,23 @@
#ifndef VAO_HPP
#define VAO_HPP
#include <gl/glew.h>
class VAO
{
private:
unsigned int id;
public:
VAO();
~VAO();
void bind();
void unbind();
void setAttributePointer(GLuint index, GLuint size, GLenum type, GLsizei stride, const void* offset);
void drawElement(GLenum mode, GLsizei count, GLenum type, const void *indices);
void drawArray(GLenum mode, GLint first, GLsizei count);
};
#endif