Browse code

Add implementation

Robert Cranston authored on 17/05/2022 21:41:08
Showing 2 changed files

1 1
new file mode 100644
... ...
@@ -0,0 +1,29 @@
1
+#ifndef GLBUFFER_HPP_
2
+#define GLBUFFER_HPP_
3
+
4
+
5
+#include <globject.hpp>
6
+
7
+
8
+/// Class
9
+
10
+class GLBuffer : public GLObject
11
+{
12
+public:
13
+
14
+    /// Special member functions
15
+
16
+    explicit GLBuffer(std::string object_label)
17
+    :
18
+        GLObject(
19
+            glGenBuffers,
20
+            glDeleteBuffers,
21
+            GL_BUFFER,
22
+            std::move(object_label)
23
+        )
24
+    {
25
+    }
26
+};
27
+
28
+
29
+#endif // GLBUFFER_HPP_
0 30
new file mode 100644
... ...
@@ -0,0 +1,7 @@
1
+#include <glbuffer.hpp>
2
+
3
+
4
+int main()
5
+{
6
+    GLBuffer buffer{""};
7
+}