]> git.localhorst.tv Git - l2e.git/blob - src/sdl/InitSDL.cpp
added entity follower list
[l2e.git] / src / sdl / InitSDL.cpp
1 /*
2  * InitSDL.cpp
3  *
4  *  Created on: Apr 22, 2012
5  *      Author: holy
6  */
7
8 #include "InitSDL.h"
9
10 #include <stdexcept>
11
12 using std::runtime_error;
13
14
15 namespace sdl {
16
17 InitSDL::InitSDL(Uint32 flags) {
18         if (SDL_Init(flags) != 0) {
19                 throw runtime_error("failed to initialize SDL");
20         }
21 }
22
23 InitSDL::~InitSDL(void) {
24         SDL_Quit();
25 }
26
27 }