summaryrefslogtreecommitdiff
path: root/themes/src/Renderer2d.cpp
diff options
context:
space:
mode:
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;