Fixed sf::Text constructor declaration (no longer explicit) and the API documentation
This commit is contained in:
parent
560b741efb
commit
5c46daacd4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user