comparison libcore/core/texture.h @ 226:dd7c8d4321a3

misc: miscellaneous cleanups
author David Demelier <markand@malikania.fr>
date Thu, 19 Nov 2020 10:17:04 +0100
parents 633a25df450e
children
comparison
equal deleted inserted replaced
225:d5263d467934 226:dd7c8d4321a3
27 * See also \a image.h for usage of textures. 27 * See also \a image.h for usage of textures.
28 */ 28 */
29 29
30 #include <stdbool.h> 30 #include <stdbool.h>
31 31
32 #include "plat.h"
33
34 /** 32 /**
35 * \brief Texture object. 33 * \brief Texture object.
36 */ 34 */
37 struct texture { 35 struct texture {
38 unsigned int w; /*!< (-) Texture width. */ 36 unsigned int w; /*!< (-) Texture width. */
59 * \param w the width 57 * \param w the width
60 * \param h the height 58 * \param h the height
61 * \return False on error. 59 * \return False on error.
62 */ 60 */
63 bool 61 bool
64 texture_new(struct texture *tex, unsigned int w, unsigned int h) PLAT_NODISCARD; 62 texture_new(struct texture *tex, unsigned int w, unsigned int h);
65 63
66 /** 64 /**
67 * Check if the texture is valid. 65 * Check if the texture is valid.
68 * 66 *
69 * This function simply checks if the texture is initialized and has non-null 67 * This function simply checks if the texture is initialized and has non-null