comparison libmlk-core/core/painter.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_PAINTER_H 19 #ifndef MOLKO_CORE_PAINTER_H
20 #define MOLKO_CORE_PAINTER_H 20 #define MOLKO_CORE_PAINTER_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 25
28 CORE_BEGIN_DECLS 26 CORE_BEGIN_DECLS
29 27
30 struct texture * 28 struct texture *
31 painter_get_target(void); 29 painter_get_target(void);
32 30
33 void 31 void
34 painter_set_target(struct texture *tex); 32 painter_set_target(struct texture *);
35 33
36 unsigned long 34 unsigned long
37 painter_get_color(void); 35 painter_get_color(void);
38 36
39 void 37 void
40 painter_set_color(unsigned long color); 38 painter_set_color(unsigned long);
41 39
42 void 40 void
43 painter_draw_line(int x1, int y1, int x2, int y2); 41 painter_draw_line(int, int, int, int);
44 42
45 void 43 void
46 painter_draw_point(int x, int y); 44 painter_draw_point(int, int);
47 45
48 void 46 void
49 painter_draw_rectangle(int x, int y, unsigned int w, unsigned int h); 47 painter_draw_rectangle(int, int, unsigned int, unsigned int);
50 48
51 void 49 void
52 painter_draw_circle(int x, int y, int radius); 50 painter_draw_circle(int, int, int);
53 51
54 void 52 void
55 painter_clear(void); 53 painter_clear(void);
56 54
57 void 55 void