1al_build_transform(3)                                    al_build_transform(3)
2
3
4

NAME

6       al_build_transform - Allegro 5 API
7

SYNOPSIS

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

DESCRIPTION

15       Builds a transformation given some parameters.  This call is equivalent
16       to calling the transformations in this order:  make  identity,  rotate,
17       scale,  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 in radians
29
30         Note: this function was previously documented to be equivalent  to  a
31         different (and more useful) order of operations: identity, scale, ro‐
32         tate, translate.
33

SEE ALSO

35       al_translate_transform(3),   al_rotate_transform(3),    al_scale_trans‐
36       form(3), al_compose_transform(3)
37
38
39
40Allegro reference manual                                 al_build_transform(3)
Impressum