15 lines
254 B
C++
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);
|
|
}
|
|
}
|