Rename VertexBuffer to VertexArray
because it was misleading
This commit is contained in:
21
src/VertexArray.h
Normal file
21
src/VertexArray.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#pragma once
|
||||
|
||||
#include <glad/glad.h>
|
||||
|
||||
class VertexArray {
|
||||
|
||||
public:
|
||||
|
||||
VertexArray(void *vertexData, void *indexData, uint32_t numVertices, uint32_t numIndices);
|
||||
~VertexArray();
|
||||
|
||||
void bind();
|
||||
void unbind();
|
||||
|
||||
private:
|
||||
|
||||
GLuint VAO;
|
||||
GLuint VBO;
|
||||
GLuint EBO;
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user