1al_draw_triangle(3)                                        al_draw_triangle(3)
2
3
4

NAME

6       al_draw_triangle - Allegro 5 API
7

SYNOPSIS

9              #include <allegro5/allegro_primitives.h>
10
11              void al_draw_triangle(float x1, float y1, float x2, float y2,
12                 float x3, float y3, ALLEGRO_COLOR color, float thickness)
13

DESCRIPTION

15       Draws an outlined triangle.
16
17       Parameters:
18
19       • x1, y1, x2, y2, x3, y3 - Three points of the triangle
20
21       • color - Color of the triangle
22
23       • thickness - Thickness of the lines, pass <= 0 to draw hairline lines
24

SEE ALSO

26       al_draw_filled_triangle(3), al_draw_soft_triangle(3)
27
28
29
30Allegro reference manual                                   al_draw_triangle(3)
Impressum