Polyphase Game Engine
Loading...
Searching...
No Matches
Engine.h File Reference
#include <stdint.h>
#include <string>
#include "PolyphaseAPI.h"
#include "EngineTypes.h"
#include "Property.h"

Go to the source code of this file.

Classes

struct  OctGameHooks
 

Functions

void OctPreInitialize (EngineConfig &config)
 
void OctPostInitialize ()
 
void OctPreUpdate ()
 
void OctPostUpdate ()
 
void OctPreShutdown ()
 
void OctPostShutdown ()
 
POLYPHASE_API void RegisterOctHooks (const OctGameHooks &hooks)
 
POLYPHASE_API const OctGameHooksGetOctHooks ()
 
bool Initialize ()
 
bool Update ()
 
void Shutdown ()
 
void Quit ()
 
POLYPHASE_API class WorldGetWorld (int32_t index)
 
POLYPHASE_API int32_t GetNumWorlds ()
 
POLYPHASE_API class SignalBusGetSignalBus ()
 
POLYPHASE_API struct EngineStateGetEngineState ()
 
POLYPHASE_API const struct EngineConfigGetEngineConfig ()
 
POLYPHASE_API struct EngineConfigGetMutableEngineConfig ()
 
POLYPHASE_API const class ClockGetAppClock ()
 
const std::vector< std::string > & GetDefaultSceneNames ()
 
void SetDefaultSceneNames (const std::vector< std::string > &names)
 
bool IsShuttingDown ()
 
void LoadProject (const std::string &path, bool discoverAssets=true)
 
void EnableConsole (bool enable)
 
void ResizeWindow (uint32_t width, uint32_t height)
 
bool IsPlayingInEditor ()
 
bool IsPlaying ()
 
POLYPHASE_API bool IsHeadless ()
 
bool IsGameTickEnabled ()
 
void ReloadAllScripts (bool restartComponents=true)
 
void SetPaused (bool paused)
 
bool IsPaused ()
 
void FrameStep ()
 
void SetTimeDilation (float timeDilation)
 
float GetTimeDilation ()
 
void GarbageCollect ()
 
void GatherGlobalProperties (std::vector< Property > &props)
 
void SetScreenOrientation (ScreenOrientation mode)
 
ScreenOrientation GetScreenOrientation ()
 
void WriteEngineConfig (std::string path="")
 
void ReadEngineConfig (std::string path="")
 
void ResetEngineConfig ()
 
void WriteProjectFile (const std::string &path, const std::string &newName)
 
void ReadCommandLineArgs (int32_t argc, char **argv)
 
POLYPHASE_API lua_State * GetLua ()
 

Function Documentation

◆ EnableConsole()

void EnableConsole ( bool  enable)

◆ FrameStep()

void FrameStep ( )

◆ GarbageCollect()

void GarbageCollect ( )

◆ GatherGlobalProperties()

void GatherGlobalProperties ( std::vector< Property > &  props)

◆ GetAppClock()

POLYPHASE_API const class Clock * GetAppClock ( )

◆ GetDefaultSceneNames()

const std::vector< std::string > & GetDefaultSceneNames ( )
extern

◆ GetEngineConfig()

POLYPHASE_API const struct EngineConfig * GetEngineConfig ( )

◆ GetEngineState()

POLYPHASE_API struct EngineState * GetEngineState ( )

◆ GetLua()

POLYPHASE_API lua_State * GetLua ( )

◆ GetMutableEngineConfig()

POLYPHASE_API struct EngineConfig * GetMutableEngineConfig ( )

◆ GetNumWorlds()

POLYPHASE_API int32_t GetNumWorlds ( )

◆ GetOctHooks()

POLYPHASE_API const OctGameHooks & GetOctHooks ( )

◆ GetScreenOrientation()

ScreenOrientation GetScreenOrientation ( )

◆ GetSignalBus()

POLYPHASE_API class SignalBus * GetSignalBus ( )

◆ GetTimeDilation()

float GetTimeDilation ( )

◆ GetWorld()

POLYPHASE_API class World * GetWorld ( int32_t  index)

◆ Initialize()

bool Initialize ( )

◆ IsGameTickEnabled()

bool IsGameTickEnabled ( )

◆ IsHeadless()

POLYPHASE_API bool IsHeadless ( )

◆ IsPaused()

bool IsPaused ( )

◆ IsPlaying()

bool IsPlaying ( )

◆ IsPlayingInEditor()

bool IsPlayingInEditor ( )

◆ IsShuttingDown()

bool IsShuttingDown ( )

◆ LoadProject()

void LoadProject ( const std::string &  path,
bool  discoverAssets = true 
)

◆ OctPostInitialize()

void OctPostInitialize ( )
extern

◆ OctPostShutdown()

void OctPostShutdown ( )
extern

◆ OctPostUpdate()

void OctPostUpdate ( )
extern

◆ OctPreInitialize()

void OctPreInitialize ( EngineConfig config)
extern

◆ OctPreShutdown()

void OctPreShutdown ( )
extern

◆ OctPreUpdate()

void OctPreUpdate ( )
extern

◆ Quit()

void Quit ( )

◆ ReadCommandLineArgs()

void ReadCommandLineArgs ( int32_t  argc,
char **  argv 
)

◆ ReadEngineConfig()

void ReadEngineConfig ( std::string  path = "")

◆ RegisterOctHooks()

POLYPHASE_API void RegisterOctHooks ( const OctGameHooks hooks)

◆ ReloadAllScripts()

void ReloadAllScripts ( bool  restartComponents = true)

◆ ResetEngineConfig()

void ResetEngineConfig ( )

◆ ResizeWindow()

void ResizeWindow ( uint32_t  width,
uint32_t  height 
)

◆ SetDefaultSceneNames()

void SetDefaultSceneNames ( const std::vector< std::string > &  names)

◆ SetPaused()

void SetPaused ( bool  paused)

◆ SetScreenOrientation()

void SetScreenOrientation ( ScreenOrientation  mode)

◆ SetTimeDilation()

void SetTimeDilation ( float  timeDilation)

◆ Shutdown()

void Shutdown ( )

◆ Update()

bool Update ( )

◆ WriteEngineConfig()

void WriteEngineConfig ( std::string  path = "")

◆ WriteProjectFile()

void WriteProjectFile ( const std::string &  path,
const std::string &  newName 
)