From 1e0df536c2fae85c317ce9c3cc17603d5f98c911 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Wed, 15 Oct 2008 20:33:15 +0000 Subject: moved client console into a Widget --- src/ui/paint.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/ui/paint.h') diff --git a/src/ui/paint.h b/src/ui/paint.h index 367b001..c90f1b5 100644 --- a/src/ui/paint.h +++ b/src/ui/paint.h @@ -22,7 +22,7 @@ void color(float r=0.0f, float g=0.0f, float b=0.0f, float a=1.0f); void color(math::Color const & color); /// set paint color -void color_code(const char *c); +void color_code(const char c); /// draw a border void border(math::Vector2f const &location, math::Vector2f const &size); @@ -33,12 +33,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 text +/// draw one line of text from a string 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); + +/// draw unaligned text from a stringstream +void text(math::Vector2f const &location, Font const *font, std::stringstream & textstream); } -- cgit v1.2.3