diff options
Diffstat (limited to 'yage/data/renderbatch.h')
-rw-r--r-- | yage/data/renderbatch.h | 17 |
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..51521ec5 --- /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) + { + } +}; + +#endif |