aboutsummaryrefslogtreecommitdiffstats
path: root/original/xpm-ximage.h
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2016-05-06 14:00:19 -0400
committerbnewbold <bnewbold@robocracy.org>2016-05-06 14:00:19 -0400
commit88608ff1d844d36b824e33aaa90cf25f1e028b1b (patch)
tree7ca29bc81d31cdb93f3f9d46b40d9c10d72f5217 /original/xpm-ximage.h
parentec1e1ec92d870ae3a57b06b3b214d304d729532b (diff)
downloadexuberant-hacks-88608ff1d844d36b824e33aaa90cf25f1e028b1b.tar.gz
exuberant-hacks-88608ff1d844d36b824e33aaa90cf25f1e028b1b.zip
pull in original xscreensaver code
Diffstat (limited to 'original/xpm-ximage.h')
-rw-r--r--original/xpm-ximage.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/original/xpm-ximage.h b/original/xpm-ximage.h
new file mode 100644
index 0000000..234f76b
--- /dev/null
+++ b/original/xpm-ximage.h
@@ -0,0 +1,31 @@
+/* xpm-ximage.h --- converts XPM data to an XImage for use with OpenGL.
+ * xscreensaver, Copyright (c) 1998, 2002 Jamie Zawinski <jwz@jwz.org>
+ *
+ * Permission to use, copy, modify, distribute, and sell this software and its
+ * documentation for any purpose is hereby granted without fee, provided that
+ * the above copyright notice appear in all copies and that both that
+ * copyright notice and this permission notice appear in supporting
+ * documentation. No representations are made about the suitability of this
+ * software for any purpose. It is provided "as is" without express or
+ * implied warranty.
+ */
+
+#ifndef _XPM_TEXTURE_H_
+#define _XPM_TEXTURE_H_
+
+/* Returns an XImage structure containing the bits of the given XPM image.
+ This XImage will be 32 bits per pixel, 8 each per R, G, and B, with the
+ extra byte set to 0xFF.
+
+ The Display and Visual arguments are used only for creating the XImage;
+ no bits are pushed to the server.
+
+ The Colormap argument is used just for parsing color names; no colors
+ are allocated.
+ */
+extern XImage *xpm_to_ximage (Display *, Visual *, Colormap,
+ char **xpm_data);
+extern XImage *xpm_file_to_ximage (Display *, Visual *, Colormap,
+ const char *filename);
+
+#endif /* _XPM_TEXTURE_H_ */