From 764070a86a7aa98480eaaff64dfba7e2f2943292 Mon Sep 17 00:00:00 2001 From: kartofen Date: Thu, 22 Dec 2022 22:43:44 +0200 Subject: refactor --- src/tilemap.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/tilemap.h') diff --git a/src/tilemap.h b/src/tilemap.h index 533c3d5..a8154e1 100644 --- a/src/tilemap.h +++ b/src/tilemap.h @@ -1,6 +1,9 @@ #ifndef TILEMAP_H #define TILEMAP_H +extern size_t SWIDTH; +extern size_t SHEIGHT; + // set bit n in tile t in tilemap void set(int t, int n); // is bit n set in tile t in tilemap @@ -15,10 +18,11 @@ size_t count_entropy(int t); void init_tilemap(); void destroy_tilemap(); -void generate_tile_masks(small_t (*tile_connections)[SIDES_MAX]); - // applly a mask m, r (from tile_masks) // to tile t in tilemap void mask(int t, int m, int r); +void print_tilemap(); + + #endif -- cgit v1.2.3