Skip to content

Instantly share code, notes, and snippets.

@emersonmx
Last active January 9, 2016 21:58
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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