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

NAME

6       rotate_sprite_lit - Rotates a sprite. Allegro game programming library.
7

SYNOPSIS

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

DESCRIPTION

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

SEE ALSO

30       draw_lit_sprite(3),                        rotate_scaled_sprite_lit(3),
31       rotate_sprite_v_flip_lit(3),        rotate_scaled_sprite_v_flip_lit(3),
32       pivot_sprite_lit(3),                        pivot_sprite_v_flip_lit(3),
33       pivot_scaled_sprite_lit(3),          pivot_scaled_sprite_v_flip_lit(3),
34       itofix(3), exsprite(3)
35
36
37
38Allegro                          version 4.4.2            rotate_sprite_lit(3)
Impressum