Skip to content

Instantly share code, notes, and snippets.

@henrikno
henrikno / sfml.cpp
Created October 24, 2011 20:49
SFML example
/* Compile with:_
g++ sfml.cpp -lsfml-system -lsfml-graphics -lsfml-window -o sfml
*/
#include <SFML/Graphics.hpp>
#include <iostream>
#include <stdio.h>
using namespace std;
using namespace sf;
@henrikno
henrikno / gist:1310028
Created October 24, 2011 20:16
SDL example
#include <SDL/SDL.h>
#include <SDL/SDL_opengl.h>
void Render() {
glClearColor( 0, 0, 0, 0 );
}
int main(int argc, char *argv[])
{
int rc = SDL_Init(SDL_INIT_VIDEO);