From 5278a117ee31c911106346e60018e13c8f3e79fc Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Tue, 2 Sep 2025 18:41:46 -0700 Subject: Add TODOs --- include/isogfx/isogfx.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/include/isogfx/isogfx.h b/include/isogfx/isogfx.h index e901231..7a7f814 100644 --- a/include/isogfx/isogfx.h +++ b/include/isogfx/isogfx.h @@ -88,8 +88,10 @@ SpriteSheet isogfx_load_sprite_sheet(IsoGfx*, const char* filepath); /// Create an animated sprite. Sprite isogfx_make_sprite(IsoGfx*, SpriteSheet); -/// Destroy all the sprites. -void isogfx_del_sprites(IsoGfx*); +// TODO: Add a function to delete a sprite. Making the caller manage and re-use +// sprites is a shitty API. +// Not that the stack allocator gets completely in the way; implement a free +// list of sprites so that we can re-use the ones that have been "freed". /// Set the sprite's position. void isogfx_set_sprite_position(IsoGfx*, Sprite, int x, int y); @@ -99,9 +101,13 @@ void isogfx_set_sprite_animation(IsoGfx*, Sprite, int animation); /// Update the renderer. /// -/// Currently this updates the sprite animations. +/// Currently, this updates the sprite animations. void isogfx_update(IsoGfx*, double t); +// TODO: Do we really need to store the camera in the library? It's not used +// for anything other than to render, so we could remove library state and +// take a camera argument in render() instead. + /// Set the camera. void isogfx_set_camera(IsoGfx*, int x, int y); -- cgit v1.2.3