From 2dca902c183ece31bc0853e1e8b93d09359515e4 Mon Sep 17 00:00:00 2001 From: Matthew Kosarek Date: Sun, 24 Sep 2023 17:14:48 -0400 Subject: Rectangular gradient for the background in AutumnTheme --- themes/src/Renderer2d.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'themes/src/Renderer2d.cpp') diff --git a/themes/src/Renderer2d.cpp b/themes/src/Renderer2d.cpp index 196ef7e..f1d78e3 100644 --- a/themes/src/Renderer2d.cpp +++ b/themes/src/Renderer2d.cpp @@ -48,6 +48,14 @@ void Renderer2d::unload() { glDeleteProgram(shader); } +f32 Renderer2d::get_width() { + return context->width; +} + +f32 Renderer2d::get_height() { + return context->height; +} + void Mesh2D::load(Vertex2D* inVertices, u32 inNumVertices, Renderer2d* renderer) { ebo = 0; -- cgit v1.2.1