3#include <spdlog/spdlog.h>
20 static auto Create(std::string
const &application_name)
23 auto context() -> std::shared_ptr<Context>
const & {
return ctx; }
31 std::shared_ptr<Renderer>
const &
renderer);
33 std::shared_ptr<Context>
ctx;
Definition application.hpp:16
errors
Definition application.hpp:18
auto context() -> std::shared_ptr< Context > const &
Definition application.hpp:23
Application(std::shared_ptr< Context > const &ctx, std::shared_ptr< Renderer > const &renderer)
Definition application.cpp:63
std::shared_ptr< Renderer > renderer
Definition application.hpp:34
std::vector< phase_cb_t > startup_phase
Definition application.hpp:36
std::shared_ptr< Context > ctx
Definition application.hpp:33
std::vector< phase_cb_t > shutdown_phase
Definition application.hpp:38
std::vector< phase_cb_t > update_phase
Definition application.hpp:37
void add_callback_to_phase(CallbackPhase phase, phase_cb_t const &cb)
Definition application.cpp:48
static auto Create(std::string const &application_name) -> expected< std::shared_ptr< Application > >
Definition application.cpp:17
bool running
Definition application.hpp:40
void run()
Definition application.cpp:67
Definition editor_scene.hpp:5
std::function< void()> phase_cb_t
Definition application.hpp:14
std::expected< T, Err > expected
Definition result.hpp:49
CallbackPhase
Definition application.hpp:12