FreeBSD Manual Pages
al_calculate_spline(3) Library Functions Manual al_calculate_spline(3) NAME al_calculate_spline - Allegro 5 API SYNOPSIS #include <allegro5/allegro_primitives.h> void al_calculate_spline(float* dest, int stride, const float points[8], float thickness, int num_segments) DESCRIPTION Calculates a BA(C)zier spline given 4 control points. If thickness <= 0, then num_segments of points are required in the destination, otherwise twice as many are needed. The destination buffer should consist of regu- larly spaced (by distance of stride bytes) doublets of floats, correspond- ing to x and y coordinates of the vertices. Parameters: * dest - The destination buffer * stride - Distance (in bytes) between starts of successive pairs of coor- dinates * points - An array of 4 pairs of coordinates of the 4 control points * thickness - Thickness of the spline ribbon * num_segments - The number of points to calculate SEE ALSO al_draw_spline(3), al_calculate_arc(3), al_calculate_ribbon(3) Allegro reference manual al_calculate_spline(3)
NAME | SYNOPSIS | DESCRIPTION | SEE ALSO
Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=al_calculate_spline&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>
