Permalink
Browse files

Fixed sf::Text constructor declaration (no longer explicit) and the A…

…PI documentation
  • Loading branch information...
LaurentGomila committed Mar 15, 2013
1 parent 560b741 commit 5c46daacd4e95ad0dc46bfbcabd1d7adfe01bbc0
Showing with 2 additions and 3 deletions.
  1. +2 −3 include/SFML/Graphics/Text.hpp
@@ -77,7 +77,7 @@ public :
/// \param characterSize Base size of characters, in pixels
///
////////////////////////////////////////////////////////////
- explicit Text(const String& string, const Font& font, unsigned int characterSize = 30);
+ Text(const String& string, const Font& font, unsigned int characterSize = 30);
////////////////////////////////////////////////////////////
/// \brief Set the text's string
@@ -337,8 +337,7 @@ private :
/// font.loadFromFile("arial.ttf");
///
/// // Create a text
-/// sf::Text text("hello");
-/// text.setFont(font);
+/// sf::Text text("hello", font);
/// text.setCharacterSize(30);
/// text.setStyle(sf::Text::Bold);
/// text.setColor(sf::Color::Red);

0 comments on commit 5c46daa

Please sign in to comment.