diff options
| -rw-r--r-- | include/isogfx/isogfx.h | 12 |
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. |
| 89 | Sprite isogfx_make_sprite(IsoGfx*, SpriteSheet); | 89 | Sprite 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 |
| 92 | void 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. |
| 95 | void isogfx_set_sprite_position(IsoGfx*, Sprite, int x, int y); | 97 | void 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. |
| 103 | void isogfx_update(IsoGfx*, double t); | 105 | void 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. |
| 106 | void isogfx_set_camera(IsoGfx*, int x, int y); | 112 | void isogfx_set_camera(IsoGfx*, int x, int y); |
| 107 | 113 | ||
