1 (* Copyright (C) Doom 2D: Forever Developers
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.
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.
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/>.
15 {$INCLUDE ../shared/a_modes.inc}
23 function sys_GetTicks (): Int64;
24 procedure sys_Delay (ms
: Integer);
26 (* --- Graphics --- *)
27 function sys_GetDisplayModes (bpp
: Integer): SSArray
;
28 function sys_SetDisplayMode (w
, h
, bpp
: Integer; fullscreen
, maximized
: Boolean): Boolean;
29 procedure sys_EnableVSync (yes
: Boolean);
30 procedure sys_Repaint
;
33 function sys_HandleEvents (): Boolean;
34 procedure sys_RequestQuit
;
44 (* --------- Utils --------- *)
46 function sys_GetTicks (): Int64;
48 Result
:= Round(TimeStampToMSecs(DateTimeToTimeStamp(Now())))
51 procedure sys_Delay (ms
: Integer);
56 (* --------- Graphics --------- *)
58 procedure sys_Repaint
;
62 procedure sys_EnableVSync (yes
: Boolean);
66 function sys_GetDisplayModes (bpp
: Integer): SSArray
;
71 function sys_SetDisplayMode (w
, h
, bpp
: Integer; fullscreen
, maximized
: Boolean): Boolean;
76 (* --------- Input --------- *)
78 function sys_HandleEvents (): Boolean;
83 procedure sys_RequestQuit
;
87 (* --------- Init --------- *)