Your company here — click to reach over 10,000 unique daily visitors

al_calculate_spline - Man Page

Allegro 5 API


#include <allegro5/allegro_primitives.h>

void al_calculate_spline(float* dest, int stride, float points[8],
   float thickness, int num_segments)


Calculates a Bé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 regularly spaced (by distance of stride bytes) doublets of floats, corresponding to x and y coordinates of the vertices.


See Also

al_draw_spline(3), al_calculate_arc(3), al_calculate_ribbon(3)

Referenced By

al_calculate_arc(3), al_calculate_ribbon(3), al_draw_spline(3).

Allegro reference manual