#include "SFML/Graphics.hpp"
int main()
{
sf::RenderWindow w(sf::VideoMode(500,500),"test");
sf::CircleShape player(10.0f);
while( w.isOpen() )
{
sf::Event event;
while ( w.pollEvent(event) ){
if ( event.type == sf::Event::Closed )
w.close();
}
w.clear();
w.draw(player);
w.display();
}
}
hello, good morning.
can i ask why the program above crash when executing w.draw(player); ?
Im using SFML 2.2
thanks.