aboutsummaryrefslogtreecommitdiffstats
path: root/yage/data/renderbatch.h
diff options
context:
space:
mode:
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