rotate_sprite
Rotates a sprite.
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.
Related Discussions
The following threads each have code containing this keyword:
Note: You can click on the numbers to jump directly to the posts that reference this page.
Related Projects
The following projects include source code containing this keyword: