diff options
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); } |