summaryrefslogtreecommitdiff
path: root/mogltk/engine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mogltk/engine.cpp')
-rw-r--r--mogltk/engine.cpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/mogltk/engine.cpp b/mogltk/engine.cpp
deleted file mode 100644
index ff40514..0000000
--- a/mogltk/engine.cpp
+++ /dev/null
@@ -1,24 +0,0 @@
-#include <SDL.h>
-#include "engine.h"
-#include "generic.h"
-
-int mogltk::engine::inited = 0;
-
-int mogltk::engine::setup() throw(GeneralException) {
- if (inited) {
- printm(M_WARNING, "mogltk::engine::startup() called twice, ignoring second call.\n");
- return -1;
- }
- if (SDL_Init(0) < 0) {
- throw GeneralException("Unable to start SDL base system");
- }
- atexit(SDL_Quit);
-
- inited = 1;
-
- return 0;
-}
-
-int mogltk::engine::GetInited() {
- return inited;
-}