From cc8bbef4bc8257b65757396e4431e2ca9b5f30ff Mon Sep 17 00:00:00 2001 From: mattkae Date: Sun, 9 Oct 2022 15:11:13 -0400 Subject: At least I have a working sun theme, but this will have to wait until next summer I suppose --- themes/Renderer2d.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'themes/Renderer2d.h') diff --git a/themes/Renderer2d.h b/themes/Renderer2d.h index 82af673..909f088 100644 --- a/themes/Renderer2d.h +++ b/themes/Renderer2d.h @@ -38,10 +38,17 @@ struct Vertex2D { struct Mesh2D { u32 vao; u32 vbo; + u32 ebo = 0; u32 numVertices = 0; + u32 numIndices = 0; Mat4x4 model; void load(Vertex2D* vertices, u32 numVertices, Renderer2d* renderer); + void load(Vertex2D* vertices, + u32 numVertices, + u32* indices, + u32 numIndices, + Renderer2d* renderer); void render(Renderer2d* renderer, GLenum drawType = GL_TRIANGLES); void unload(); }; -- cgit v1.2.1