DEADSOFTWARE

system: remove sys_GetTicks
[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 procedure sys_Delay (ms: Integer);
25 (* --- Graphics --- *)
26 function sys_GetDisplayModes (bpp: Integer): SSArray;
27 function sys_SetDisplayMode (w, h, bpp: Integer; fullscreen, maximized: Boolean): Boolean;
28 procedure sys_EnableVSync (yes: Boolean);
29 procedure sys_Repaint;
31 (* --- Input --- *)
32 function sys_HandleInput (): Boolean;
33 procedure sys_RequestQuit;
35 (* --- Init --- *)
36 procedure sys_Init;
37 procedure sys_Final;
39 var (* hooks *)
40 sys_CharPress: procedure (ch: AnsiChar) = nil;
41 sys_ScreenResize: procedure (w, h: Integer) = nil;
43 implementation
45 uses SysUtils;
47 (* --------- Utils --------- *)
49 procedure sys_Delay (ms: Integer);
50 begin
51 Sleep(ms)
52 end;
54 (* --------- Graphics --------- *)
56 procedure sys_Repaint;
57 begin
58 end;
60 procedure sys_EnableVSync (yes: Boolean);
61 begin
62 end;
64 function sys_GetDisplayModes (bpp: Integer): SSArray;
65 begin
66 result := nil
67 end;
69 function sys_SetDisplayMode (w, h, bpp: Integer; fullscreen, maximized: Boolean): Boolean;
70 begin
71 result := true
72 end;
74 (* --------- Input --------- *)
76 function sys_HandleInput (): Boolean;
77 begin
78 result := false
79 end;
81 procedure sys_RequestQuit;
82 begin
83 end;
85 (* --------- Init --------- *)
87 procedure sys_Init;
88 begin
89 end;
91 procedure sys_Final;
92 begin
93 end;
95 end.