1 /***********************************************************
2 * Rocks'n'Diamonds -- McDuffin Strikes Back! *
3 *----------------------------------------------------------*
4 * (c) 1995-98 Artsoft Entertainment *
8 * phone: ++49 +521 290471 *
9 * email: aeglos@valinor.owl.de *
10 *----------------------------------------------------------*
12 ***********************************************************/
24 #define MAX_COLORS 256 /* maximal number of colors for each image */
26 typedef unsigned short Intensity; /* RGB intensity for X11 */
30 Display *display; /* destination display */
31 int depth; /* depth of destination drawable */
32 Pixel index[MAX_COLORS]; /* array of pixel values */
33 int no; /* number of pixels in the array */
34 Colormap cmap; /* colormap used for image */
35 Pixmap pixmap; /* final pixmap */
36 Pixmap pixmap_mask; /* final pixmap of mask */
41 unsigned int used; /* number of colors used in RGB map */
42 Intensity red[MAX_COLORS]; /* color values in X style */
43 Intensity green[MAX_COLORS];
44 Intensity blue[MAX_COLORS];
45 boolean color_used[MAX_COLORS]; /* flag if color cell is used */
50 struct RGBMap rgb; /* RGB map of image if IRGB type */
51 unsigned int width; /* width of image in pixels */
52 unsigned int height; /* height of image in pixels */
53 unsigned int depth; /* depth of image in bits if IRGB type */
54 byte *data; /* image data */
57 Image *newImage(unsigned int, unsigned int, unsigned int);
58 void freeImage(Image *);
59 void freeXImage(Image *, XImageInfo *);
60 int Read_PCX_to_Pixmap(Display *, Window, GC, char *, Pixmap *, Pixmap *);
62 #endif /* !TARGET_SDL */