1 /***************************************************************************
2                           effects.h  -  Special graphics effects for XRally
3                              -------------------
4     begin                : Sat Jan 1 2000
5     copyright            : (C) 2000 by Perdig
6     email                : perdig@linuxbr.com.br
7 
8     $Id: effects.h,v 1.1 2000/11/25 14:48:53 perdig Exp $
9  ***************************************************************************/
10 
11 /***************************************************************************
12  *                                                                         *
13  *   This program is free software; you can redistribute it and/or modify  *
14  *   it under the terms of the GNU General Public License as published by  *
15  *   the Free Software Foundation; either version 2 of the License, or     *
16  *   (at your option) any later version.                                   *
17  *                                                                         *
18  ***************************************************************************/
19 #ifndef _EFFECTS_H
20 #define _EFFECTS_H
21 
22 #include "config.h"
23 
24 // Blend stuff
25 
26 typedef struct node_t_st {
27 	unsigned long old_pix;
28 	unsigned long new_pix;
29 	struct node_t_st *next;
30 } node_t;
31 
32 typedef struct blend_cache_t_st {
33 	XColor color;
34 	int factor;
35 	node_t *node;
36 } blend_cache_t;
37 
38 
39 // Function Prototypes
40 
41 XImage *blend_image(Pixmap, int x, int y, int w, int h, blend_cache_t *);
42 void init_blend_cache(blend_cache_t *);
43 void free_blend_cache(blend_cache_t *);
44 #endif
45