diff options
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 | ||
