summaryrefslogtreecommitdiff
path: root/engine/engine.h
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2010-06-25 23:05:47 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2010-06-25 23:05:47 +0200
commitb50d18f3f882865a94458c7113aedd7a0cccce80 (patch)
treedcaacd6f02b0622a6c8979a49373d64179524b61 /engine/engine.h
parent445d92dbb16d443e201f3a7ac73d4fa5ba6c2697 (diff)
Moved Application to wriggle.
Diffstat (limited to 'engine/engine.h')
-rw-r--r--engine/engine.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/engine/engine.h b/engine/engine.h
new file mode 100644
index 0000000..894143e
--- /dev/null
+++ b/engine/engine.h
@@ -0,0 +1,32 @@
+#ifndef ENGINE_H
+#define ENGINE_H
+
+#include <wriggle/application.h>
+
+#include <FTGL/ftgl.h>
+
+#include "stage.h"
+
+class Engine : public Application {
+ private:
+ FTFont* font;
+ Texture* background;
+
+ bool paused;
+
+ unsigned int frames;
+ unsigned int lastframes;
+ float fps;
+
+ protected:
+ virtual void event_keypress(SDLKey key);
+
+ virtual void update();
+
+ public:
+ Stage* stage;
+
+ Engine();
+};
+
+#endif