diff options
author | jacopo grandi <jak.sk8@hotmail.it> | 2021-02-24 16:38:42 +0100 |
---|---|---|
committer | jacopo grandi <jak.sk8@hotmail.it> | 2021-02-24 16:38:42 +0100 |
commit | 0b338bbd007048551526ab4fa4130d53b414e650 (patch) | |
tree | 1eabc6fcd6954de07cf1304435b1f70fd58e29f2 /gst/fxs.h | |
parent | f26a86bcc78c1946f55b6a399039e3bd8fb5dd16 (diff) |
fire and movement animations
Diffstat (limited to 'gst/fxs.h')
-rw-r--r-- | gst/fxs.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gst/fxs.h b/gst/fxs.h new file mode 100644 index 0000000..1efe97a --- /dev/null +++ b/gst/fxs.h @@ -0,0 +1,25 @@ +#ifndef FXS_H +#define FXS_H + +#include <SDL.h> + +typedef struct { + float from[2]; + float to[2]; + float starttime; + float endtime; + float size; + int color[3]; +} bullet; + +typedef struct { + bullet *bullets; + int bulletslen; +} fxs; + +void fx_init (fxs *fx); +void fx_add_bullet (fxs *fx, bullet *b); +void fx_process (fxs *fx, float time); +void fx_render (SDL_Renderer *rend, fxs *fx, float cam[], float time); + +#endif
\ No newline at end of file |