al_calculate_ribbon man page

al_calculate_ribbon — Allegro 5 API

Synopsis

#include <allegro5/allegro_primitives.h>

void al_calculate_ribbon(float* dest, int dest_stride, const float *points,
   int points_stride, float thickness, int num_segments)

Description

Calculates a ribbon given an array of points. The ribbon will go through all of the passed points. If thickness <= 0, then num_segments of points are required in the destination buffer, otherwise twice as many are needed. The destination and the points buffer should consist of regularly spaced doublets of floats, corresponding to x and y coordinates of the vertices.

Parameters:

See Also

al_draw_ribbon(3), al_calculate_arc(3), al_calculate_spline(3)

Referenced By

al_calculate_arc(3), al_calculate_spline(3), al_draw_ribbon(3).

Allegro reference manual