Files
armorpaint/base/sources/ts/main.ts
T

40 lines
811 B
TypeScript
Raw Normal View History

2024-01-28 12:21:16 +01:00
function main() {
2024-05-09 11:22:49 +02:00
// Used to locate external application data folder
2025-03-09 17:02:12 +01:00
iron_set_app_name(manifest_title);
2024-05-10 14:20:57 +02:00
config_load();
2024-01-28 12:21:16 +01:00
2025-03-11 19:49:42 +01:00
sys_on_resize = base_on_resize;
sys_on_w = base_w;
sys_on_h = base_h;
sys_on_x = base_x;
sys_on_y = base_y;
2024-01-28 12:21:16 +01:00
2024-03-09 14:52:33 +01:00
config_init();
2025-01-10 18:17:32 +01:00
context_init();
2024-03-09 14:52:33 +01:00
sys_start(config_get_options());
2024-03-20 16:13:54 +01:00
if (config_raw.layout == null) {
base_init_layout();
}
2025-03-09 17:02:12 +01:00
iron_set_app_name(manifest_title);
2025-03-11 19:49:42 +01:00
sys_init();
2024-04-08 17:40:32 +02:00
scene_set_active("Scene");
uniforms_ext_init();
render_path_base_init();
2024-03-06 12:53:46 +01:00
2024-04-08 17:40:32 +02:00
if (context_raw.render_mode == render_mode_t.FORWARD) {
render_path_deferred_init(); // Allocate gbuffer
render_path_forward_init();
render_path_commands = render_path_forward_commands;
}
else {
render_path_deferred_init();
render_path_commands = render_path_deferred_commands;
}
2024-03-06 12:53:46 +01:00
2024-04-08 17:40:32 +02:00
base_init();
2024-01-28 12:21:16 +01:00
}
main();