forked from 0ad/0ad
Ykkrosh
8e02ec84f9
Changed player-id code a bit so the entity and actor and unit should stay in sync more often. (The entity/actor/unit mixing still looks a bit dodgy and unreliable, though.) Simplified console help code. Allowed init/shutdown to be done with the simulation/world/etc parts disabled (so the actor viewer can load faster). This was SVN commit r4289.
39 lines
860 B
C
39 lines
860 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,
|
|
};
|
|
|
|
extern void Init(int argc, char* argv[], uint flags);
|
|
extern void Shutdown(uint flags);
|