Mercurial > molko
comparison examples/example-gridmenu/example-gridmenu.c @ 522:f45a023f6690
core: doxygenize game
author | David Demelier <markand@malikania.fr> |
---|---|
date | Sat, 04 Mar 2023 16:47:54 +0100 |
parents | d49a05e7a5b5 |
children | c7664b679a95 |
comparison
equal
deleted
inserted
replaced
521:338a4436e255 | 522:f45a023f6690 |
---|---|
37 #include <mlk/example/example.h> | 37 #include <mlk/example/example.h> |
38 #include <mlk/example/glower.h> | 38 #include <mlk/example/glower.h> |
39 #include <mlk/example/registry.h> | 39 #include <mlk/example/registry.h> |
40 | 40 |
41 static void menu_update(struct mlk_gridmenu_delegate *, struct mlk_gridmenu *, unsigned int); | 41 static void menu_update(struct mlk_gridmenu_delegate *, struct mlk_gridmenu *, unsigned int); |
42 | |
43 static struct mlk_state *states[8]; | |
44 | 42 |
45 static const char * const items[] = { | 43 static const char * const items[] = { |
46 "Feu mineur", | 44 "Feu mineur", |
47 "Feu majeur", | 45 "Feu majeur", |
48 "Feu septième", | 46 "Feu septième", |
156 | 154 |
157 mlk_align(MLK_ALIGN_CENTER, &menu.x, &menu.y, menu.w, menu.h, 0, 0, mlk_window.w, mlk_window.h); | 155 mlk_align(MLK_ALIGN_CENTER, &menu.x, &menu.y, menu.w, menu.h, 0, 0, mlk_window.w, mlk_window.h); |
158 frame.x = menu.x; | 156 frame.x = menu.x; |
159 frame.y = menu.y; | 157 frame.y = menu.y; |
160 | 158 |
161 mlk_game_init(states, MLK_UTIL_SIZE(states)); | 159 mlk_game_init(); |
162 mlk_game_push(&state); | 160 mlk_game_push(&state); |
163 mlk_game_loop(); | 161 mlk_game_loop(); |
164 } | 162 } |
165 | 163 |
166 static void | 164 static void |