diff options
| author | 3gg <3gg@shellblade.net> | 2023-07-14 09:25:55 -0700 |
|---|---|---|
| committer | 3gg <3gg@shellblade.net> | 2023-07-14 09:25:55 -0700 |
| commit | 2c668763a1d6e645dcfaa713b924de26260542d0 (patch) | |
| tree | 94cbbdfd904ed57ebf9372d399b7f283eee1b894 /gfx-iso/include/isogfx/isogfx.h | |
| parent | 30920ebec7d66adbb540e907a49058dcf334383c (diff) | |
Fix checkerboard demo.
Diffstat (limited to 'gfx-iso/include/isogfx/isogfx.h')
| -rw-r--r-- | gfx-iso/include/isogfx/isogfx.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gfx-iso/include/isogfx/isogfx.h b/gfx-iso/include/isogfx/isogfx.h index 5c44310..6b7ce8e 100644 --- a/gfx-iso/include/isogfx/isogfx.h +++ b/gfx-iso/include/isogfx/isogfx.h | |||
| @@ -79,10 +79,6 @@ void isogfx_set_tile(IsoGfx*, int x, int y, Tile); | |||
| 79 | /// Set the tiles in positions in the range (x0,y0) - (x1,y1). | 79 | /// Set the tiles in positions in the range (x0,y0) - (x1,y1). |
| 80 | void isogfx_set_tiles(IsoGfx*, int x0, int y0, int x1, int y1, Tile); | 80 | void isogfx_set_tiles(IsoGfx*, int x0, int y0, int x1, int y1, Tile); |
| 81 | 81 | ||
| 82 | /// Translate Cartesian to isometric coordinates. | ||
| 83 | void isogfx_pick_tile( | ||
| 84 | const IsoGfx*, double xcart, double ycart, int* xiso, int* yiso); | ||
| 85 | |||
| 86 | /// Render the world. | 82 | /// Render the world. |
| 87 | void isogfx_render(IsoGfx*); | 83 | void isogfx_render(IsoGfx*); |
| 88 | 84 | ||
| @@ -100,3 +96,7 @@ bool isogfx_resize(IsoGfx*, int screen_width, int screen_height); | |||
| 100 | /// | 96 | /// |
| 101 | /// Call after each call to isogfx_render() to retrieve the render output. | 97 | /// Call after each call to isogfx_render() to retrieve the render output. |
| 102 | const Pixel* isogfx_get_screen_buffer(const IsoGfx*); | 98 | const Pixel* isogfx_get_screen_buffer(const IsoGfx*); |
| 99 | |||
| 100 | /// Translate Cartesian to isometric coordinates. | ||
| 101 | void isogfx_pick_tile( | ||
| 102 | const IsoGfx*, double xcart, double ycart, int* xiso, int* yiso); | ||
