logo
Free, Micro AI Code Reviews That Run on Git Commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt

rotate_sprite_lit - Rotates a sprite. Allegro game programming library.

Description

       Draws  the sprite image onto the bitmap. It is placed with its top left corner at the specified position,
       then rotated by the specified angle around its centre. The angle is a fixed point  16.16  number  in  the
       same  format  used  by  the fixed point trig routines, with 256 equal to a full circle, 64 a right angle,
       etc. All rotation functions can draw between any two bitmaps, even screen bitmaps or bitmaps of different
       color depth.

       Positive increments of the angle will make the sprite rotate clockwise on the screen, as demonstrated  by
       the Allegro example.

Name

       rotate_sprite_lit - Rotates a sprite. Allegro game programming library.

See Also

draw_lit_sprite(3alleg4),      rotate_scaled_sprite_lit(3alleg4),      rotate_sprite_v_flip_lit(3alleg4),
       rotate_scaled_sprite_v_flip_lit(3alleg4),  pivot_sprite_lit(3alleg4),   pivot_sprite_v_flip_lit(3alleg4),
       pivot_scaled_sprite_lit(3alleg4),        pivot_scaled_sprite_v_flip_lit(3alleg4),        itofix(3alleg4),
       exsprite(3alleg4)

Allegro                                           version 4.4.3                       rotate_sprite_lit(3alleg4)

Synopsis

#include<allegro.h>voidrotate_sprite_lit(BITMAP*bmp,BITMAP*sprite,intx,inty,fixedangle);

See Also