diff options
Diffstat (limited to 'src/ui/paint.h')
-rw-r--r-- | src/ui/paint.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ui/paint.h b/src/ui/paint.h index b75290d..3128481 100644 --- a/src/ui/paint.h +++ b/src/ui/paint.h @@ -29,8 +29,12 @@ void rectangle(math::Vector2f const &location, math::Vector2f const &size); /// draw a rectangular bitmap void bitmap(math::Vector2f const &location, math::Vector2f const &size, std::string const &texture); -/// draw one line of centered text -void text_centered(math::Vector2f const &location, math::Vector2f const &size, std::string const &text, Font const *font); +/// draw text +void text(math::Vector2f const &location, math::Vector2f const &size, Font const *font, std::string const &text, + unsigned int align = AlignCenter); + +/// draw textstream +void text(math::Vector2f const &location, Font const *font, std::stringstream & textstream); } |