Skip to content

Instantly share code, notes, and snippets.

@emersonmx
Last active January 9, 2016 21:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emersonmx/31004a311efb2876d187 to your computer and use it in GitHub Desktop.
Save emersonmx/31004a311efb2876d187 to your computer and use it in GitHub Desktop.
A Simple Hello World with SFML.
/**
* 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