DEADSOFTWARE

system: remove sys_Delay
[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 (* --- Graphics --- *)
23 function sys_GetDisplayModes (bpp: Integer): SSArray;
24 function sys_SetDisplayMode (w, h, bpp: Integer; fullscreen, maximized: Boolean): Boolean;
25 procedure sys_EnableVSync (yes: Boolean);
26 procedure sys_Repaint;
28 (* --- Input --- *)
29 function sys_HandleInput (): Boolean;
30 procedure sys_RequestQuit;
32 (* --- Init --- *)
33 procedure sys_Init;
34 procedure sys_Final;
36 var (* hooks *)
37 sys_CharPress: procedure (ch: AnsiChar) = nil;
38 sys_ScreenResize: procedure (w, h: Integer) = nil;
40 implementation
42 uses SysUtils;
44 (* --------- Graphics --------- *)
46 procedure sys_Repaint;
47 begin
48 end;
50 procedure sys_EnableVSync (yes: Boolean);
51 begin
52 end;
54 function sys_GetDisplayModes (bpp: Integer): SSArray;
55 begin
56 result := nil
57 end;
59 function sys_SetDisplayMode (w, h, bpp: Integer; fullscreen, maximized: Boolean): Boolean;
60 begin
61 result := true
62 end;
64 (* --------- Input --------- *)
66 function sys_HandleInput (): Boolean;
67 begin
68 result := false
69 end;
71 procedure sys_RequestQuit;
72 begin
73 end;
75 (* --------- Init --------- *)
77 procedure sys_Init;
78 begin
79 end;
81 procedure sys_Final;
82 begin
83 end;
85 end.