DEADSOFTWARE

4e9fcedc40989b2414655f8572f1881a5daeacbf
[d2df-sdl.git] / src / game / stub / g_system.pas
1 (* Copyright (C) Doom 2D: Forever Developers
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, version 3 of the License ONLY.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 *
12 * You should have received a copy of the GNU General Public License
13 * along with this program. If not, see <http://www.gnu.org/licenses/>.
14 *)
15 {$INCLUDE ../shared/a_modes.inc}
16 unit g_system;
18 interface
20 uses Utils;
22 (* --- Utils --- *)
23 function sys_GetTicks (): Int64;
24 procedure sys_Delay (ms: Integer);
26 (* --- Graphics --- *)
27 function sys_GetDispalyModes (bpp: Integer): SSArray;
28 function sys_SetDisplayMode (w, h, bpp: Integer; fullscreen: Boolean): Boolean;
29 procedure sys_EnableVSync (yes: Boolean);
30 procedure sys_Repaint;
32 (* --- Input --- *)
33 function sys_HandleInput (): Boolean;
34 procedure sys_RequestQuit;
36 (* --- Init --- *)
37 procedure sys_Init;
38 procedure sys_Final;
40 implementation
42 (* --------- Utils --------- *)
44 function sys_GetTicks (): Int64;
45 begin
46 Result := 0
47 end;
49 procedure sys_Delay (ms: Integer);
50 begin
51 end;
53 (* --------- Graphics --------- *)
55 procedure sys_Repaint;
56 begin
57 end;
59 procedure sys_EnableVSync (yes: Boolean);
60 begin
61 end;
63 function sys_GetDispalyModes (bpp: Integer): SSArray;
64 begin
65 result := nil
66 end;
68 function sys_SetDisplayMode (w, h, bpp: Integer; fullscreen: Boolean): Boolean;
69 begin
70 result := true
71 end;
73 (* --------- Input --------- *)
75 function sys_HandleInput (): Boolean;
76 begin
77 result := false
78 end;
80 procedure sys_RequestQuit;
81 begin
82 end;
84 (* --------- Init --------- *)
86 procedure sys_Init;
87 begin
88 end;
90 procedure sys_Final;
91 begin
92 end;
94 end.