aboutsummaryrefslogtreecommitdiffstats
path: root/yage/data/renderbatch.h
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-12-25 13:54:09 +0000
committerYann Herklotz <ymherklotz@gmail.com>2017-12-25 13:54:09 +0000
commitf949692714e72a0e2d45ebb6a5d698424ab71dee (patch)
treecfab638d8c4d35c297e981773cfee1a9af3490ee /yage/data/renderbatch.h
parent022a4bdd81332ce67d799be6a06afb42ae45ac2e (diff)
downloadYAGE-f949692714e72a0e2d45ebb6a5d698424ab71dee.tar.gz
YAGE-f949692714e72a0e2d45ebb6a5d698424ab71dee.zip
[Broken] Reorganising and fixing.
Diffstat (limited to 'yage/data/renderbatch.h')
-rw-r--r--yage/data/renderbatch.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/yage/data/renderbatch.h b/yage/data/renderbatch.h
new file mode 100644
index 00000000..0d034035
--- /dev/null
+++ b/yage/data/renderbatch.h
@@ -0,0 +1,17 @@
+#ifndef YAGE_CORE_RENDERBATCH_H
+#define YAGE_CORE_RENDERBATCH_H
+
+#include <glad/glad.h>
+
+struct RenderBatch {
+ GLint offset;
+ GLsizei num_vertices;
+ GLuint texture;
+
+ RenderBatch(GLint offset_i, GLsizei num_vertices_i, GLuint texture_i)
+ : offset(offset_i), num_vertices(num_vertices_i), texture(texture_i = 0)
+ {
+ }
+};
+
+#endif