![]() |
Divide Framework 0.1
A free and open-source 3D Framework under heavy development
|
Class that provides an interface between our framework and the OS (start/stop, display support, main loop, start/stop/restart, etc) More...
#include <Application.h>
Public Member Functions | |
Application () noexcept | |
~Application () override | |
ErrorCode | start (const string &entryPoint, I32 argc, char **argv) |
void | stop (const AppStepResult stepResult) |
AppStepResult | step () |
void | RequestShutdown (bool clearCache) noexcept |
void | CancelShutdown () noexcept |
void | RequestRestart (bool clearCache) noexcept |
void | CancelRestart () noexcept |
bool | ShutdownRequested () const noexcept |
bool | RestartRequested () const noexcept |
WindowManager & | windowManager () noexcept |
const WindowManager & | windowManager () const noexcept |
bool | onWindowSizeChange (const SizeChangeParams ¶ms) const |
bool | onResolutionChange (const SizeChangeParams ¶ms) const |
ErrorCode | errorCode () const noexcept |
PROPERTY_RW (U8, maxMSAASampleCount, 0u) | |
PROPERTY_R (Time::ApplicationTimer, timer) | |
bool | mainLoopPaused () const |
bool | mainLoopActive () const |
bool | freezeRendering () const |
Time::ApplicationTimer & | timer () noexcept |
void | mainLoopPaused (const bool state) noexcept |
void | mainLoopActive (const bool state) noexcept |
void | freezeRendering (const bool state) noexcept |
![]() | |
SDLEventListener () noexcept | |
virtual | ~SDLEventListener () |
virtual bool | onSDLEvent (SDL_Event event)=0 |
U64 | listenerID () const noexcept |
Protected Member Functions | |
bool | onProfilerStateChanged (Profiler::State state) |
Private Member Functions | |
ErrorCode | setRenderingAPI (const RenderAPI api) |
bool | onSDLEvent (SDL_Event event) noexcept override |
Private Attributes | |
WindowManager | _windowManager |
std::unique_ptr< Kernel > | _kernel |
std::atomic_bool | _requestShutdown { false } |
std::atomic_bool | _requestRestart { false } |
std::atomic_bool | _stepLoop { false } |
std::atomic_bool | _mainLoopPaused {false} |
std::atomic_bool | _mainLoopActive {false} |
std::atomic_bool | _freezeRendering {false} |
ErrorCode | _errorCode { ErrorCode::NO_ERR } |
bool | _clearCacheOnExit { false } |
Friends | |
class | Attorney::ApplicationKernel |
class | Attorney::ApplicationProfiler |
Class that provides an interface between our framework and the OS (start/stop, display support, main loop, start/stop/restart, etc)
Definition at line 96 of file Application.h.
|
noexcept |
Definition at line 18 of file Application.cpp.
|
override |
Definition at line 25 of file Application.cpp.
|
inlinenoexcept |
Definition at line 67 of file Application.inl.
|
inlinenoexcept |
Definition at line 51 of file Application.inl.
|
inlinenoexcept |
Definition at line 87 of file Application.inl.
|
inline |
Definition at line 131 of file Application.h.
|
inlinenoexcept |
Definition at line 107 of file Application.inl.
|
inline |
Definition at line 130 of file Application.h.
|
inlinenoexcept |
Definition at line 102 of file Application.inl.
|
inline |
Definition at line 129 of file Application.h.
|
inlinenoexcept |
Definition at line 97 of file Application.inl.
|
protected |
Definition at line 74 of file Application.cpp.
bool Divide::Application::onResolutionChange | ( | const SizeChangeParams & | params | ) | const |
Definition at line 232 of file Application.cpp.
|
overrideprivatevirtualnoexcept |
Implements Divide::SDLEventListener.
Definition at line 176 of file Application.cpp.
bool Divide::Application::onWindowSizeChange | ( | const SizeChangeParams & | params | ) | const |
Definition at line 226 of file Application.cpp.
Divide::Application::PROPERTY_R | ( | Time::ApplicationTimer | , |
timer | |||
) |
Divide::Application::PROPERTY_RW | ( | U8 | , |
maxMSAASampleCount | , | ||
0u | |||
) |
|
inlinenoexcept |
Definition at line 61 of file Application.inl.
|
inlinenoexcept |
Definition at line 45 of file Application.inl.
|
inlinenoexcept |
Definition at line 72 of file Application.inl.
Definition at line 105 of file Application.cpp.
|
inlinenoexcept |
Definition at line 56 of file Application.inl.
Definition at line 30 of file Application.cpp.
AppStepResult Divide::Application::step | ( | ) |
Definition at line 142 of file Application.cpp.
void Divide::Application::stop | ( | const AppStepResult | stepResult | ) |
Definition at line 118 of file Application.cpp.
|
inlinenoexcept |
Definition at line 92 of file Application.inl.
|
inlinenoexcept |
Definition at line 82 of file Application.inl.
|
inlinenoexcept |
Definition at line 77 of file Application.inl.
|
friend |
Definition at line 98 of file Application.h.
|
friend |
Definition at line 99 of file Application.h.
|
private |
Definition at line 157 of file Application.h.
|
private |
Definition at line 156 of file Application.h.
|
private |
Definition at line 155 of file Application.h.
|
private |
Definition at line 148 of file Application.h.
|
private |
Definition at line 154 of file Application.h.
|
private |
Definition at line 153 of file Application.h.
|
private |
Definition at line 151 of file Application.h.
|
private |
Definition at line 150 of file Application.h.
|
private |
Definition at line 152 of file Application.h.
|
private |
Definition at line 146 of file Application.h.