Mercurial > molko
comparison examples/example-notify/example-notify.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 |
---|---|
40 .text = "Keys: <Space> to generate a notification.", | 40 .text = "Keys: <Space> to generate a notification.", |
41 .x = 10, | 41 .x = 10, |
42 .y = 10 | 42 .y = 10 |
43 }; | 43 }; |
44 static struct mlk_texture *icon; | 44 static struct mlk_texture *icon; |
45 static struct mlk_state *states[1]; | |
46 | 45 |
47 static void | 46 static void |
48 init(void) | 47 init(void) |
49 { | 48 { |
50 int err; | 49 int err; |
100 .handle = handle, | 99 .handle = handle, |
101 .update = update, | 100 .update = update, |
102 .draw = draw | 101 .draw = draw |
103 }; | 102 }; |
104 | 103 |
105 mlk_game_init(states, MLK_UTIL_SIZE(states)); | 104 mlk_game_init(); |
106 mlk_game_push(&state); | 105 mlk_game_push(&state); |
107 mlk_game_loop(); | 106 mlk_game_loop(); |
108 } | 107 } |
109 | 108 |
110 static void | 109 static void |