Mercurial > molko
comparison libmlk-core/mlk/core/animation.h @ 517:6e8f6640e05b
misc: use extern C manually
author | David Demelier <markand@malikania.fr> |
---|---|
date | Sat, 04 Mar 2023 14:23:59 +0100 |
parents | 2e05c1804b25 |
children | 459ff09c09b3 |
comparison
equal
deleted
inserted
replaced
516:6af0524913b3 | 517:6e8f6640e05b |
---|---|
27 * | 27 * |
28 * Animations are small objects using a ::mlk_sprite to update themselves and | 28 * Animations are small objects using a ::mlk_sprite to update themselves and |
29 * draw next frames depending on delay set. | 29 * draw next frames depending on delay set. |
30 */ | 30 */ |
31 | 31 |
32 #include "core.h" | |
33 | |
34 struct mlk_sprite; | 32 struct mlk_sprite; |
35 | 33 |
36 /** | 34 /** |
37 * \struct mlk_animation | 35 * \struct mlk_animation |
38 * \brief Animation structure | 36 * \brief Animation structure |
57 unsigned int row; | 55 unsigned int row; |
58 unsigned int column; | 56 unsigned int column; |
59 /** \endcond MLK_PRIVATE_DECLS */ | 57 /** \endcond MLK_PRIVATE_DECLS */ |
60 }; | 58 }; |
61 | 59 |
62 MLK_CORE_BEGIN_DECLS | 60 #if defined(__cplusplus) |
61 extern "C" { | |
62 #endif | |
63 | 63 |
64 /** | 64 /** |
65 * Start or reset the animation to the beginning. | 65 * Start or reset the animation to the beginning. |
66 * | 66 * |
67 * \pre animation != NULL | 67 * \pre animation != NULL |
105 * \return 0 on success or any error propagated from ::mlk_sprite_draw. | 105 * \return 0 on success or any error propagated from ::mlk_sprite_draw. |
106 */ | 106 */ |
107 int | 107 int |
108 mlk_animation_draw(const struct mlk_animation *animation, int x, int y); | 108 mlk_animation_draw(const struct mlk_animation *animation, int x, int y); |
109 | 109 |
110 MLK_CORE_END_DECLS | 110 #if defined(__cplusplus) |
111 } | |
112 #endif | |
111 | 113 |
112 #endif /* !MLK_CORE_ANIMATION_H */ | 114 #endif /* !MLK_CORE_ANIMATION_H */ |