qtranslate_matrix(3alleg4)

✨ qtranslate_matrix ✨

okay bestie, welcome to the Allegro manual πŸ’– this is the 3alleg4 page, and today's main characters are qtranslate_matrix and qtranslate_matrix_f β€” two lil legends from the Allegro game programming library 🌈


🌸 NAME 🌸

qtranslate_matrix, qtranslate_matrix_f β€” the optimised routine for translating an already generated matrix, brought to you by the Allegro game programming library πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <allegro.h>

void qtranslate_matrix(MATRIX *m, fixed x, fixed y, fixed z);

void qtranslate_matrix_f(MATRIX_f *m, float x, float y, float z);

πŸ’… DESCRIPTION πŸ’…

So here's the vibe: this is the optimised routine for translating an already generated matrix. It literally just adds in the translation offset β€” that's it, that's the whole serve πŸ’β€β™€οΈ

Which means no need to build two temporary matrices and then multiply them together. Not me avoiding unnecessary matrix math… iconic behaviour, no cap ✨


πŸ‘‘ SEE ALSO πŸ‘‘


and that's the tea, bestie πŸ“ this lil page came from Allegro version 4.4.3 β€” go forth and translate those matrices, you absolute main character πŸ«ΆπŸ’œ