comparison libmlk-core/core/texture.h @ 298:196264679079

misc: remove usage of bool
author David Demelier <markand@malikania.fr>
date Wed, 10 Mar 2021 18:49:08 +0100
parents 08ab73b32832
children d01e83210ca2
comparison
equal deleted inserted replaced
297:6151152d009c 298:196264679079
17 */ 17 */
18 18
19 #ifndef MOLKO_CORE_TEXTURE_H 19 #ifndef MOLKO_CORE_TEXTURE_H
20 #define MOLKO_CORE_TEXTURE_H 20 #define MOLKO_CORE_TEXTURE_H
21 21
22 #include <stdbool.h>
23
24 #include "core.h" 22 #include "core.h"
25 23
26 struct texture { 24 struct texture {
27 unsigned int w; 25 unsigned int w;
28 unsigned int h; 26 unsigned int h;
37 TEXTURE_BLEND_LAST 35 TEXTURE_BLEND_LAST
38 }; 36 };
39 37
40 CORE_BEGIN_DECLS 38 CORE_BEGIN_DECLS
41 39
42 bool 40 int
43 texture_new(struct texture *tex, unsigned int w, unsigned int h); 41 texture_new(struct texture *, unsigned int, unsigned int);
44 42
45 bool 43 int
46 texture_ok(const struct texture *tex); 44 texture_ok(const struct texture *);
47 45
48 bool 46 int
49 texture_set_blend_mode(struct texture *tex, enum texture_blend blend); 47 texture_set_blend_mode(struct texture *, enum texture_blend);
50 48
51 bool 49 int
52 texture_set_alpha_mod(struct texture *tex, unsigned int alpha); 50 texture_set_alpha_mod(struct texture *, unsigned int);
53 51
54 bool 52 int
55 texture_set_color_mod(struct texture *tex, unsigned long color); 53 texture_set_color_mod(struct texture *, unsigned long);
56 54
57 bool 55 int
58 texture_draw(const struct texture *tex, int x, int y); 56 texture_draw(const struct texture *, int, int);
59 57
60 bool 58 int
61 texture_scale(const struct texture *tex, 59 texture_scale(const struct texture *,
62 int src_x, 60 int,
63 int src_y, 61 int,
64 unsigned src_w, 62 unsigned int,
65 unsigned src_h, 63 unsigned int,
66 int dst_x, 64 int,
67 int dst_y, 65 int,
68 unsigned dst_w, 66 unsigned int,
69 unsigned dst_h, 67 unsigned int,
70 double angle); 68 double);
71 69
72 void 70 void
73 texture_finish(struct texture *tex); 71 texture_finish(struct texture *);
74 72
75 CORE_END_DECLS 73 CORE_END_DECLS
76 74
77 #endif /* !MOLKO_CORE_TEXTURE_H */ 75 #endif /* !MOLKO_CORE_TEXTURE_H */