1 /*
2  * GNUjump
3  * =======
4  *
5  * Copyright (C) 2005-2008, Juan Pedro Bolivar Puente
6  *
7  * GNUjump is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * GNUjump is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
19  */
20 
21 
22 #ifndef _EFFECTS_H_
23 #define _EFFECTS_H_
24 
25 /* Trail settings */
26 #define TRAILSTART 255
27 #define TRAILFADE 1000
28 
29 /* Blur settings */
30 #define BLURSTART 255
31 #define BLURFADE 400
32 #define BLURGAP 242
33 
34 #include "gnujump.h"
35 #include "game.h"
36 
37 /*
38   Blur
39 */
40 
41 void updateBlurs (hero_t * hero, float msec);
42 
43 void scrollBlurs (hero_t * hero, float dy);
44 
45 void drawBlur (data_t * gfx, blur_t * blur, int player);
46 
47 void freeBlurs (hero_t * hero);
48 
49 /*
50   Trail
51 */
52 
53 trail_t *makeTrail (float x0, float y0, float x1, float y1);
54 
55 void updateTrails (hero_t * hero, float msec);
56 
57 void scrollTrails (hero_t * hero, float dy);
58 
59 void drawTrail (data_t * gfx, trail_t * trail, int player);
60 
61 void freeTrails (hero_t * hero);
62 
63 #endif
64