1 /* 2 * A Z-Machine 3 * Copyright (C) 2000 Andrew Hunter 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18 */ 19 20 /* 21 * Routines for turning images into XImages 22 * 23 * Groan, moan, grah, mutter, X. 24 */ 25 26 #ifndef __IMAGE_XIMAGE_H 27 #define __IMAGE_XIMAGE_H 28 29 # include "../config.h" 30 31 # if WINDOW_SYSTEM == 1 32 33 # include "ztypes.h" 34 # include "image.h" 35 36 # include <X11/Xlib.h> 37 38 # ifdef HAVE_XRENDER 39 # include <X11/extensions/Xrender.h> 40 # endif 41 42 extern XImage* image_to_ximage_truecolour(image_data* img, 43 Display* display, 44 Visual* visual); 45 extern XImage* image_to_mask_truecolour (XImage* orig, 46 image_data* img, 47 Display* display, 48 Visual* visual); 49 extern void image_plot_X (image_data* img, 50 Display* display, 51 Drawable draw, 52 GC gc, 53 int x, int y, 54 int n, int d); 55 # ifdef HAVE_XRENDER 56 extern XImage* image_to_ximage_render(image_data* img, 57 Display* display, 58 Visual* visual); 59 extern void image_plot_Xrender (image_data* img, 60 Display* display, 61 Picture pic, 62 int x, int y, 63 int n, int d); 64 # endif 65 66 # endif 67 68 #endif 69