diff options
author | Olivier Gayot <duskcoder@gmail.com> | 2015-01-10 19:47:32 +0100 |
---|---|---|
committer | Olivier Gayot <duskcoder@gmail.com> | 2015-01-10 20:01:52 +0100 |
commit | f508e7191bd2f3eb7616e315e7e0d4a4b94c7914 (patch) | |
tree | 7bc1ed6498b3e2b7393ce791667bb9b50037e5fd /rpg.h | |
parent | 5ab5f72ba931e1d29a18a6b42e2cc2d73e291c4e (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.h | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -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 */ |