aboutsummaryrefslogtreecommitdiffstats
path: root/yage/data/renderbatch.h
blob: 51521ec5694c0a4fa1e0cfe726b7c1f6668cea6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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