Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
rotate_sprite_lit(3)		Allegro	manual		  rotate_sprite_lit(3)

NAME
       rotate_sprite_lit - Rotates a sprite. Allegro game programming library.

SYNOPSIS
       #include	<allegro.h>

       void rotate_sprite_lit(BITMAP *bmp, BITMAP *sprite,

       int x, int y, fixed angle);

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.

SEE ALSO
       draw_lit_sprite(3),	    rotate_scaled_sprite_lit(3),	   ro-
       tate_sprite_v_flip_lit(3),	   rotate_scaled_sprite_v_flip_lit(3),
       pivot_sprite_lit(3),			   pivot_sprite_v_flip_lit(3),
       pivot_scaled_sprite_lit(3),	    pivot_scaled_sprite_v_flip_lit(3),
       itofix(3), exsprite(3)

Allegro				 version 4.4.2		  rotate_sprite_lit(3)

NAME | SYNOPSIS | DESCRIPTION | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=rotate_sprite_lit&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help