Berserk
|
Root manager class. More...
#include <Engine.hpp>
Public Member Functions | |
BRK_API | Engine ()=default |
BRK_API | ~Engine () |
BRK_API void | RequestClose () |
Request close of the application Call this function to request close and application shut-down. More... | |
BRK_API bool | CloseRequested () |
Check if close of the application is requested. More... | |
BRK_API const Config & | GetConfig () |
BRK_API Output & | GetOutput () |
BRK_API FileSystem & | GetFileSystem () |
BRK_API Scheduler & | GetScheduler () |
BRK_API EventDispatcher & | GetEventDispatcher () |
BRK_API WindowManager & | GetWindowManager () |
BRK_API Input & | GetInput () |
BRK_API RHIDevice & | GetRHIDevice () |
BRK_API Thread & | GetRHIThread () |
BRK_API RenderEngine & | GetRenderEngine () |
BRK_API ResourceManager & | GetResourceManager () |
BRK_API std::thread::id | GetGameThreadId () const |
BRK_API float | GetDeltaTime () const |
BRK_API float | GetTime () const |
Static Public Member Functions | |
static BRK_API Engine & | Instance () |
Return engine global instance. More... | |
Friends | |
class | Application |
Root manager class.
Engine is singleton class which is responsible for core engine infrastructure setup, provides access to core managers, maintenance main loop update and controls execution.
Standard way to access Engine is Engine::Instance()
.
Engine responsible for:
|
default |
BRK_NS_BEGIN Engine::~Engine | ( | ) |
bool Engine::CloseRequested | ( | ) |
Check if close of the application is requested.
float Engine::GetDeltaTime | ( | ) | const |
EventDispatcher & Engine::GetEventDispatcher | ( | ) |
FileSystem & Engine::GetFileSystem | ( | ) |
std::thread::id Engine::GetGameThreadId | ( | ) | const |
RenderEngine & Engine::GetRenderEngine | ( | ) |
ResourceManager & Engine::GetResourceManager | ( | ) |
RHIDevice & Engine::GetRHIDevice | ( | ) |
Thread & Engine::GetRHIThread | ( | ) |
float Engine::GetTime | ( | ) | const |
WindowManager & Engine::GetWindowManager | ( | ) |
|
static |
Return engine global instance.
void Engine::RequestClose | ( | ) |
Request close of the application Call this function to request close and application shut-down.
|
friend |