hello,
i'm looking for examples of code for functions because i don't understand the
int points_stride and int num_segments parameters :
void al_draw_ribbon(const float *points, int points_stride, ALLEGRO_COLOR color,
float thickness, int num_segments)
void al_calculate_ribbon(float* dest, int dest_stride, const float *points,
int points_stride, float thickness, int num_segments)
void al_calculate_spline(float* dest, int stride, float points[8],
float thickness, int num_segments)
Thank very much
F
Here's a quick example. I note that num_segments is a wrong name for that parameter: it should be num_corners or num_points perhaps. The stride parameters allow you to use structs that are not just pairs of floats when the functions ask for points.
Thank you very much for this example of code.
Very usefull for understanding !