81 window->ui_scale = 1.0f; |
81 window->ui_scale = 1.0f; |
82 |
82 |
83 if (asc_gl_context_initialize(&window->glctx, window->window, &settings->glsettings)) { |
83 if (asc_gl_context_initialize(&window->glctx, window->window, &settings->glsettings)) { |
84 asc_scene_init(&window->ui, |
84 asc_scene_init(&window->ui, |
85 .type = ASC_CAMERA_ORTHO, |
85 .type = ASC_CAMERA_ORTHO, |
86 .ortho.rect = ASC_RECTI(0, 0, window->dimensions.width, window->dimensions.height), |
86 .ortho.rect = ASC_RECT(0, 0, window->dimensions.width, window->dimensions.height), |
87 .projection_update_func = asc_camera_ortho_update_size |
87 .projection_update_func = asc_camera_ortho_update_size |
88 ); |
88 ); |
89 asc_dprintf("Window %u initialized at index %u", window->id, index); |
89 asc_dprintf("Window %u initialized at index %u", window->id, index); |
90 asc_context.active_window = index; |
90 asc_context.active_window = index; |
91 } else { |
91 } else { |