summaryrefslogtreecommitdiff
path: root/themes/src/Renderer2d.cpp
diff options
context:
space:
mode:
authorMatthew Kosarek <matthew@matthewkosarek.xyz>2023-09-24 17:14:48 -0400
committerMatthew Kosarek <matthew@matthewkosarek.xyz>2023-09-24 17:14:48 -0400
commit2dca902c183ece31bc0853e1e8b93d09359515e4 (patch)
tree2478c63c0aaae3c3ad608334372a9d7a91d9088d /themes/src/Renderer2d.cpp
parentc8c6d9f13b5cae6f93f1e1615bfa484e3fa9b110 (diff)
Rectangular gradient for the background in AutumnTheme
Diffstat (limited to 'themes/src/Renderer2d.cpp')
-rw-r--r--themes/src/Renderer2d.cpp8
1 files changed, 8 insertions, 0 deletions
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;