Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/paint.h')
-rw-r--r--src/ui/paint.h10
1 files changed, 5 insertions, 5 deletions
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);
}