Fixed sf::Text constructor declaration (no longer explicit) and the API documentation

This commit is contained in:
Laurent Gomila 2013-03-15 08:13:00 +01:00
parent 560b741efb
commit 5c46daacd4

View File

@ -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);