Ykkrosh
cbafd43eea
* Added CmdLineArgs, which does the parsing then lets various pieces of code check for whatever arguments they want. * Made Atlas exit out of main() cleanly, instead of calling exit() itself. * Disabled the global exception-catching in unit tests, via a entry_noSEH, so it doesn't make debugging harder. * Added nice printing of CStr in unit test failure messages, and added comparison of vector vs constant array. This was SVN commit r4688.
40 lines
880 B
C++
40 lines
880 B
C++
|
|
//
|
|
// GUI integration
|
|
//
|
|
|
|
extern void GUI_Init();
|
|
|
|
extern void GUI_Shutdown();
|
|
|
|
extern void GUI_ShowMainMenu();
|
|
|
|
// display progress / description in loading screen
|
|
extern void GUI_DisplayLoadProgress(int percent, const wchar_t* pending_task);
|
|
|
|
|
|
|
|
extern void Render();
|
|
extern void RenderActor();
|
|
|
|
|
|
enum InitFlags
|
|
{
|
|
// avoid setting a video mode / initializing OpenGL; assume that has
|
|
// already been done and everything is ready for rendering.
|
|
// needed by map editor because it creates its own window.
|
|
INIT_HAVE_VMODE = 1,
|
|
|
|
// skip initializing the in-game GUI.
|
|
// needed by map editor because it uses its own GUI.
|
|
INIT_NO_GUI = 2,
|
|
|
|
// skip initializing the simulation.
|
|
// used by actor viewer because it doesn't need the simulation code.
|
|
INIT_NO_SIM = 4,
|
|
};
|
|
|
|
class CmdLineArgs;
|
|
extern void Init(const CmdLineArgs& args, uint flags);
|
|
extern void Shutdown(uint flags);
|