I'm relatively new to SFML and I've been going through the 2.0 documentation for the past couple of days. That being said, I've been trying to unsuccessfully render text to my renderWindow, which I create as follows:
window.create(sf::VideoMode(width, height, 32), title, sf::Style::Close);
window.setFramerateLimit(60);
This works fine as a window is rendered.
Then, for debug purposes I attempt to draw text while the window is open with:
window.clear(sf::Color::White);
sf::Text text;
text.setString("TTT");
text.setCharacterSize(12);
text.setColor(sf::Color::Black);
text.setPosition(10, 10);
window.draw(text);
window.display();
The code compiles fine, however I just get a white window with no text. I have successfully linked to the graphics and window package for SFML 2.0.
Thanks in advance.