aboutsummaryrefslogtreecommitdiff
path: root/gst/fxs.h
diff options
context:
space:
mode:
Diffstat (limited to 'gst/fxs.h')
-rw-r--r--gst/fxs.h25
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