#include "game-gui-sdl.hpp" #include #include using namespace std; bool GameGui_SDL::Init() { // may want to define SDL_INIT_NOPARACHUTE when I start handling crashes since it // prevents SDL from setting up its own handlers for SIG_SEGV and stuff like that // If this function fails, I can call SDL_GetError() for more info // I should create a generic error retrieval function, similar to SDL_GetError() // cout << "SDL could not initialize! SDL_Error: " << SDL_GetError() << endl; return SDL_Init(SDL_INIT_EVERYTHING) < 0 ? RTWO_ERROR : RTWO_SUCCESS; } void GameGui_SDL::Shutdown() { SDL_Quit(); }