comparison libmlk-core/core/painter.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 c4da052c0def
children 196264679079
comparison
equal deleted inserted replaced
291:5d8700074dd7 292:08ab73b32832
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> 22 #include <stdbool.h>
23 23
24 #include "core.h"
25
24 struct texture; 26 struct texture;
27
28 CORE_BEGIN_DECLS
25 29
26 struct texture * 30 struct texture *
27 painter_get_target(void); 31 painter_get_target(void);
28 32
29 void 33 void
51 painter_clear(void); 55 painter_clear(void);
52 56
53 void 57 void
54 painter_present(void); 58 painter_present(void);
55 59
60 CORE_END_DECLS
61
56 #define PAINTER_BEGIN(tex) \ 62 #define PAINTER_BEGIN(tex) \
57 do { \ 63 do { \
58 struct texture *__current_texture__; \ 64 struct texture *__current_texture__; \
59 \ 65 \
60 __current_texture__ = painter_get_target(); \ 66 __current_texture__ = painter_get_target(); \