1al_draw_spline(3) al_draw_spline(3)
2
3
4
6 al_draw_spline - Allegro 5 API
7
9 #include <allegro5/allegro_primitives.h>
10
11 void al_draw_spline(float points[8], ALLEGRO_COLOR color, float thickness)
12
14 Draws a Bézier spline given 4 control points.
15
16 Parameters:
17
18 · points - An array of 4 pairs of coordinates of the 4 control points
19
20 · color - Color of the spline
21
22 · thickness - Thickness of the spline, pass <= 0 to draw a hairline
23 spline
24
26 al_calculate_spline(3)
27
28
29
30Allegro reference manual al_draw_spline(3)