1al_draw_rectangle(3) al_draw_rectangle(3)
2
3
4
6 al_draw_rectangle - Allegro 5 API
7
9 #include <allegro5/allegro_primitives.h>
10
11 void al_draw_rectangle(float x1, float y1, float x2, float y2,
12 ALLEGRO_COLOR color, float thickness)
13
15 Draws an outlined rectangle.
16
17 Parameters:
18
19 • x1, y1, x2, y2 - Upper left and lower right points of the rectangle
20
21 • color - Color of the rectangle
22
23 • thickness - Thickness of the lines, pass <= 0 to draw hairline lines
24
26 al_draw_filled_rectangle(3), al_draw_rounded_rectangle(3)
27
28
29
30Allegro reference manual al_draw_rectangle(3)