diff options
author | Aleksey Veresov <aleksey@veresov.pro> | 2021-02-19 10:02:23 +0300 |
---|---|---|
committer | Aleksey Veresov <aleksey@veresov.pro> | 2021-02-19 10:02:23 +0300 |
commit | a236f83d8cd680f956677ac6d65f0a953036e144 (patch) | |
tree | 21bc959204fb8082c475890d0d8722b296d0c140 /src/room.h | |
parent | 2d74b68ac770601ef9e4d621752f9229c56cb2f3 (diff) | |
download | takethis-a236f83d8cd680f956677ac6d65f0a953036e144.tar takethis-a236f83d8cd680f956677ac6d65f0a953036e144.tar.xz takethis-a236f83d8cd680f956677ac6d65f0a953036e144.zip |
Room can be loaded.
Diffstat (limited to 'src/room.h')
-rw-r--r-- | src/room.h | 27 |
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 |