Hello, i have recently being trying to install SFML as it looks good and i would like to start programing game i follow the tutorial on this website and the time sample thing works fine but when i try to open a window nothing comes up its just a blank console window and no screen, this is my code
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
int main ()
{
sf::RenderWindow Game(sf::VideoMode(800, 600, 32), "Game");
sf::Event Event;
while(Game.IsOpened())
{
while(Game.GetEvent(Event))
{
if(Event.Type == sf::Event::Closed)
Game.Close();
}
Game.Clear();
Game.Display();
}
return EXIT_SUCCESS;
}
thanks to anyone who can help ;D