author | KUDr |
Mon, 01 Jan 2007 10:26:12 +0000 | |
branch | custombridgeheads |
changeset 5620 | 3b40a41f90d2 |
parent 5167 | 2b9d61386688 |
permissions | -rw-r--r-- |
2186 | 1 |
/* $Id$ */ |
2 |
||
0 | 3 |
#ifndef HAL_H |
4 |
#define HAL_H |
|
5 |
||
6 |
typedef struct { |
|
1301
313804601383
(svn r1805) Teach the driver layer a few things about const correctness
tron
parents:
1093
diff
changeset
|
7 |
const char *(*start)(const char * const *parm); |
1093
e8d26c7dc42f
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
810
diff
changeset
|
8 |
void (*stop)(void); |
0 | 9 |
} HalCommonDriver; |
10 |
||
11 |
typedef struct { |
|
1301
313804601383
(svn r1805) Teach the driver layer a few things about const correctness
tron
parents:
1093
diff
changeset
|
12 |
const char *(*start)(const char * const *parm); |
1093
e8d26c7dc42f
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
810
diff
changeset
|
13 |
void (*stop)(void); |
0 | 14 |
void (*make_dirty)(int left, int top, int width, int height); |
2228 | 15 |
void (*main_loop)(void); |
0 | 16 |
bool (*change_resolution)(int w, int h); |
1829
0b6de3b4458a
(svn r2334) - Fix (regression): moved togglefullscreen into the video-driver, now windows works, dedicated works and sdl works. Also reverted the change to the makefile.
Darkvater
parents:
1596
diff
changeset
|
17 |
void (*toggle_fullscreen)(bool fullscreen); |
0 | 18 |
} HalVideoDriver; |
19 |
||
20 |
typedef struct { |
|
1301
313804601383
(svn r1805) Teach the driver layer a few things about const correctness
tron
parents:
1093
diff
changeset
|
21 |
const char *(*start)(const char * const *parm); |
1093
e8d26c7dc42f
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
810
diff
changeset
|
22 |
void (*stop)(void); |
0 | 23 |
} HalSoundDriver; |
24 |
||
25 |
typedef struct { |
|
1301
313804601383
(svn r1805) Teach the driver layer a few things about const correctness
tron
parents:
1093
diff
changeset
|
26 |
const char *(*start)(const char * const *parm); |
1093
e8d26c7dc42f
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
810
diff
changeset
|
27 |
void (*stop)(void); |
0 | 28 |
|
29 |
void (*play_song)(const char *filename); |
|
1093
e8d26c7dc42f
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
810
diff
changeset
|
30 |
void (*stop_song)(void); |
e8d26c7dc42f
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
810
diff
changeset
|
31 |
bool (*is_song_playing)(void); |
0 | 32 |
void (*set_volume)(byte vol); |
33 |
} HalMusicDriver; |
|
34 |
||
35 |
VARDEF HalMusicDriver *_music_driver; |
|
36 |
VARDEF HalSoundDriver *_sound_driver; |
|
37 |
VARDEF HalVideoDriver *_video_driver; |
|
38 |
||
39 |
enum DriverType { |
|
40 |
VIDEO_DRIVER = 0, |
|
41 |
SOUND_DRIVER = 1, |
|
42 |
MUSIC_DRIVER = 2, |
|
43 |
}; |
|
44 |
||
4217
58e6b9449c80
(svn r5761) - Cleanup: Really minor whitespace changes, and remove an extern from a function decleration in header file.
Darkvater
parents:
3329
diff
changeset
|
45 |
void GameLoop(void); |
0 | 46 |
|
1093
e8d26c7dc42f
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
tron
parents:
810
diff
changeset
|
47 |
void CreateConsole(void); |
0 | 48 |
|
49 |
#endif /* HAL_H */ |