From 5941948319139b4224df29762d66de2430cc994f Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Tue, 2 Sep 2025 18:44:30 -0700 Subject: Rename map functions. --- include/isogfx/isogfx.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'include') diff --git a/include/isogfx/isogfx.h b/include/isogfx/isogfx.h index 7a7f814..323b389 100644 --- a/include/isogfx/isogfx.h +++ b/include/isogfx/isogfx.h @@ -37,13 +37,13 @@ typedef struct TileDesc { }; } TileDesc; -typedef struct WorldDesc { +typedef struct MapDesc { int tile_width; // Base tile width in pixels. int tile_height; // Base tile height in pixels. int world_width; // World width in tiles. int world_height; // World height in tiles. int num_tiles; // Number of tiles to allocate memory for. -} WorldDesc; +} MapDesc; typedef struct IsoGfxDesc { void* memory; // Block of memory for the engine to use. @@ -61,11 +61,11 @@ void isogfx_del(IsoGfx**); /// Clear all loaded worlds and sprites. void isogfx_clear(IsoGfx*); -/// Create an empty world. -void isogfx_make_world(IsoGfx*, const WorldDesc*); +/// Create an empty map. +void isogfx_make_map(IsoGfx*, const MapDesc*); -/// Load a world from a tile map (.TM) file. -bool isogfx_load_world(IsoGfx*, const char* filepath); +/// Load a tile map (.TM) file. +bool isogfx_load_map(IsoGfx*, const char* filepath); /// Return the world's width. int isogfx_world_width(const IsoGfx*); -- cgit v1.2.3