Skip to content

Instantly share code, notes, and snippets.

@voidexp
Created January 5, 2012 15:55
Show Gist options
  • Save voidexp/1565837 to your computer and use it in GitHub Desktop.
Save voidexp/1565837 to your computer and use it in GitHub Desktop.
SFML demo
#include <SFML/Graphics.hpp>
int main()
{
sf::RenderWindow win(sf::VideoMode(800, 600), "SFML Demo");
sf::Event evt;
bool run = true;
while(run)
{
while(win.PollEvent(evt))
{
if(evt.Type == evt.Closed)
run = false;
}
win.Display();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment