From fe1588ef18163c7557d3d0a62c085f42f2abfab2 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 19 Oct 2021 22:22:07 +0200 Subject: Change event layout to similar to same as sfml --- src/graphics/Text.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/graphics/Text.cpp') diff --git a/src/graphics/Text.cpp b/src/graphics/Text.cpp index e598b2f..094b198 100644 --- a/src/graphics/Text.cpp +++ b/src/graphics/Text.cpp @@ -22,6 +22,10 @@ namespace mgl { mgl_text_set_color(&text, {color.r, color.g, color.b, color.a}); } + vec2f Text::get_position() const { + return { text.position.x, text.position.y }; + } + void Text::draw(Window&) { mgl_text_draw(mgl_get_context(), &text); } -- cgit v1.2.3