aboutsummaryrefslogtreecommitdiffstats
path: root/yage/data/renderbatch.h
blob: 0d034035a5b2d3f682a7b38a2732e25407a69545 (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 = 0)
    {
    }
};

#endif