summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2025-09-02 18:41:46 -0700
committer3gg <3gg@shellblade.net>2025-09-02 18:41:46 -0700
commit5278a117ee31c911106346e60018e13c8f3e79fc (patch)
treede41c3932cd83adabcff96f602e0bd4e99e3ddad /include
parent1b6f15920a2d96d7de539654275acfad8196ece4 (diff)
Add TODOs
Diffstat (limited to 'include')
-rw-r--r--include/isogfx/isogfx.h12
1 files 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);
88/// Create an animated sprite. 88/// Create an animated sprite.
89Sprite isogfx_make_sprite(IsoGfx*, SpriteSheet); 89Sprite isogfx_make_sprite(IsoGfx*, SpriteSheet);
90 90
91/// Destroy all the sprites. 91// TODO: Add a function to delete a sprite. Making the caller manage and re-use
92void isogfx_del_sprites(IsoGfx*); 92// sprites is a shitty API.
93// Not that the stack allocator gets completely in the way; implement a free
94// list of sprites so that we can re-use the ones that have been "freed".
93 95
94/// Set the sprite's position. 96/// Set the sprite's position.
95void isogfx_set_sprite_position(IsoGfx*, Sprite, int x, int y); 97void isogfx_set_sprite_position(IsoGfx*, Sprite, int x, int y);
@@ -99,9 +101,13 @@ void isogfx_set_sprite_animation(IsoGfx*, Sprite, int animation);
99 101
100/// Update the renderer. 102/// Update the renderer.
101/// 103///
102/// Currently this updates the sprite animations. 104/// Currently, this updates the sprite animations.
103void isogfx_update(IsoGfx*, double t); 105void isogfx_update(IsoGfx*, double t);
104 106
107// TODO: Do we really need to store the camera in the library? It's not used
108// for anything other than to render, so we could remove library state and
109// take a camera argument in render() instead.
110
105/// Set the camera. 111/// Set the camera.
106void isogfx_set_camera(IsoGfx*, int x, int y); 112void isogfx_set_camera(IsoGfx*, int x, int y);
107 113