]> git.localhorst.tv Git - sdl-test8.git/blob - src/sdl/InitTTF.cpp
added collision engine, more or less stole gameplay from sdl-test7
[sdl-test8.git] / src / sdl / InitTTF.cpp
1 /*
2  * InitTTF.cpp
3  *
4  *  Created on: Apr 22, 2012
5  *      Author: holy
6  */
7
8 #include "InitTTF.h"
9
10 #include <stdexcept>
11 #include <SDL/SDL_ttf.h>
12
13 using std::runtime_error;
14
15
16 namespace sdl {
17
18 InitTTF::InitTTF(void) {
19         if (TTF_Init() != 0) {
20                 throw runtime_error("failed to initialize SDL TTF");
21         }
22 }
23
24 InitTTF::~InitTTF(void) {
25         TTF_Quit();
26 }
27
28 }