Mercurial > molko
comparison libmlk-rpg/rpg/tileset.h @ 292:08ab73b32832
misc: add extern "C" {} blocks for C++ friends
author | David Demelier <markand@malikania.fr> |
---|---|
date | Fri, 05 Mar 2021 10:08:09 +0100 |
parents | 71b3b7036de7 |
children | 196264679079 |
comparison
equal
deleted
inserted
replaced
291:5d8700074dd7 | 292:08ab73b32832 |
---|---|
19 #ifndef MOLKO_RPG_TILESET_H | 19 #ifndef MOLKO_RPG_TILESET_H |
20 #define MOLKO_RPG_TILESET_H | 20 #define MOLKO_RPG_TILESET_H |
21 | 21 |
22 #include <stdbool.h> | 22 #include <stdbool.h> |
23 #include <stddef.h> | 23 #include <stddef.h> |
24 | |
25 #include <core/core.h> | |
24 | 26 |
25 struct sprite; | 27 struct sprite; |
26 | 28 |
27 /** | 29 /** |
28 * \brief Describe a tile property in a tileset. | 30 * \brief Describe a tile property in a tileset. |
56 size_t tiledefsz; /*!< (+) Number of tile properties. */ | 58 size_t tiledefsz; /*!< (+) Number of tile properties. */ |
57 struct tileset_animation *anims; /*!< (+&?) Per tile animations (must be sorted by id). */ | 59 struct tileset_animation *anims; /*!< (+&?) Per tile animations (must be sorted by id). */ |
58 size_t animsz; /*!< (+) Number of tile animations. */ | 60 size_t animsz; /*!< (+) Number of tile animations. */ |
59 struct sprite *sprite; /*!< (+&) Sprite to generate the terrain. */ | 61 struct sprite *sprite; /*!< (+&) Sprite to generate the terrain. */ |
60 }; | 62 }; |
63 | |
64 CORE_BEGIN_DECLS | |
61 | 65 |
62 /** | 66 /** |
63 * Tells if the tileset is correctly initialized. | 67 * Tells if the tileset is correctly initialized. |
64 * | 68 * |
65 * \param ts the tileset to check (maybe NULL) | 69 * \param ts the tileset to check (maybe NULL) |
109 * \param y the y coordinate | 113 * \param y the y coordinate |
110 */ | 114 */ |
111 void | 115 void |
112 tileset_draw(const struct tileset *ts, unsigned int r, unsigned int c, int x, int y); | 116 tileset_draw(const struct tileset *ts, unsigned int r, unsigned int c, int x, int y); |
113 | 117 |
118 CORE_END_DECLS | |
119 | |
114 #endif /* !MOLKO_RPG_TILESET_H */ | 120 #endif /* !MOLKO_RPG_TILESET_H */ |