using visual studio 2015 and SFML . relevant code:
sf::Font font;
font.loadFromFile("Arial.ttf");
sf::Text text;
text.setFont(font);
text.setString("hello ");
_mainWindow.draw(text);
It doesn't display the text. I put a breakpoint, the font gets the correct value. but the text's string stays empty. for the main window I get: + _mainWindow sf::RenderWindow
Can anybody help?
thanks
_mainWindow
actually passed to it? \$\endgroup\$ – Tyyppi_77 Feb 26 '17 at 10:44