Skip to content

Instantly share code, notes, and snippets.

@domenicomonaco
Created October 22, 2011 14:14
Show Gist options
  • Save domenicomonaco/f3bbaa8cfdcdc2c4f3aa to your computer and use it in GitHub Desktop.
Save domenicomonaco/f3bbaa8cfdcdc2c4f3aa to your computer and use it in GitHub Desktop.
Sample SFML2
#include <cstdlib>
#include <iostream>
#include <SFML/Audio.hpp>
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
#include <SFML/System.hpp>
#include <SFML/Config.hpp>
#include <SFML/OpenGL.hpp>
int main(int argc, char** argv)
{
// create render window
sf::RenderWindow MyRenderWindow(sf::VideoMode(300, 300), "My SFML Window");
return (EXIT_SUCCESS);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment