#include <Application.hpp>
|
| | Application (const ApplicationSpecification &spec, RuntimeStateManager *state_manager=nullptr) |
| |
| virtual | ~Application () |
| |
| | Application (const Application &)=delete |
| |
| Application & | operator= (const Application &)=delete |
| |
| | Application (Application &&)=delete |
| |
| Application & | operator= (Application &&)=delete |
| |
| void | run (const std::atomic< bool > *external_stop) |
| |
| void | frame () |
| |
| void | close () |
| |
| void | on_app_event (Event &e) |
| |
template<typename T , typename... Args>
requires std::is_base_of_v<Layer, T> |
| T & | push_global_layer (Args &&... args) |
| |
| WindowId | create_window (const WindowProps &props) |
| |
| Window & | get_window (const WindowId id) const |
| |
| VulkanWindow & | get_render_window (const WindowId id) const |
| |
template<typename T , typename... Args>
requires std::is_base_of_v<Layer, T> |
| T & | push_view_layer (WindowId id, Args &&... args) |
| |
template<typename T , typename... Args>
requires std::is_base_of_v<View, T> |
| T & | create_view (std::string name, Args &&... args) |
| |
| ViewResult | get_view (const ViewId id) const |
| |
| ViewResult | get_view (const std::string &name) const |
| |
| std::expected< ViewId, ViewError > | get_view_id (const std::string &name) const |
| |
| ViewError | remove_view (ViewId id) |
| |
| ViewError | remove_view (const std::string &name) |
| |
template<typename T , typename... Args>
requires std::is_base_of_v<Layer, T> |
| std::expected< std::reference_wrapper< T >, ViewError > | push_layer_to_view (ViewId id, Args &&... args) |
| |
template<typename T , typename... Args>
requires std::is_base_of_v<Layer, T> |
| std::expected< std::reference_wrapper< T >, ViewError > | push_layer_to_view (const std::string &name, Args &&... args) |
| |
| Scene * | create_scene (const std::string &name) |
| |
| Scene * | get_scene (const std::string &name) const |
| |
| void | clear_game_layers () |
| |
| void | reload_game () |
| |
| void | reload_shaders () const |
| |
| EngineServices | services () const |
| |
| ApplicationRuntime | runtime () |
| |
◆ ViewResult
◆ Application() [1/3]
◆ ~Application()
| sd::Application::~Application |
( |
| ) |
|
|
virtual |
◆ Application() [2/3]
◆ Application() [3/3]
◆ clear_game_layers()
| void sd::Application::clear_game_layers |
( |
| ) |
|
◆ close()
| void sd::Application::close |
( |
| ) |
|
|
inline |
◆ create_scene()
| Scene * sd::Application::create_scene |
( |
const std::string & |
name | ) |
|
|
inline |
◆ create_view()
template<
typename T , typename... Args>
requires std::is_base_of_v<
View, T>
| T & sd::Application::create_view |
( |
std::string |
name, |
|
|
Args &&... |
args |
|
) |
| |
|
inline |
◆ create_window()
◆ frame()
| void sd::Application::frame |
( |
| ) |
|
◆ get_render_window()
◆ get_scene()
| Scene * sd::Application::get_scene |
( |
const std::string & |
name | ) |
const |
|
inline |
◆ get_view() [1/2]
◆ get_view() [2/2]
◆ get_view_id()
◆ get_window()
◆ on_app_event()
| void sd::Application::on_app_event |
( |
Event & |
e | ) |
|
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ push_global_layer()
template<
typename T , typename... Args>
requires std::is_base_of_v<
Layer, T>
| T & sd::Application::push_global_layer |
( |
Args &&... |
args | ) |
|
|
inline |
◆ push_layer_to_view() [1/2]
| std::expected< std::reference_wrapper< T >, ViewError > sd::Application::push_layer_to_view |
( |
const std::string & |
name, |
|
|
Args &&... |
args |
|
) |
| |
◆ push_layer_to_view() [2/2]
| std::expected< std::reference_wrapper< T >, ViewError > sd::Application::push_layer_to_view |
( |
ViewId |
id, |
|
|
Args &&... |
args |
|
) |
| |
◆ push_view_layer()
| T & sd::Application::push_view_layer |
( |
WindowId |
id, |
|
|
Args &&... |
args |
|
) |
| |
◆ reload_game()
| void sd::Application::reload_game |
( |
| ) |
|
◆ reload_shaders()
| void sd::Application::reload_shaders |
( |
| ) |
const |
◆ remove_view() [1/2]
◆ remove_view() [2/2]
◆ run()
| void sd::Application::run |
( |
const std::atomic< bool > * |
external_stop | ) |
|
◆ runtime()
◆ services()
◆ app_event_manager
◆ app_spec
◆ game_context
◆ global_layers
◆ hot_reload_enabled
| bool sd::Application::hot_reload_enabled = true |
◆ hot_reload_timer
| float sd::Application::hot_reload_timer = 0.0f |
◆ is_running
◆ layout_manager
◆ m_game_handle
◆ m_glfw_ctx
| std::unique_ptr<GlfwContext> sd::Application::m_glfw_ctx |
|
private |
◆ m_imgui_ctx
◆ m_renderer
◆ m_vulkan_ctx
◆ scene_manager
◆ state_manager
◆ timer
◆ view_manager
| std::unique_ptr<ViewManager> sd::Application::view_manager |
◆ window_manager
The documentation for this class was generated from the following files: