From 764070a86a7aa98480eaaff64dfba7e2f2943292 Mon Sep 17 00:00:00 2001 From: kartofen Date: Thu, 22 Dec 2022 22:43:44 +0200 Subject: refactor --- src/tiles.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/tiles.h') diff --git a/src/tiles.h b/src/tiles.h index 6a4a223..ce67ea5 100644 --- a/src/tiles.h +++ b/src/tiles.h @@ -1,10 +1,15 @@ #ifndef TILES_H #define TILES_H -void load_tiles(); -void free_tiles(); +extern size_t TILES; +extern size_t TILE_WIDTH; +extern size_t TILE_HEIGHT; + +extern small_t tile_connections[TILES_CAP][SIDES_MAX]; +extern small_t *(tiles[]); -void print_tiles(); +void load_tiles(FILE *fp); +void free_tiles(); int get_tile_pixel(size_t t, size_t x, size_t y, int k); small_t (*get_tile_connections())[SIDES_MAX]; -- cgit v1.2.3