1al_build_transform(3) Library Functions Manual al_build_transform(3)
2
3
4
6 al_build_transform
7
9 #include <allegro5/allegro.h>
10
11 void al_build_transform(ALLEGRO_TRANSFORM *trans, float x, float y,
12 float sx, float sy, float theta)
13
15 Builds a transformation given some parameters. This call is equivalent
16 to calling the transformations in this order: make identity, scale,
17 rotate, translate. This method is faster, however, than actually call‐
18 ing those functions.
19
20 Parameters:
21
22 · trans - Transformation to alter
23
24 · x, y - Translation
25
26 · sx, sy - Scale
27
28 · theta - Rotation angle
29
31 al_translate_transform(3), al_rotate_transform(3), al_scale_trans‐
32 form(3), al_compose_transform(3)
33
34
35
36Allegro reference manual al_build_transform(3)