diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-10-19 22:22:07 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-10-19 22:22:07 +0200 |
commit | fe1588ef18163c7557d3d0a62c085f42f2abfab2 (patch) | |
tree | d73f54a47ebfe6b2d289ed42c9a738a94e6095d1 /src/graphics/Text.cpp | |
parent | 6a524b46cb9c74c8d1b710c23bbc62bdafd54bb2 (diff) |
Change event layout to similar to same as sfml
Diffstat (limited to 'src/graphics/Text.cpp')
-rw-r--r-- | src/graphics/Text.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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); } |