-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtilegen.h
More file actions
94 lines (65 loc) · 1.44 KB
/
tilegen.h
File metadata and controls
94 lines (65 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
#ifndef TILEGEN_H
#define TILEGEN_H
#include <cairo/cairo.h>
#include <cstdint>
#include <cstdlib>
#include <functional>
void
cairo_draw_gl_rgba(
std::size_t w, std::size_t h,
uint8_t * data, std::size_t stride,
const std::function<void(std::size_t, std::size_t, cairo_t *)> & draw_fn);
void
cairo_draw_gl_rgba(
std::size_t w, std::size_t h,
uint8_t * data, std::size_t stride,
const std::function<void(cairo_t *)> & draw_fn);
void
write_rgba_to_png(std::size_t w, std::size_t h, uint8_t * data, std::size_t stride, const std::string& filename);
void
draw_solid(cairo_t * c);
void
draw_tile_background(cairo_t * c);
void
draw_straight_arrow(cairo_t * c);
void
draw_straight_arrow2(cairo_t * c);
void
draw_straight_arrow3(cairo_t * c);
void
draw_right_arrow(cairo_t * c);
void
draw_left_arrow(cairo_t * c);
void
draw_button_background(cairo_t * c);
void
draw_pressed_button_background(cairo_t * c);
void
draw_abort_button(cairo_t * c);
void
draw_pause_button(cairo_t * c);
void
draw_run_button(cairo_t * c);
void
draw_run2_button(cairo_t * c);
void
draw_run3_button(cairo_t * c);
void
draw_cross(cairo_t * c);
void
draw_conditional(cairo_t * c);
void
draw_centered_text(cairo_t * c, const char * text, double font_size);
void
draw_repeat(cairo_t * c, std::size_t count);
void
draw_trigger1(cairo_t * c);
void
draw_trigger2(cairo_t * c);
void
draw_trigger3(cairo_t * c);
void
draw_back_icon(cairo_t * c);
void
draw_exit_icon(cairo_t * c);
#endif