http://packetstormsecurity.org/UNIX/admin/xscreensaver-4.01.tar.gz
[xscreensaver] / hacks / glx / xpm-ximage.h
1 /* xpm-ximage.h --- converts XPM data to an XImage for use with OpenGL.
2  * xscreensaver, Copyright (c) 1998, 2002 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 _XPM_TEXTURE_H_
14 #define _XPM_TEXTURE_H_
15
16 /* Returns an XImage structure containing the bits of the given XPM image.
17    This XImage will be 32 bits per pixel, 8 each per R, G, and B, with the
18    extra byte set to 0xFF.
19
20    The Display and Visual arguments are used only for creating the XImage;
21    no bits are pushed to the server.
22
23    The Colormap argument is used just for parsing color names; no colors
24    are allocated.
25  */
26 extern XImage *xpm_to_ximage (Display *, Visual *, Colormap, char **xpm_data);
27 extern XImage *xpm_file_to_ximage (Display *, Visual *, Colormap,
28                                    const char *filename);
29
30 #endif /* _XPM_TEXTURE_H_ */