summaryrefslogtreecommitdiffstats
path: root/src/area.h
diff options
context:
space:
mode:
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);