--- /dev/null
+/*
+ * InitTTF.cpp
+ *
+ * Created on: Apr 22, 2012
+ * Author: holy
+ */
+
+#include "InitTTF.h"
+
+#include <stdexcept>
+#include <SDL/SDL_ttf.h>
+
+using std::runtime_error;
+
+
+namespace sdl {
+
+InitTTF::InitTTF(void) {
+ if (TTF_Init() != 0) {
+ throw runtime_error("failed to initialize SDL TTF");
+ }
+}
+
+InitTTF::~InitTTF(void) {
+ TTF_Quit();
+}
+
+}