Created
January 5, 2012 15:55
-
-
Save voidexp/1565837 to your computer and use it in GitHub Desktop.
SFML demo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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