654dacdb9102b19543bc2fa08ff600835336b85c
[rocksndiamonds.git] / src / gfxload.h
1 /***********************************************************
2 *  Rocks'n'Diamonds -- McDuffin Strikes Back!              *
3 *----------------------------------------------------------*
4 *  ©1995 Artsoft Development                               *
5 *        Holger Schemel                                    *
6 *        33659 Bielefeld-Senne                             *
7 *        Telefon: (0521) 493245                            *
8 *        eMail: aeglos@valinor.owl.de                      *
9 *               aeglos@uni-paderborn.de                    *
10 *               q99492@pbhrzx.uni-paderborn.de             *
11 *----------------------------------------------------------*
12 *  gfxload.h                                               *
13 ***********************************************************/
14
15 #ifndef GFXLOAD_H
16 #define GFXLOAD_H
17
18 #ifndef MSDOS
19 #include <stdio.h>
20 #include <stdlib.h>
21 #include <string.h>
22 #include <X11/Xlib.h>
23 #include <X11/Xutil.h>
24
25 #define GIF_Success              0
26 #define GIF_OpenFailed          -1
27 #define GIF_ReadFailed          -2
28 #define GIF_FileInvalid         -3
29 #define GIF_NoMemory            -4
30 #define GIF_ColorFailed         -5
31
32 #define ILBM_Success             0
33 #define ILBM_OpenFailed         -1
34 #define ILBM_ReadFailed         -2
35 #define ILBM_FileInvalid        -3
36 #define ILBM_NoMemory           -4
37 #define ILBM_ColorFailed        -5
38
39 int Read_ILBM_to_Bitmap(Display *, char *, Pixmap *);
40 int Read_GIF_to_Bitmap(Display *, char *, Pixmap *);
41 int Read_GIF_to_Pixmap(Display *, char *, Pixmap *);
42 int Read_GIF_to_XImage(Display *, char *, XImage **);
43
44 #endif
45 #endif