1get_align_matrix(3) Allegro manual get_align_matrix(3)
2
3
4
6 get_align_matrix - Rotates a matrix to align it along specified coordi‐
7 nate vectors. Allegro game programming library.
8
10 #include <allegro.h>
11
12
13 void get_align_matrix(MATRIX *m, fixed xfront, yfront, zfront, fixed
14 xup, fixed yup, fixed zup);
15
17 Rotates a matrix so that it is aligned along the specified coordinate
18 vectors (they need not be normalized or perpendicular, but the up and
19 front must not be equal). A front vector of 0,0,-1 and up vector of
20 0,1,0 will return the identity matrix.
21
22
24 apply_matrix(3), get_camera_matrix(3)
25
26
27
28Allegro version 4.2.2 get_align_matrix(3)