Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GameSetup.h
Go to the documentation of this file.
1 /* Copyright (C) 2013 Wildfire Games.
2  * This file is part of 0 A.D.
3  *
4  * 0 A.D. is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * 0 A.D. is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with 0 A.D. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #ifndef INCLUDED_GAMESETUP
19 #define INCLUDED_GAMESETUP
20 
21 //
22 // GUI integration
23 //
24 
25 // display progress / description in loading screen
26 extern void GUI_DisplayLoadProgress(int percent, const wchar_t* pending_task);
27 
28 extern void Render();
29 
30 /**
31  * initialize global modules that are be needed before Init.
32  * must be called from the very beginning of main.
33  **/
34 extern void EarlyInit();
35 
37 {
38  // avoid setting a video mode / initializing OpenGL; assume that has
39  // already been done and everything is ready for rendering.
40  // needed by map editor because it creates its own window.
42 
43  // skip initializing the in-game GUI.
44  // needed by map editor because it uses its own GUI.
46 
47  // avoid setting display_error app hook
48  // needed by map editor because it has its own wx error display
50 };
51 
52 /**
53  * enable/disable rendering of the GUI (intended mainly for screenshots)
54  */
55 extern void RenderGui(bool RenderingState);
56 extern void RenderLogger(bool RenderingState);
57 
58 /**
59  * enable/disable rendering of the cursor - this does not hide cursor, but reverts to OS style
60  */
61 extern void RenderCursor(bool RenderingState);
62 
63 
64 class CmdLineArgs;
65 extern void Init(const CmdLineArgs& args, int flags);
66 extern void InitGraphics(const CmdLineArgs& args, int flags);
67 extern void Shutdown(int flags);
68 extern void CancelLoad(const CStrW& message);
69 
70 #endif // INCLUDED_GAMESETUP
void InitGraphics(const CmdLineArgs &args, int flags)
Definition: GameSetup.cpp:935
void GUI_DisplayLoadProgress(int percent, const wchar_t *pending_task)
Definition: GameSetup.cpp:183
static Status Init()
Definition: h_mgr.cpp:744
static void Shutdown()
Definition: h_mgr.cpp:762
void RenderGui(bool RenderingState)
enable/disable rendering of the GUI (intended mainly for screenshots)
Definition: GameSetup.cpp:1056
InitFlags
Definition: GameSetup.h:36
void Render()
Definition: GameSetup.cpp:192
void RenderCursor(bool RenderingState)
enable/disable rendering of the cursor - this does not hide cursor, but reverts to OS style ...
Definition: GameSetup.cpp:1066
void CancelLoad(const CStrW &message)
Definition: GameSetup.cpp:1326
void RenderLogger(bool RenderingState)
Definition: GameSetup.cpp:1061
void EarlyInit()
initialize global modules that are be needed before Init.
Definition: GameSetup.cpp:827