anaglym/sdl.cc
Josh Holtrop c9875f53b4 building with SDL
git-svn-id: svn://anubis/anaglym/trunk@15 99a6e188-d820-4881-8870-2d33a10e2619
2009-09-19 16:57:19 +00:00

15 lines
254 B
C++

#include "sdl.h"
#include <SDL/SDL.h>
#include <iostream>
using namespace std;
void video_init()
{
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_TIMER))
{
cerr << "SDL_Init() returned error!" << endl;
exit(3);
}
}