summaryrefslogtreecommitdiff
path: root/rpg.h
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2015-01-10 19:47:32 +0100
committerOlivier Gayot <duskcoder@gmail.com>2015-01-10 20:01:52 +0100
commitf508e7191bd2f3eb7616e315e7e0d4a4b94c7914 (patch)
tree7bc1ed6498b3e2b7393ce791667bb9b50037e5fd /rpg.h
parent5ab5f72ba931e1d29a18a6b42e2cc2d73e291c4e (diff)
cleaned the initialization / shutdown a little
The initialized surfaces are converted to display format so that they are ready for fastblit. Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
Diffstat (limited to 'rpg.h')
-rw-r--r--rpg.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/rpg.h b/rpg.h
new file mode 100644
index 0000000..ff88b10
--- /dev/null
+++ b/rpg.h
@@ -0,0 +1,21 @@
+#ifndef RPG_H
+#define RPG_H
+
+#include <SDL/SDL.h>
+#include <SDL/SDL_ttf.h>
+
+#include "structures.h"
+
+struct rpg_t {
+ SDL_Surface *screen;
+
+ TTF_Font *font;
+
+ /* XXX those are deprecated */
+ SURFACES surfaces;
+ POSITIONS positions;
+};
+
+extern struct rpg_t rpg_g;
+
+#endif /* RPG_H */