feat!: rework header files

This commit is contained in:
2026-01-06 20:07:44 +01:00
parent f4f9f4a7ac
commit 66761b8e5d
12 changed files with 122 additions and 78 deletions

27
inc/core/vao.hpp Executable file
View File

@@ -0,0 +1,27 @@
#ifndef VAO_HPP
#define VAO_HPP
#include <stddef.h>
#include "glad/glad.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