summaryrefslogtreecommitdiffstats
path: root/src/area.h
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-02-19 00:04:27 (EST)
committer P. J. McDermott <pjm@nac.net>2013-02-19 00:04:27 (EST)
commitd97803995c8512738297dcff27ceec60bd023405 (patch)
tree28c009e10304f76fa7a9b75ab95b41da301c38d6 /src/area.h
parenta1fabc10623b9e9a4177e8e0344d5edccdcf60b7 (diff)
downloadoverworld-rpg-d97803995c8512738297dcff27ceec60bd023405.zip
overworld-rpg-d97803995c8512738297dcff27ceec60bd023405.tar.gz
overworld-rpg-d97803995c8512738297dcff27ceec60bd023405.tar.bz2
Implement and test renderer.
Diffstat (limited to 'src/area.h')
-rw-r--r--src/area.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/area.h b/src/area.h
index 644ab16..a1b7e92 100644
--- a/src/area.h
+++ b/src/area.h
@@ -4,11 +4,13 @@
#include <SDL.h>
#include "layer.h"
#include "viewport.h"
+#include "resources/map.h"
struct area {
- SDL_Surface *map_layers[LAYERS_MAX];
+ SDL_Surface *map_layers[AREA_LAYERS_MAX];
};
+struct area *area_new(struct map *map);
void render_area_to_viewport(struct area *area, struct viewport *vp);
void render_area_to_surface(struct area *area, SDL_Rect *arearect,
SDL_Surface *dst, SDL_Rect *dstrect);