1rotate_sprite_trans(3)          Allegro manual          rotate_sprite_trans(3)
2
3
4

NAME

6       rotate_sprite_trans  -  Rotates  a  sprite.  Allegro  game  programming
7       library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       void rotate_sprite_trans(BITMAP *bmp, BITMAP *sprite,
14
15       int x, int y, fixed angle);
16

DESCRIPTION

18       Draws the sprite image onto the bitmap. It is placed with its top  left
19       corner  at  the specified position, then rotated by the specified angle
20       around its centre. The angle is a fixed point 16.16 number in the  same
21       format  used by the fixed point trig routines, with 256 equal to a full
22       circle, 64 a right angle, etc. All rotation functions can draw  between
23       any  two  bitmaps,  even  screen  bitmaps or bitmaps of different color
24       depth.
25
26       Positive increments of the angle will make the sprite rotate  clockwise
27       on the screen, as demonstrated by the Allegro example.
28
29

SEE ALSO

31       draw_trans_sprite(3),                    rotate_scaled_sprite_trans(3),
32       rotate_sprite_v_flip_trans(3),    rotate_scaled_sprite_v_flip_trans(3),
33       pivot_sprite_trans(3),                    pivot_sprite_v_flip_trans(3),
34       pivot_scaled_sprite_trans(3),      pivot_scaled_sprite_v_flip_trans(3),
35       itofix(3), exsprite(3)
36
37
38
39Allegro                          version 4.4.3          rotate_sprite_trans(3)
Impressum