added the readme
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
|
||||
#ifndef VAO_CLASS_H
|
||||
#define VAO_CLASS_H
|
||||
|
||||
#include <glad/glad.h>
|
||||
#include "VBO.h"
|
||||
|
||||
class VAO {
|
||||
public:
|
||||
GLuint ID;
|
||||
VAO();
|
||||
void GenerateID() {
|
||||
glGenVertexArrays(1, &ID);
|
||||
}
|
||||
void LinkVBO(VBO& vbo, GLuint layout, GLuint numComponents, GLenum type, GLsizeiptr stride, void* offset);
|
||||
void Bind();
|
||||
void Unbind();
|
||||
void Delete();
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user