http://ftp.aanet.ru/pub/Linux/X11/apps/xscreensaver-2.31.tar.gz
[xscreensaver] / utils / alpha.h
1 /* xscreensaver, Copyright (c) 1992, 1995, 1996, 1997
2  *  Jamie Zawinski <jwz@jwz.org>
3  *
4  * Permission to use, copy, modify, distribute, and sell this software and its
5  * documentation for any purpose is hereby granted without fee, provided that
6  * the above copyright notice appear in all copies and that both that
7  * copyright notice and this permission notice appear in supporting
8  * documentation.  No representations are made about the suitability of this
9  * software for any purpose.  It is provided "as is" without express or 
10  * implied warranty.
11  */
12
13 #ifndef __XSCREENSAVER_ALPHA_H__
14 #define __XSCREENSAVER_ALPHA_H__
15
16 extern int allocate_color_planes (Display *dpy, Colormap cmap,
17                                   int nplanes, unsigned long *plane_masks,
18                                   unsigned long *base_pixel_ret);
19
20 extern void initialize_transparency_colormap (Display *dpy, Colormap cmap,
21                                               int nplanes,
22                                               unsigned long base_pixel,
23                                               unsigned long *plane_masks,
24                                               XColor *colors,
25                                               Bool additive_p);
26
27 extern Bool allocate_alpha_colors (Display *dpy, Colormap cmap,
28                                    int *nplanesP, Bool additive_p,
29                                    unsigned long **plane_masks,
30                                    unsigned long *base_pixelP);
31
32 #endif /* __XSCREENSAVER_ALPHA_H__ */