summaryrefslogtreecommitdiff
path: root/src/room.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/room.h')
-rw-r--r--src/room.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/room.h b/src/room.h
new file mode 100644
index 0000000..40a6974
--- /dev/null
+++ b/src/room.h
@@ -0,0 +1,27 @@
+#ifndef TAKETHIS_INCLUDED_ROOM
+#define TAKETHIS_INCLUDED_ROOM
+
+
+#include <SDL2/SDL.h>
+
+
+typedef struct tt_room {
+ const SDL_Rect *tiles[15][19];
+ void *bodies[15][19];
+} tt_room;
+
+
+tt_room *tt_room_load(int num);
+
+void tt_room_draw(SDL_Renderer *rdr, SDL_Texture *txr, tt_room *room);
+
+/*
+void tt_room_rtol(SDL_Renderer *rdr, SDL_Texture *txr,
+ tt_room *right, tt_room *left, int permille);
+
+void tt_room_utod(SDL_Renderer *rdr, SDL_Texture *txr,
+ tt_room *up, tt_room *down, int permille);
+*/
+
+
+#endif