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. --- src/isogfx.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/isogfx.c') diff --git a/src/isogfx.c b/src/isogfx.c index 865ebb4..fcb4b19 100644 --- a/src/isogfx.c +++ b/src/isogfx.c @@ -198,7 +198,7 @@ void isogfx_del(IsoGfx** ppIso) { } } -void isogfx_make_world(IsoGfx* iso, const WorldDesc* desc) { +void isogfx_make_map(IsoGfx* iso, const MapDesc* desc) { assert(iso); assert(desc); assert(desc->tile_width > 0); @@ -246,7 +246,7 @@ void isogfx_make_world(IsoGfx* iso, const WorldDesc* desc) { iso->iso_space = make_iso_coord_system(iso->map, &iso->screen); } -bool isogfx_load_world(IsoGfx* iso, const char* filepath) { +bool isogfx_load_map(IsoGfx* iso, const char* filepath) { assert(iso); assert(filepath); @@ -592,7 +592,7 @@ static void draw_tile(IsoGfx* iso, ivec2 screen_origin, Tile tile) { &iso->screen, top_left, pTile->width, pTile->height, pixels, nullptr); } -static void draw_world(IsoGfx* iso) { +static void draw_map(IsoGfx* iso) { assert(iso); const int W = iso->screen.width; @@ -655,7 +655,7 @@ void isogfx_set_camera(IsoGfx* iso, int x, int y) { void isogfx_render(IsoGfx* iso) { assert(iso); - draw_world(iso); + draw_map(iso); draw_sprites(iso); } -- cgit v1.2.3