16#include <filedialog/filedialog.h>
25 if(ctx.
has<init_error>())
27 const auto& error = ctx.
get<init_error>();
28 native::message_box(error.msg,
29 native::dialog_type::ok,
30 native::icon_type::error,
39 entt::meta_factory<editor>{}
42 .func<&editor::init>(
"init"_hs)
44 .func<&editor::destroy>(
"destroy"_hs)
46 .func<&editor::interrupt>(
"interrupt"_hs);
59 fs::path editor_data = binary_path /
"data" /
"editor";
80 print_init_error(ctx);
86 print_init_error(ctx);
92 print_init_error(ctx);
98 print_init_error(ctx);
110 print_init_error(ctx);
114 if(!ctx.get_cached<
hub>().
init(ctx))
116 print_init_error(ctx);
122 print_init_error(ctx);
128 print_init_error(ctx);
134 print_init_error(ctx);
140 print_init_error(ctx);
150 uint32_t flags = os::window::resizable | os::window::maximized;
151 auto primary_display = os::display::get_primary_display_index();
153 auto& rend = ctx.get_cached<
renderer>();
auto deinit(rtti::context &ctx) -> bool
void watch_assets(rtti::context &ctx, const std::string &protocol, bool wait=false)
auto init(rtti::context &ctx) -> bool
void unwatch_assets(rtti::context &ctx, const std::string &protocol)
auto deinit(rtti::context &ctx) -> bool
auto init(rtti::context &ctx) -> bool
auto deinit(rtti::context &ctx) -> bool
auto init(rtti::context &ctx) -> bool
auto init(rtti::context &ctx) -> bool
auto deinit(rtti::context &ctx) -> bool
auto init(rtti::context &ctx, const cmd_line::parser &parser) -> bool
auto deinit(rtti::context &ctx) -> bool
bool add_path_protocol(const std::string &protocol, const path &dir)
Allows us to map a protocol to a specific directory. A path protocol gives the caller the ability to ...
path resolve_protocol(const path &_path)
Given the specified path/filename, resolve the final full filename. This will be based on either the ...
renderer_type get_renderer_type()
const char * get_renderer_name(renderer_type _type)
auto init(rtti::context &ctx) -> bool
auto deinit(rtti::context &ctx) -> bool
static auto create(rtti::context &ctx, cmd_line::parser &parser) -> bool
static auto interrupt() -> bool
static auto destroy() -> bool
static auto process() -> int
static auto init(const cmd_line::parser &parser) -> bool
static auto deinit() -> bool
static auto init_window(rtti::context &ctx) -> bool
static auto process() -> int
static auto init_systems(const cmd_line::parser &parser) -> bool
static auto destroy() -> bool
static auto context() -> rtti::context &
static auto deinit() -> bool
static auto interrupt() -> bool
static auto create(rtti::context &ctx, cmd_line::parser &parser) -> bool
static auto init_core(const cmd_line::parser &parser) -> bool
auto create_window_for_display(int index, const std::string &title, uint32_t flags) -> const std::unique_ptr< render_window > &
auto init(rtti::context &ctx) -> bool
auto deinit(rtti::context &ctx) -> bool