02bd92cb90a3ca31664772361454442275b0b459
[rocksndiamonds.git] / src / system.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 *  system.h                                                *
13 ***********************************************************/
14
15 #ifndef SYSTEM_H
16 #define SYSTEM_H
17
18 #if defined(MSDOS)
19 #include "msdos.h"
20 #endif
21
22 #if defined(USE_SDL_LIBRARY)
23 #include "sdl.h"
24 #elif defined(USE_X11_LIBRARY)
25 #include "x11.h"
26 #endif
27
28
29 /* system-wide contant definitions */
30
31 #define DEFAULT_DEPTH                   0
32
33 #define FULLSCREEN_NOT_AVAILABLE        FALSE
34 #define FULLSCREEN_AVAILABLE            TRUE
35
36
37 /* system-wide type definitions */
38
39 typedef int (*EventFilter)(const Event *);
40
41
42 /* system-wide function definitions */
43
44 inline void InitEventFilter(EventFilter);
45 inline void InitBufferedDisplay(DrawBuffer *, DrawWindow *);
46
47 inline int GetDisplayDepth(void);
48
49 inline Bitmap CreateBitmap(int, int, int);
50 inline void FreeBitmap(Bitmap);
51
52 inline void ClearRectangle(Bitmap, int, int, int, int);
53 inline void BlitBitmap(Bitmap, Bitmap, int, int, int, int, int, int);
54 inline void SetClipMask(GC, Pixmap);
55 inline void SetClipOrigin(GC, int, int);
56 inline void BlitBitmapMasked(Bitmap, Bitmap, int, int, int, int, int, int);
57 inline void DrawSimpleWhiteLine(Bitmap, int, int, int, int);
58
59 inline void FlushDisplay(void);
60 inline void SyncDisplay(void);
61 inline void KeyboardAutoRepeatOn(void);
62 inline void KeyboardAutoRepeatOff(void);
63 inline boolean PointerInWindow(DrawWindow);
64
65 inline boolean PendingEvent(void);
66 inline void NextEvent(Event *event);
67
68 inline Key GetEventKey(KeyEvent *, boolean);
69
70 inline boolean SetVideoMode(void);
71 inline void ChangeVideoModeIfNeeded(void);
72
73 #endif /* SYSTEM_H */