99 asc_scene_add_node(BACKDROP_SCENE, node); |
99 asc_scene_add_node(BACKDROP_SCENE, node); |
100 } |
100 } |
101 |
101 |
102 static void create_fps_counter(void) { |
102 static void create_fps_counter(void) { |
103 asc_font(ASC_FONT_REGULAR, 12); |
103 asc_font(ASC_FONT_REGULAR, 12); |
104 asc_ink_rgba(224, 224, 224, 196); |
104 asc_ink_rgb(255, 255, 255); |
105 AscSceneNode *node = asc_text(.name = "FPS Counter"); |
105 AscSceneNode *node = asc_text(.name = "FPS Counter"); |
106 asc_behavior_add(node, .func = update_fps_counter); |
106 asc_behavior_add(node, .func = update_fps_counter); |
107 asc_add_ui_node(node); |
107 asc_add_ui_node(node); |
108 } |
108 } |
109 |
109 |