anaglym/video.cc
Josh Holtrop 0de689e6cb renamed sdl module to video
git-svn-id: svn://anubis/anaglym/trunk@16 99a6e188-d820-4881-8870-2d33a10e2619
2009-09-19 16:59:33 +00:00

15 lines
256 B
C++

#include "video.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);
}
}