summaryrefslogtreecommitdiffstats
path: root/Project/VertexBuffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'Project/VertexBuffer.h')
-rw-r--r--Project/VertexBuffer.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/Project/VertexBuffer.h b/Project/VertexBuffer.h
new file mode 100644
index 0000000..e0d5950
--- /dev/null
+++ b/Project/VertexBuffer.h
@@ -0,0 +1,21 @@
+#ifndef VERTEXBUFFER_H
+#define VERTEXBUFFER_H
+
+#include <GL/glew.h>
+
+class VertexBuffer
+{
+public:
+ //VertexBuffer() {}
+ VertexBuffer(const void* data, unsigned int size, unsigned int usage = GL_STATIC_DRAW);
+ ~VertexBuffer();
+
+ void SetSubData(const void* data, const unsigned int& size) const;
+
+ void Bind() const;
+ void Unbind() const;
+
+protected:
+ unsigned int m_rendererID = 0;
+};
+#endif \ No newline at end of file