Pyrogenesis
13997
|
#include "precompiled.h"
#include "lib/app_hooks.h"
#include "lib/config2.h"
#include "lib/input.h"
#include "lib/ogl.h"
#include "lib/timer.h"
#include "lib/external_libraries/libsdl.h"
#include "lib/file/common/file_stats.h"
#include "lib/res/h_mgr.h"
#include "lib/res/graphics/cursor.h"
#include "lib/sysdep/cursor.h"
#include "lib/sysdep/cpu.h"
#include "lib/sysdep/gfx.h"
#include "lib/sysdep/os_cpu.h"
#include "lib/tex/tex.h"
#include "graphics/CinemaTrack.h"
#include "graphics/GameView.h"
#include "graphics/LightEnv.h"
#include "graphics/MapReader.h"
#include "graphics/MaterialManager.h"
#include "graphics/TerrainTextureManager.h"
#include "gui/GUI.h"
#include "gui/GUIManager.h"
#include "gui/scripting/JSInterface_IGUIObject.h"
#include "gui/scripting/JSInterface_GUITypes.h"
#include "gui/scripting/ScriptFunctions.h"
#include "maths/MathUtil.h"
#include "maths/scripting/JSInterface_Vector3D.h"
#include "network/NetServer.h"
#include "network/NetClient.h"
#include "ps/CConsole.h"
#include "ps/CLogger.h"
#include "ps/ConfigDB.h"
#include "ps/Filesystem.h"
#include "ps/Font.h"
#include "ps/Game.h"
#include "ps/GameSetup/Atlas.h"
#include "ps/GameSetup/GameSetup.h"
#include "ps/GameSetup/Paths.h"
#include "ps/GameSetup/Config.h"
#include "ps/GameSetup/CmdLineArgs.h"
#include "ps/GameSetup/HWDetect.h"
#include "ps/Globals.h"
#include "ps/Hotkey.h"
#include "ps/Joystick.h"
#include "ps/Loader.h"
#include "ps/Overlay.h"
#include "ps/Profile.h"
#include "ps/ProfileViewer.h"
#include "ps/Profiler2.h"
#include "ps/Pyrogenesis.h"
#include "ps/scripting/JSInterface_Console.h"
#include "ps/TouchInput.h"
#include "ps/UserReport.h"
#include "ps/Util.h"
#include "ps/VideoMode.h"
#include "ps/World.h"
#include "renderer/Renderer.h"
#include "renderer/VertexBufferManager.h"
#include "renderer/ModelRenderer.h"
#include "scripting/ScriptingHost.h"
#include "scripting/ScriptGlue.h"
#include "scriptinterface/DebuggingServer.h"
#include "scriptinterface/ScriptInterface.h"
#include "scriptinterface/ScriptStats.h"
#include "simulation2/Simulation2.h"
#include "soundmanager/scripting/JSInterface_Sound.h"
#include "soundmanager/ISoundManager.h"
#include "tools/atlas/GameInterface/GameLoop.h"
#include "tools/atlas/GameInterface/View.h"
#include <X11/Xlib.h>
#include <iostream>
Go to the source code of this file.
Macros | |
#define | MUST_INIT_X11 1 |
Functions | |
ERROR_GROUP (System) | |
ERROR_TYPE (System, SDLInitFailed) | |
ERROR_TYPE (System, VmodeFailed) | |
ERROR_TYPE (System, RequiredExtensionsMissing) | |
static void | SetTextureQuality (int quality) |
void | GUI_DisplayLoadProgress (int percent, const wchar_t *pending_task) |
void | Render () |
static void | RegisterJavascriptInterfaces () |
static void | InitScripting () |
static size_t | OperatingSystemFootprint () |
static size_t | ChooseCacheSize () |
ErrorReactionInternal | psDisplayError (const wchar_t *text, size_t flags) |
static std::vector< CStr > | GetMods (const CmdLineArgs &args, bool dev) |
static void | InitVfs (const CmdLineArgs &args, int flags) |
static void | InitPs (bool setup_gui, const CStrW &gui_page, CScriptVal initData) |
static void | InitInput () |
static void | ShutdownPs () |
static void | InitRenderer () |
static void | InitSDL () |
static void | ShutdownSDL () |
void | EndGame () |
void | Shutdown (int flags) |
static void | FixLocales () |
void | EarlyInit () |
initialize global modules that are be needed before Init. More... | |
bool | Autostart (const CmdLineArgs &args) |
void | Init (const CmdLineArgs &args, int flags) |
void | InitGraphics (const CmdLineArgs &args, int flags) |
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... | |
void | CancelLoad (const CStrW &message) |
Variables | |
bool | g_DoRenderGui = true |
bool | g_DoRenderLogger = true |
bool | g_DoRenderCursor = true |
static const int | SANE_TEX_QUALITY_DEFAULT = 5 |
#define MUST_INIT_X11 1 |
Definition at line 97 of file GameSetup.cpp.
bool Autostart | ( | const CmdLineArgs & | args | ) |
Definition at line 1071 of file GameSetup.cpp.
void CancelLoad | ( | const CStrW & | message | ) |
Definition at line 1326 of file GameSetup.cpp.
|
static |
Definition at line 365 of file GameSetup.cpp.
void EarlyInit | ( | ) |
initialize global modules that are be needed before Init.
must be called from the very beginning of main.
Definition at line 827 of file GameSetup.cpp.
void EndGame | ( | ) |
Definition at line 673 of file GameSetup.cpp.
ERROR_GROUP | ( | System | ) |
ERROR_TYPE | ( | System | , |
SDLInitFailed | |||
) |
ERROR_TYPE | ( | System | , |
VmodeFailed | |||
) |
ERROR_TYPE | ( | System | , |
RequiredExtensionsMissing | |||
) |
|
static |
Definition at line 821 of file GameSetup.cpp.
|
static |
Definition at line 414 of file GameSetup.cpp.
void GUI_DisplayLoadProgress | ( | int | percent, |
const wchar_t * | pending_task | ||
) |
Definition at line 183 of file GameSetup.cpp.
void Init | ( | const CmdLineArgs & | args, |
int | flags | ||
) |
Definition at line 863 of file GameSetup.cpp.
void InitGraphics | ( | const CmdLineArgs & | args, |
int | flags | ||
) |
Definition at line 935 of file GameSetup.cpp.
|
static |
Definition at line 541 of file GameSetup.cpp.
|
static |
Definition at line 501 of file GameSetup.cpp.
|
static |
Definition at line 587 of file GameSetup.cpp.
|
static |
Definition at line 332 of file GameSetup.cpp.
|
static |
Definition at line 640 of file GameSetup.cpp.
|
static |
Definition at line 428 of file GameSetup.cpp.
|
static |
Definition at line 344 of file GameSetup.cpp.
ErrorReactionInternal psDisplayError | ( | const wchar_t * | text, |
size_t | flags | ||
) |
Definition at line 393 of file GameSetup.cpp.
|
static |
Definition at line 319 of file GameSetup.cpp.
void Render | ( | ) |
Definition at line 192 of file GameSetup.cpp.
void RenderCursor | ( | bool | RenderingState | ) |
enable/disable rendering of the cursor - this does not hide cursor, but reverts to OS style
Definition at line 1066 of file GameSetup.cpp.
void RenderGui | ( | bool | RenderingState | ) |
enable/disable rendering of the GUI (intended mainly for screenshots)
Definition at line 1056 of file GameSetup.cpp.
void RenderLogger | ( | bool | RenderingState | ) |
Definition at line 1061 of file GameSetup.cpp.
|
static |
Definition at line 120 of file GameSetup.cpp.
void Shutdown | ( | int | flags | ) |
Definition at line 683 of file GameSetup.cpp.
|
static |
Definition at line 576 of file GameSetup.cpp.
|
static |
Definition at line 666 of file GameSetup.cpp.
bool g_DoRenderCursor = true |
Definition at line 116 of file GameSetup.cpp.
bool g_DoRenderGui = true |
Definition at line 114 of file GameSetup.cpp.
bool g_DoRenderLogger = true |
Definition at line 115 of file GameSetup.cpp.
|
static |
Definition at line 118 of file GameSetup.cpp.