diff options
author | Matthew Kosarek <matthew@matthewkosarek.xyz> | 2023-09-24 17:14:48 -0400 |
---|---|---|
committer | Matthew Kosarek <matthew@matthewkosarek.xyz> | 2023-09-24 17:14:48 -0400 |
commit | 2dca902c183ece31bc0853e1e8b93d09359515e4 (patch) | |
tree | 2478c63c0aaae3c3ad608334372a9d7a91d9088d /themes/src/Renderer2d.cpp | |
parent | c8c6d9f13b5cae6f93f1e1615bfa484e3fa9b110 (diff) |
Rectangular gradient for the background in AutumnTheme
Diffstat (limited to 'themes/src/Renderer2d.cpp')
-rw-r--r-- | themes/src/Renderer2d.cpp | 8 |
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; |