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}
18 interface
24 implementation
26 uses
27 {$INCLUDE ../../nogl/noGLuses.inc}
31 ;
33 var
37 begin
39 begin
40 {$IFDEF NOGL_INIT}
41 nogl_Init;
43 begin
47 {$ELSE}
49 begin
53 {$ENDIF}
55 end
59 begin
61 begin
62 {$IFDEF NOGL_INIT}
63 nogl_Quit;
64 {$ENDIF}
66 end
70 begin
73 LoadGL;
74 r_Window_Initialize;
75 r_Console_Init;
76 r_PlayerModel_Initialize;
80 begin
81 FreeGL;
82 r_PlayerModel_Finalize;
83 e_ReleaseEngine
87 begin
88 LoadGL;
94 begin
95 // store real window size in gWinSize, downscale resolution now
99 begin
109 e_InitGL