Pyrogenesis  trunk
Enumerations | Functions
GameSetup.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  InitFlags {
  INIT_HAVE_VMODE = 1, INIT_NO_GUI = 2, INIT_HAVE_DISPLAY_ERROR = 4, INIT_MODS = 8,
  INIT_MODS_PUBLIC = 16
}
 
enum  ShutdownFlags { SHUTDOWN_FROM_CONFIG = 1 }
 

Functions

void GUI_DisplayLoadProgress (int percent, const wchar_t *pending_task)
 
void Render ()
 
void EarlyInit ()
 initialize global modules that are be needed before Init. More...
 
void RenderGui (bool RenderingState)
 enable/disable rendering of the GUI (intended mainly for screenshots) More...
 
void RenderLogger (bool RenderingState)
 
void RenderCursor (bool RenderingState)
 enable/disable rendering of the cursor - this does not hide cursor, but reverts to OS style More...
 
std::vector< CStr > & GetMods (const CmdLineArgs &args, int flags)
 
void MountMods (const Paths &paths, const std::vector< CStr > &mods)
 
bool Init (const CmdLineArgs &args, int flags)
 Returns true if successful, false if mods changed and restart_engine was called. More...
 
void InitGraphics (const CmdLineArgs &args, int flags)
 
void Shutdown (int flags)
 
void CancelLoad (const CStrW &message)
 
bool InDevelopmentCopy ()
 

Enumeration Type Documentation

enum InitFlags
Enumerator
INIT_HAVE_VMODE 
INIT_NO_GUI 
INIT_HAVE_DISPLAY_ERROR 
INIT_MODS 
INIT_MODS_PUBLIC 
Enumerator
SHUTDOWN_FROM_CONFIG 

Function Documentation

void CancelLoad ( const CStrW &  message)
void EarlyInit ( )

initialize global modules that are be needed before Init.

must be called from the very beginning of main.

std::vector<CStr>& GetMods ( const CmdLineArgs args,
int  flags 
)
void GUI_DisplayLoadProgress ( int  percent,
const wchar_t pending_task 
)
bool InDevelopmentCopy ( )
bool Init ( const CmdLineArgs args,
int  flags 
)

Returns true if successful, false if mods changed and restart_engine was called.

In the latter case the caller should call Shutdown() with SHUTDOWN_FROM_CONFIG.

void InitGraphics ( const CmdLineArgs args,
int  flags 
)
void MountMods ( const Paths paths,
const std::vector< CStr > &  mods 
)
void Render ( )
void RenderCursor ( bool  RenderingState)

enable/disable rendering of the cursor - this does not hide cursor, but reverts to OS style

void RenderGui ( bool  RenderingState)

enable/disable rendering of the GUI (intended mainly for screenshots)

void RenderLogger ( bool  RenderingState)
void Shutdown ( int  flags)