diff options
| author | 3gg <3gg@shellblade.net> | 2025-09-02 18:44:30 -0700 |
|---|---|---|
| committer | 3gg <3gg@shellblade.net> | 2025-09-02 18:45:12 -0700 |
| commit | 5941948319139b4224df29762d66de2430cc994f (patch) | |
| tree | 21ab50c106600a4fcc2245587ff513b9b95deb38 /src | |
| parent | e6bf7e77797103ee7ab0eda57c360c38f1b2089c (diff) | |
Rename map functions.
Diffstat (limited to 'src')
| -rw-r--r-- | src/isogfx.c | 8 |
1 files changed, 4 insertions, 4 deletions
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) { | |||
| 198 | } | 198 | } |
| 199 | } | 199 | } |
| 200 | 200 | ||
| 201 | void isogfx_make_world(IsoGfx* iso, const WorldDesc* desc) { | 201 | void isogfx_make_map(IsoGfx* iso, const MapDesc* desc) { |
| 202 | assert(iso); | 202 | assert(iso); |
| 203 | assert(desc); | 203 | assert(desc); |
| 204 | assert(desc->tile_width > 0); | 204 | assert(desc->tile_width > 0); |
| @@ -246,7 +246,7 @@ void isogfx_make_world(IsoGfx* iso, const WorldDesc* desc) { | |||
| 246 | iso->iso_space = make_iso_coord_system(iso->map, &iso->screen); | 246 | iso->iso_space = make_iso_coord_system(iso->map, &iso->screen); |
| 247 | } | 247 | } |
| 248 | 248 | ||
| 249 | bool isogfx_load_world(IsoGfx* iso, const char* filepath) { | 249 | bool isogfx_load_map(IsoGfx* iso, const char* filepath) { |
| 250 | assert(iso); | 250 | assert(iso); |
| 251 | assert(filepath); | 251 | assert(filepath); |
| 252 | 252 | ||
| @@ -592,7 +592,7 @@ static void draw_tile(IsoGfx* iso, ivec2 screen_origin, Tile tile) { | |||
| 592 | &iso->screen, top_left, pTile->width, pTile->height, pixels, nullptr); | 592 | &iso->screen, top_left, pTile->width, pTile->height, pixels, nullptr); |
| 593 | } | 593 | } |
| 594 | 594 | ||
| 595 | static void draw_world(IsoGfx* iso) { | 595 | static void draw_map(IsoGfx* iso) { |
| 596 | assert(iso); | 596 | assert(iso); |
| 597 | 597 | ||
| 598 | const int W = iso->screen.width; | 598 | const int W = iso->screen.width; |
| @@ -655,7 +655,7 @@ void isogfx_set_camera(IsoGfx* iso, int x, int y) { | |||
| 655 | 655 | ||
| 656 | void isogfx_render(IsoGfx* iso) { | 656 | void isogfx_render(IsoGfx* iso) { |
| 657 | assert(iso); | 657 | assert(iso); |
| 658 | draw_world(iso); | 658 | draw_map(iso); |
| 659 | draw_sprites(iso); | 659 | draw_sprites(iso); |
| 660 | } | 660 | } |
| 661 | 661 | ||
