7 #include <allegro5/allegro_primitives.h> 34 return al_map_rgb(r, g, b);
45 al_set_target_bitmap(
buffer);
62 al_clear_to_color(al_map_rgb(255, 255, 255));
67 al_draw_filled_rectangle(x1, y1, x2, y2, color);
72 al_draw_rectangle(x1, y1, x2, y2, color, thickness);
77 al_draw_text(
font, color, x, y, 0, text.c_str());
82 al_draw_multiline_text(
font, color, x, y, maxWidth, lineHeight, 0, text.c_str());
87 al_draw_line(x1, y1, x2, y2, color, thickness);
92 return al_get_text_width(
font, text.c_str());
97 return al_get_font_line_height(
font);