1 /**********************************************************************
2  Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
3    This program is free software; you can redistribute it and/or modify
4    it under the terms of the GNU General Public License as published by
5    the Free Software Foundation; either version 2, or (at your option)
6    any later version.
7 
8    This program is distributed in the hope that it will be useful,
9    but WITHOUT ANY WARRANTY; without even the implied warranty of
10    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11    GNU General Public License for more details.
12 ***********************************************************************/
13 #ifndef FC__GRAPHICS_H
14 #define FC__GRAPHICS_H
15 
16 #include <X11/Xlib.h>
17 
18 #include "graphics_g.h"
19 
20 struct sprite {
21   Pixmap pixmap, mask;
22   int width, height, ncols;
23   unsigned long *pcolorarray;
24   int has_mask;
25 };
26 
27 struct canvas {
28   Pixmap pixmap;
29 };
30 
31 Pixmap create_overlay_unit(const struct unit_type *punittype);
32 
33 extern struct sprite *intro_gfx_sprite;
34 extern struct sprite *radar_gfx_sprite;
35 extern Cursor cursors[];
36 
37 #endif  /* FC__GRAPHICS_H */
38