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 π«Άπ
π¦ where this page comes from
- debian bookworm: allegro4-doc 2:4.4.3.1-3 Β· Allegro-gift-ware
- debian trixie: allegro4-doc 2:4.4.3.1-5 Β· Allegro-gift-ware
- ubuntu jammy: allegro4-doc 2:4.4.3.1-2 Β· Allegro-gift-ware
- ubuntu noble: allegro4-doc 2:4.4.3.1-4.1build3 Β· Allegro-gift-ware
- ubuntu questing: allegro4-doc 2:4.4.3.1-6
- ubuntu resolute: allegro4-doc 2:4.4.3.1-7 Β· Allegro-gift-ware
- ubuntu stonking: allegro4-doc 2:4.4.3.1-9 Β· Allegro-gift-ware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms