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