aboutsummaryrefslogtreecommitdiff
path: root/gst/fxs.h
blob: 1efe97a498aaedb8c8df4d879b79649c764d6c52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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