rnd-19980930-1
[rocksndiamonds.git] / src / gfxload.h
1 /***********************************************************
2 *  Rocks'n'Diamonds -- McDuffin Strikes Back!              *
3 *----------------------------------------------------------*
4 *  (c) 1995-98 Artsoft Entertainment                       *
5 *              Holger Schemel                              *
6 *              Oststrasse 11a                              *
7 *              33604 Bielefeld                             *
8 *              phone: ++49 +521 290471                     *
9 *              email: aeglos@valinor.owl.de                *
10 *----------------------------------------------------------*
11 *  gfxload.h                                               *
12 ***********************************************************/
13
14 #ifndef GFXLOAD_H
15 #define GFXLOAD_H
16
17 #ifndef MSDOS
18 #include <stdio.h>
19 #include <stdlib.h>
20 #include <string.h>
21 #include <X11/Xlib.h>
22 #include <X11/Xutil.h>
23
24 #define GIF_Success              0
25 #define GIF_OpenFailed          -1
26 #define GIF_ReadFailed          -2
27 #define GIF_FileInvalid         -3
28 #define GIF_NoMemory            -4
29 #define GIF_ColorFailed         -5
30
31 #define ILBM_Success             0
32 #define ILBM_OpenFailed         -1
33 #define ILBM_ReadFailed         -2
34 #define ILBM_FileInvalid        -3
35 #define ILBM_NoMemory           -4
36 #define ILBM_ColorFailed        -5
37
38 int Read_ILBM_to_Bitmap(Display *, char *, Pixmap *);
39 int Read_GIF_to_Bitmap(Display *, char *, Pixmap *);
40 int Read_GIF_to_Pixmap(Display *, char *, Pixmap *);
41 int Read_GIF_to_XImage(Display *, char *, XImage **);
42
43 #endif
44 #endif