![]() |
Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
|
#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::Interface > | CreateRLInterface (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 |
| #define MINIMAL_PCH 2 |
| enum ShutdownType |
|
static |
|
static |
| bool IsQuitRequested | ( | ) |
|
inlinestatic |
Optionally throttle the render frequency in order to prevent 100% workload of the currently used CPU core.
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| void QuitEngine | ( | ) |
|
static |
| void RestartEngine | ( | ) |
|
static |
| void StartAtlas | ( | ) |
|
static |
|
static |
|
static |
|
extern |
|
static |