author | richk |
Sat, 14 Jul 2007 19:42:58 +0000 | |
branch | NewGRF_ports |
changeset 6720 | 35756db7e577 |
parent 6314 | f738bcf05ad6 |
child 6872 | 1c4a4a609f85 |
permissions | -rw-r--r-- |
2186 | 1 |
/* $Id$ */ |
2 |
||
2171
008122046f7f
(svn r2685) -Codechange: Split the music/sound/video drivers into separate files and move them into subfolders.
tron
parents:
diff
changeset
|
3 |
#ifndef VIDEO_NULL_H |
008122046f7f
(svn r2685) -Codechange: Split the music/sound/video drivers into separate files and move them into subfolders.
tron
parents:
diff
changeset
|
4 |
#define VIDEO_NULL_H |
008122046f7f
(svn r2685) -Codechange: Split the music/sound/video drivers into separate files and move them into subfolders.
tron
parents:
diff
changeset
|
5 |
|
6720
35756db7e577
(svn r10560) [NewGRF_ports] -Sync: with trunk r10027-10559
richk
parents:
6314
diff
changeset
|
6 |
#include "video_driver.hpp" |
2171
008122046f7f
(svn r2685) -Codechange: Split the music/sound/video drivers into separate files and move them into subfolders.
tron
parents:
diff
changeset
|
7 |
|
6720
35756db7e577
(svn r10560) [NewGRF_ports] -Sync: with trunk r10027-10559
richk
parents:
6314
diff
changeset
|
8 |
class VideoDriver_Null: public VideoDriver { |
35756db7e577
(svn r10560) [NewGRF_ports] -Sync: with trunk r10027-10559
richk
parents:
6314
diff
changeset
|
9 |
private: |
35756db7e577
(svn r10560) [NewGRF_ports] -Sync: with trunk r10027-10559
richk
parents:
6314
diff
changeset
|
10 |
uint ticks; |
35756db7e577
(svn r10560) [NewGRF_ports] -Sync: with trunk r10027-10559
richk
parents:
6314
diff
changeset
|
11 |
|
35756db7e577
(svn r10560) [NewGRF_ports] -Sync: with trunk r10027-10559
richk
parents:
6314
diff
changeset
|
12 |
public: |
35756db7e577
(svn r10560) [NewGRF_ports] -Sync: with trunk r10027-10559
richk
parents:
6314
diff
changeset
|
13 |
/* virtual */ const char *Start(const char * const *param); |
35756db7e577
(svn r10560) [NewGRF_ports] -Sync: with trunk r10027-10559
richk
parents:
6314
diff
changeset
|
14 |
|
35756db7e577
(svn r10560) [NewGRF_ports] -Sync: with trunk r10027-10559
richk
parents:
6314
diff
changeset
|
15 |
/* virtual */ void Stop(); |
35756db7e577
(svn r10560) [NewGRF_ports] -Sync: with trunk r10027-10559
richk
parents:
6314
diff
changeset
|
16 |
|
35756db7e577
(svn r10560) [NewGRF_ports] -Sync: with trunk r10027-10559
richk
parents:
6314
diff
changeset
|
17 |
/* virtual */ void MakeDirty(int left, int top, int width, int height); |
35756db7e577
(svn r10560) [NewGRF_ports] -Sync: with trunk r10027-10559
richk
parents:
6314
diff
changeset
|
18 |
|
35756db7e577
(svn r10560) [NewGRF_ports] -Sync: with trunk r10027-10559
richk
parents:
6314
diff
changeset
|
19 |
/* virtual */ void MainLoop(); |
35756db7e577
(svn r10560) [NewGRF_ports] -Sync: with trunk r10027-10559
richk
parents:
6314
diff
changeset
|
20 |
|
35756db7e577
(svn r10560) [NewGRF_ports] -Sync: with trunk r10027-10559
richk
parents:
6314
diff
changeset
|
21 |
/* virtual */ bool ChangeResolution(int w, int h); |
35756db7e577
(svn r10560) [NewGRF_ports] -Sync: with trunk r10027-10559
richk
parents:
6314
diff
changeset
|
22 |
|
35756db7e577
(svn r10560) [NewGRF_ports] -Sync: with trunk r10027-10559
richk
parents:
6314
diff
changeset
|
23 |
/* virtual */ void ToggleFullscreen(bool fullscreen); |
35756db7e577
(svn r10560) [NewGRF_ports] -Sync: with trunk r10027-10559
richk
parents:
6314
diff
changeset
|
24 |
}; |
35756db7e577
(svn r10560) [NewGRF_ports] -Sync: with trunk r10027-10559
richk
parents:
6314
diff
changeset
|
25 |
|
35756db7e577
(svn r10560) [NewGRF_ports] -Sync: with trunk r10027-10559
richk
parents:
6314
diff
changeset
|
26 |
class FVideoDriver_Null: public VideoDriverFactory<FVideoDriver_Null> { |
35756db7e577
(svn r10560) [NewGRF_ports] -Sync: with trunk r10027-10559
richk
parents:
6314
diff
changeset
|
27 |
public: |
35756db7e577
(svn r10560) [NewGRF_ports] -Sync: with trunk r10027-10559
richk
parents:
6314
diff
changeset
|
28 |
static const int priority = 1; |
35756db7e577
(svn r10560) [NewGRF_ports] -Sync: with trunk r10027-10559
richk
parents:
6314
diff
changeset
|
29 |
/* virtual */ const char *GetName() { return "null"; } |
35756db7e577
(svn r10560) [NewGRF_ports] -Sync: with trunk r10027-10559
richk
parents:
6314
diff
changeset
|
30 |
/* virtual */ const char *GetDescription() { return "Null Video Driver"; } |
35756db7e577
(svn r10560) [NewGRF_ports] -Sync: with trunk r10027-10559
richk
parents:
6314
diff
changeset
|
31 |
/* virtual */ Driver *CreateInstance() { return new VideoDriver_Null(); } |
35756db7e577
(svn r10560) [NewGRF_ports] -Sync: with trunk r10027-10559
richk
parents:
6314
diff
changeset
|
32 |
}; |
2171
008122046f7f
(svn r2685) -Codechange: Split the music/sound/video drivers into separate files and move them into subfolders.
tron
parents:
diff
changeset
|
33 |
|
6314
f738bcf05ad6
(svn r8691) -Cleanup: Some proper #endif comments for sound/music/video files, and a little elimination of magic numbers in Win32SoundStart
Darkvater
parents:
5726
diff
changeset
|
34 |
#endif /* VIDEO_NULL_H */ |