DEADSOFTWARE

moved Holmes UI and most of it's low-level gfx subsystem to separate modules (to...
[d2df-sdl.git] / src / gx / sdlcarcass.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, either version 3 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 *)
16 {$INCLUDE ../shared/a_modes.inc}
17 unit sdlcarcass;
19 interface
21 uses
22 SDL2;
25 // ////////////////////////////////////////////////////////////////////////// //
26 // event handlers
27 var
28 evSDLCB: function (var ev: TSDL_Event): Boolean = nil;
29 winFocusCB: procedure () = nil;
30 winBlurCB: procedure () = nil;
31 //buildFrameCB: procedure () = nil;
32 //renderFrameCB: procedure () = nil; // no need to call `glSwap()` here
33 prerenderFrameCB: procedure () = nil;
34 postrenderFrameCB: procedure () = nil;
35 oglInitCB: procedure () = nil;
36 oglDeinitCB: procedure () = nil;
39 function getScrWdt (): Integer; inline;
40 function getScrHgt (): Integer; inline;
42 property
43 gScrWidth: Integer read getScrWdt;
44 gScrHeight: Integer read getScrHgt;
47 implementation
49 uses
50 g_options;
53 function getScrWdt (): Integer; inline; begin result := gScreenWidth; end;
54 function getScrHgt (): Integer; inline; begin result := gScreenHeight; end;
57 end.