comparison examples/example-cursor/example-cursor.c @ 522:f45a023f6690

core: doxygenize game
author David Demelier <markand@malikania.fr>
date Sat, 04 Mar 2023 16:47:54 +0100
parents 7f7602bae0bd
children c7664b679a95
comparison
equal deleted inserted replaced
521:338a4436e255 522:f45a023f6690
33 #include <mlk/ui/label.h> 33 #include <mlk/ui/label.h>
34 #include <mlk/ui/ui.h> 34 #include <mlk/ui/ui.h>
35 35
36 #include <mlk/example/example.h> 36 #include <mlk/example/example.h>
37 37
38 static struct mlk_state *states[1];
39 static char help_text[128]; 38 static char help_text[128];
40 static enum mlk_window_cursor cursor = MLK_WINDOW_CURSOR_ARROW; 39 static enum mlk_window_cursor cursor = MLK_WINDOW_CURSOR_ARROW;
41 40
42 static struct mlk_label help = { 41 static struct mlk_label help = {
43 .x = 10, 42 .x = 10,
119 .draw = draw 118 .draw = draw
120 }; 119 };
121 120
122 change(cursor); 121 change(cursor);
123 122
124 mlk_game_init(states, MLK_UTIL_SIZE(states)); 123 mlk_game_init();
125 mlk_game_push(&state); 124 mlk_game_push(&state);
126 mlk_game_loop(); 125 mlk_game_loop();
127 } 126 }
128 127
129 static void 128 static void