aboutsummaryrefslogtreecommitdiff
path: root/gst/fxs.h
blob: 2be62af62e135519b9fa0f5b374b562ceff08e9f (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 <SDL2/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