Last active
January 9, 2016 21:58
-
-
Save emersonmx/31004a311efb2876d187 to your computer and use it in GitHub Desktop.
A Simple Hello World with SFML.
This file contains 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
/** | |
* A Simple Hello World with SFML. | |
* | |
* Build: g++ -o sfml_hello sfml_hello.cpp -lsfml-graphics -lsfml-window -lsfml-system | |
*/ | |
#include <SFML/Window.hpp> | |
int main() { | |
sf::Window window(sf::VideoMode(640, 480), "Hello world!"); | |
sf::sleep(sf::seconds(3)); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment