pivot_scaled_sprite(3)
β¨ NAME β¨
okay so bestie, this is pivot_scaled_sprite(3) from the Allegro manual. It rotates and stretches a sprite around a specified point. Yep, it's the Allegro game programming library, and this function is lowkey iconic for making sprites spin and scale around a pivot. π
β¨
πΈ SYNOPSIS πΈ
#include <allegro.h>
void pivot_scaled_sprite(BITMAP *bmp, BITMAP *sprite, int x, int y, int
cx, int cy, fixed angle, fixed scale);
π DESCRIPTION π
It's giving rotate_scaled_sprite(), but with a pivot moment. The point in the sprite given by (cx, cy) gets aligned to (x, y) in the bitmap, and then it rotates and scales around this point. Periodt. π¦π
π SEE ALSO π
go check these out, bestie, iykyk. π
Allegro version 4.4.3 β pivot_scaled_sprite(3) β and the footer didn't print a date, so that's the whole sign-off. πβ¨
π¦ where this page comes from
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms