aboutsummaryrefslogtreecommitdiff
path: root/src/buffer/vertex/material_buffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer/vertex/material_buffer.h')
-rw-r--r--src/buffer/vertex/material_buffer.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/buffer/vertex/material_buffer.h b/src/buffer/vertex/material_buffer.h
index eccf008..4c61c55 100644
--- a/src/buffer/vertex/material_buffer.h
+++ b/src/buffer/vertex/material_buffer.h
@@ -2,6 +2,8 @@
#include <GL/glew.h>
+#include <functional>
+
class MaterialBuffer {
private:
const GLuint _nX;
@@ -11,7 +13,7 @@ private:
GLuint _buffer;
public:
- MaterialBuffer(GLuint nX, GLuint nY);
+ MaterialBuffer(GLuint nX, GLuint nY, std::function<int(int,int)>&& geometry);
~MaterialBuffer();
GLuint getBuffer() const;