52 AscWindow *window = asc_window_initialize(0, &settings); |
52 AscWindow *window = asc_window_initialize(0, &settings); |
53 asc_shader_initialize_predefined(); |
53 asc_shader_initialize_predefined(); |
54 |
54 |
55 asc_set_font(asc_font(ASC_FONT_REGULAR, 24)); |
55 asc_set_font(asc_font(ASC_FONT_REGULAR, 24)); |
56 asc_ink_rgb(255, 0, 0); |
56 asc_ink_rgb(255, 0, 0); |
57 AscTextNode *fps_counter = asc_text(50, 50, "9999 FPS"); |
57 AscText *fps_counter = asc_text(50, 50, "9999 FPS"); |
58 unsigned last_fps = 0; |
58 unsigned last_fps = 0; |
59 |
59 |
60 while (asc_loop_next()) { |
60 while (asc_loop_next()) { |
61 // quit application on any error |
61 // quit application on any error |
62 if (show_message_box_on_error(window->window)) break; |
62 if (show_message_box_on_error(window->window)) break; |