Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
main.cpp File Reference
#include "lib/precompiled.h"
#include "lib/debug.h"
#include "lib/status.h"
#include "lib/secure_crt.h"
#include "lib/frequency_filter.h"
#include "lib/input.h"
#include "lib/timer.h"
#include "lib/external_libraries/libsdl.h"
#include "ps/ArchiveBuilder.h"
#include "ps/CConsole.h"
#include "ps/CLogger.h"
#include "ps/ConfigDB.h"
#include "ps/Filesystem.h"
#include "ps/Game.h"
#include "ps/Globals.h"
#include "ps/Hotkey.h"
#include "ps/Loader.h"
#include "ps/Mod.h"
#include "ps/ModInstaller.h"
#include "ps/Profile.h"
#include "ps/Profiler2.h"
#include "ps/Pyrogenesis.h"
#include "ps/Replay.h"
#include "ps/TouchInput.h"
#include "ps/UserReport.h"
#include "ps/Util.h"
#include "ps/VideoMode.h"
#include "ps/TaskManager.h"
#include "ps/World.h"
#include "ps/GameSetup/GameSetup.h"
#include "ps/GameSetup/Atlas.h"
#include "ps/GameSetup/Config.h"
#include "ps/GameSetup/CmdLineArgs.h"
#include "ps/GameSetup/Paths.h"
#include "ps/XML/Xeromyces.h"
#include "network/NetClient.h"
#include "network/NetServer.h"
#include "network/NetSession.h"
#include "lobby/IXmppClient.h"
#include "graphics/Camera.h"
#include "graphics/GameView.h"
#include "graphics/TextureManager.h"
#include "gui/GUIManager.h"
#include "renderer/backend/IDevice.h"
#include "renderer/Renderer.h"
#include "rlinterface/RLInterface.h"
#include "scriptinterface/ScriptContext.h"
#include "scriptinterface/ScriptEngine.h"
#include "scriptinterface/ScriptInterface.h"
#include "scriptinterface/JSON.h"
#include "simulation2/Simulation2.h"
#include "simulation2/system/TurnManager.h"
#include "soundmanager/ISoundManager.h"
#include <chrono>

Macros

#define MINIMAL_PCH   2
 

Enumerations

enum  ShutdownType { None , Quit , Restart , RestartAsAtlas }
 

Functions

bool IsQuitRequested ()
 
void QuitEngine ()
 
void RestartEngine ()
 
void StartAtlas ()
 
static InReaction MainInputHandler (const SDL_Event_ *ev)
 
static void PumpEvents ()
 
static void LimitFPS ()
 Optionally throttle the render frequency in order to prevent 100% workload of the currently used CPU core. More...
 
static int ProgressiveLoad ()
 
static void RendererIncrementalLoad ()
 
static void Frame (RL::Interface *rlInterface)
 
static void NonVisualFrame ()
 
static void MainControllerInit ()
 
static void MainControllerShutdown ()
 
static std::optional< RL::InterfaceCreateRLInterface (const CmdLineArgs &args)
 
static void RunGameOrAtlas (const PS::span< const char *const > argv)
 
int main (int argc, char *argv[])
 

Variables

CStrW g_UniqueLogPostfix
 
static ShutdownType g_Shutdown = ShutdownType::None
 
static int g_ResizedW
 
static int g_ResizedH
 
static std::chrono::high_resolution_clock::time_point lastFrameTime
 

Macro Definition Documentation

◆ MINIMAL_PCH

#define MINIMAL_PCH   2

Enumeration Type Documentation

◆ ShutdownType

Enumerator
None 
Quit 
Restart 
RestartAsAtlas 

Function Documentation

◆ CreateRLInterface()

static std::optional< RL::Interface > CreateRLInterface ( const CmdLineArgs args)
static

◆ Frame()

static void Frame ( RL::Interface rlInterface)
static

◆ IsQuitRequested()

bool IsQuitRequested ( )

◆ LimitFPS()

static void LimitFPS ( )
inlinestatic

Optionally throttle the render frequency in order to prevent 100% workload of the currently used CPU core.

◆ main()

int main ( int  argc,
char *  argv[] 
)

◆ MainControllerInit()

static void MainControllerInit ( )
static

◆ MainControllerShutdown()

static void MainControllerShutdown ( )
static

◆ MainInputHandler()

static InReaction MainInputHandler ( const SDL_Event_ ev)
static

◆ NonVisualFrame()

static void NonVisualFrame ( )
static

◆ ProgressiveLoad()

static int ProgressiveLoad ( )
static

◆ PumpEvents()

static void PumpEvents ( )
static

◆ QuitEngine()

void QuitEngine ( )

◆ RendererIncrementalLoad()

static void RendererIncrementalLoad ( )
static

◆ RestartEngine()

void RestartEngine ( )

◆ RunGameOrAtlas()

static void RunGameOrAtlas ( const PS::span< const char *const >  argv)
static

◆ StartAtlas()

void StartAtlas ( )

Variable Documentation

◆ g_ResizedH

int g_ResizedH
static

◆ g_ResizedW

int g_ResizedW
static

◆ g_Shutdown

ShutdownType g_Shutdown = ShutdownType::None
static

◆ g_UniqueLogPostfix

CStrW g_UniqueLogPostfix
extern

◆ lastFrameTime

std::chrono::high_resolution_clock::time_point lastFrameTime
static