src/window.c

changeset 220
6b266e907f89
parent 213
3d252dbd7c8e
equal deleted inserted replaced
219:62508d957a22 220:6b266e907f89
79 79
80 // default UI scale 80 // default UI scale
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 char ui_scene_name[16];
85 snprintf(ui_scene_name, sizeof(ui_scene_name), "Window %u UI", index);
86 asc_scene_init(&window->ui, ui_scene_name,
85 .type = ASC_CAMERA_ORTHO, 87 .type = ASC_CAMERA_ORTHO,
86 .ortho.rect = ASC_RECT(0, 0, window->dimensions.width, window->dimensions.height), 88 .ortho.rect = ASC_RECT(0, 0, window->dimensions.width, window->dimensions.height),
87 .projection_update_func = asc_camera_ortho_update_size 89 .projection_update_func = asc_camera_ortho_update_size
88 ); 90 );
89 asc_dprintf("Window %u initialized at index %u", window->id, index); 91 asc_dprintf("Window %u initialized at index %u", window->id, index);

mercurial