22 lines
379 B
C++
22 lines
379 B
C++
#include "../init.h"
|
|
|
|
#include <iostream>
|
|
#include <SDL.h>
|
|
|
|
#include "../Video.h"
|
|
|
|
namespace System {
|
|
void init() {
|
|
if (SDL_Init( SDL_INIT_VIDEO | SDL_INIT_TIMER ) < 0) {
|
|
std::cerr << "Error initializing SDL: " << SDL_GetError() << std::endl;
|
|
abort();
|
|
}
|
|
}
|
|
|
|
void terminate() {
|
|
video.Exit();
|
|
SDL_Quit();
|
|
}
|
|
}
|
|
|