get_z_rotate_matrix(3alleg4)
π« get_z_rotate_matrix β NAME π«
ok so bestie, meet get_z_rotate_matrix and get_z_rotate_matrix_f β they construct Z axis rotation matrices. β¨ that's the whole vibe. it's giving Allegro game programming library realness. π
πΈ SYNOPSIS πΈ
#include <allegro.h>
void get_z_rotate_matrix(MATRIX *m, fixed r);
void get_z_rotate_matrix_f(MATRIX_f *m, float r);
π¦ DESCRIPTION π¦
okay so here's the tea β β these two build you a Z axis rotation matrix and tuck it right into m. no cap.
and then?? when you apply that matrix to a point, it rotates the point about the Z axis by the angle you gave it. π
lowkey important detail: that angle is in binary, 256 degrees to a circle format. yes bestie, 256 degrees to a circle. that's the whole circle. do not come at me with your regular 360 degrees, this is the Allegro way and honestly? iconic. π
π SEE ALSO π
apply_matrix(3alleg4)get_rotation_matrix(3alleg4)get_x_rotate_matrix(3alleg4)get_y_rotate_matrix(3alleg4)
and that's a wrap, bestie!! π«Ά this lil page came from the Allegro manual, version 4.4.3, and it lives under the name get_z_rotate_matrix(3alleg4). go rotate something, you 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