Files
EightBit/Gaming/src/SDLWrapper.cpp
T

12 lines
286 B
C++

#include "stdafx.h"
#include "../inc/SDLWrapper.h"
using namespace Gaming;
SDLWrapper::SDLWrapper() {
verifySDLCall(::SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_GAMECONTROLLER | SDL_INIT_HAPTIC), "Failed to initialise SDL: ");
}
SDLWrapper::~SDLWrapper() {
::SDL_Quit();
}