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_ |