summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2025-09-02 18:44:30 -0700
committer3gg <3gg@shellblade.net>2025-09-02 18:45:12 -0700
commit5941948319139b4224df29762d66de2430cc994f (patch)
tree21ab50c106600a4fcc2245587ff513b9b95deb38 /include
parente6bf7e77797103ee7ab0eda57c360c38f1b2089c (diff)
Rename map functions.
Diffstat (limited to 'include')
-rw-r--r--include/isogfx/isogfx.h12
1 files changed, 6 insertions, 6 deletions
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 {
37 }; 37 };
38} TileDesc; 38} TileDesc;
39 39
40typedef struct WorldDesc { 40typedef struct MapDesc {
41 int tile_width; // Base tile width in pixels. 41 int tile_width; // Base tile width in pixels.
42 int tile_height; // Base tile height in pixels. 42 int tile_height; // Base tile height in pixels.
43 int world_width; // World width in tiles. 43 int world_width; // World width in tiles.
44 int world_height; // World height in tiles. 44 int world_height; // World height in tiles.
45 int num_tiles; // Number of tiles to allocate memory for. 45 int num_tiles; // Number of tiles to allocate memory for.
46} WorldDesc; 46} MapDesc;
47 47
48typedef struct IsoGfxDesc { 48typedef struct IsoGfxDesc {
49 void* memory; // Block of memory for the engine to use. 49 void* memory; // Block of memory for the engine to use.
@@ -61,11 +61,11 @@ void isogfx_del(IsoGfx**);
61/// Clear all loaded worlds and sprites. 61/// Clear all loaded worlds and sprites.
62void isogfx_clear(IsoGfx*); 62void isogfx_clear(IsoGfx*);
63 63
64/// Create an empty world. 64/// Create an empty map.
65void isogfx_make_world(IsoGfx*, const WorldDesc*); 65void isogfx_make_map(IsoGfx*, const MapDesc*);
66 66
67/// Load a world from a tile map (.TM) file. 67/// Load a tile map (.TM) file.
68bool isogfx_load_world(IsoGfx*, const char* filepath); 68bool isogfx_load_map(IsoGfx*, const char* filepath);
69 69
70/// Return the world's width. 70/// Return the world's width.
71int isogfx_world_width(const IsoGfx*); 71int isogfx_world_width(const IsoGfx*);