I just... don't understand why...
I am writing a large application and after some 500 lines of code I need to draw text to the screen for the first time. And it just won't. I opened up a new project to recreate the code doing the work to try and find the problem, but it just crashes with even the bare minimum.
int main(){
sf::RenderWindow renderWindow(sf::VideoMode(800, 600), "Test app");
sf::Event event;
sf::Font font;
font.loadFromFile("Image/arial.ttf");
sf::Text test ("Hello", font);
while (renderWindow.isOpen()){
while(renderWindow.pollEvent(event)){
if (event.type == sf::Event::Closed){
renderWindow.close();
}
}
renderWindow.clear();
renderWindow.draw(test);
renderWindow.display();
}
}