al_calculate_ribbon(3)
β¨ NAME β¨
Okay bestie, this is the al_calculate_ribbon(3) page from the Library Functions Manual, and itβs serving pure Allegro 5 API. The function is al_calculate_ribbon, and yes, weβre about to make ribbons make sense. π
πΈ SYNOPSIS πΈ
Steal this exactly, bestie:
#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 π
This function calculates a ribbon given an array of points, and the ribbon goes through all of the passed points β not just the cute ones. β¨
If thickness <= 0, then num_segments of points are required in the destination buffer; otherwise you need twice as many. The dest and points buffers should consist of regularly spaced doublets of floats, corresponding to the x and y coordinates of the vertices. Thatβs the layout, no cap. π
π Parameters π
destβ pointer to the destination buffer.dest_strideβ distance (in bytes) between starts of successive pairs of coordinates in the destination buffer.pointsβ an array of pairs of coordinates for each point.points_strideβ distance (in bytes) between starts of successive pairs of coordinates in the points buffer.thicknessβ thickness of the spline ribbon.num_segmentsβ the number of points to calculate.
π¦ SEE ALSO π¦
These are the friends in the group chat:
Bye bestie! π Source/version sign-off: the Allegro reference manual for al_calculate_ribbon(3). Date: not listed in the footer, so no fake timestamp from me β periodt. π
π¦ where this page comes from
- arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms