diff options
| author | Aldrik Ramaekers <aldrik@amftech.nl> | 2024-01-02 20:31:29 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@amftech.nl> | 2024-01-02 20:31:29 +0100 |
| commit | ee4714ccff99414f19b6cce42e9fe53d2a867a15 (patch) | |
| tree | 708d2077e232c39d43a505573d9f1168b5132358 /include/sprite.h | |
| parent | 007335a39baff05fb7cabb07457cd5972a013fda (diff) | |
zombie sprite
Diffstat (limited to 'include/sprite.h')
| -rw-r--r-- | include/sprite.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sprite.h b/include/sprite.h index af98d32..c203595 100644 --- a/include/sprite.h +++ b/include/sprite.h @@ -13,6 +13,7 @@ typedef struct t_sprite { int img_width; int img_height; int frame_start; + float zoom; } sprite; typedef struct t_sprite_frame { @@ -25,6 +26,7 @@ typedef struct t_sprite_frame { sprite create_sprite(image* img, int frame_count, int fwidth, int fheight, float sec_per_frame); void update_sprite(sprite* sprite); void sprite_set_current_frame(sprite* sprite, int index); +sprite_frame sprite_swap_frame_horizontally(sprite_frame frame); sprite_frame sprite_get_frame(image* img, sprite* sprite); #endif
\ No newline at end of file |
