1al_transpose_transform(3) al_transpose_transform(3)
2
3
4
6 al_transpose_transform - Allegro 5 API
7
9 #include <allegro5/allegro.h>
10
11 void al_transpose_transform(ALLEGRO_TRANSFORM *trans)
12
14 Transposes the matrix of the given transform. This can be used for in‐
15 versing a rotation transform. For example:
16
17 al_build_camera_transform(camera, 0, 0, 0, x, y, z, xu, yu, zu)
18 al_copy_transform(inverse, camera)
19 al_transpose_transform(camera)
20 // Now "inverse" will be a transformation rotating in the opposite
21 // direction from "camera". Note that this only works if the camera
22 // position is 0/0/0 as in the example.
23
25 5.2.5
26
27
28
29Allegro reference manual al_transpose_transform(3)