1al_calculate_ribbon(3) al_calculate_ribbon(3)
2
3
4
6 al_calculate_ribbon - Allegro 5 API
7
9 #include <allegro5/allegro_primitives.h>
10
11 void al_calculate_ribbon(float* dest, int dest_stride, const float *points,
12 int points_stride, float thickness, int num_segments)
13
15 Calculates a ribbon given an array of points. The ribbon will go
16 through all of the passed points. If thickness <= 0, then num_segments
17 of points are required in the destination buffer, otherwise twice as
18 many are needed. The destination and the points buffer should consist
19 of regularly spaced doublets of floats, corresponding to x and y coor‐
20 dinates of the vertices.
21
22 Parameters:
23
24 • dest - Pointer to the destination buffer
25
26 • dest_stride - Distance (in bytes) between starts of successive pairs
27 of coordinates in the destination buffer
28
29 • points - An array of pairs of coordinates for each point
30
31 • points_stride - Distance (in bytes) between starts of successive
32 pairs of coordinates in the points buffer
33
34 • thickness - Thickness of the spline ribbon
35
36 • num_segments - The number of points to calculate
37
39 al_draw_ribbon(3), al_calculate_arc(3), al_calculate_spline(3)
40
41
42
43Allegro reference manual al_calculate_ribbon(3)