qscale_matrix(3)

๐Ÿ“ฆ version 4.4.3.1, in fedora 43, fedora 44

๐Ÿ’– qscale_matrix(3) ๐Ÿ’–

okay so bestie, this page is from the Allegro manual and it's literally about two functions that are so iconic for matrix scaling. let's get into it โœจ

๐ŸŒธ NAME ๐ŸŒธ

qscale_matrix, qscale_matrix_f โ€” optimised routine for scaling an already generated matrix. this is part of the Allegro game programming library ๐ŸŽฎ

โœจ SYNOPSIS โœจ

#include <allegro.h>

void qscale_matrix(MATRIX *m, fixed scale);

void qscale_matrix_f(MATRIX_f *m, float scale);

๐ŸŽ€ DESCRIPTION ๐ŸŽ€

okay so listen, this is the optimised routine for scaling an already generated matrix. the way it works is it simply adds in the scale factor, so there is no need to build two temporary matrices and then multiply them together. like, it's giving efficiency, no cap. ๐Ÿ’…โœจ

๐Ÿฆ‹ SEE ALSO ๐Ÿฆ‹


Allegro version 4.4.3, manual page qscale_matrix(3) โ€” no date on this one bestie, but it's still iconic fr fr ๐Ÿ’–๐Ÿซถ

๐Ÿ“ฆ where this page comes from