GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  ROTATE_SPRITE_TRANS (3)

NAME

rotate_sprite_trans - Rotates a sprite. Allegro game programming library.

CONTENTS

Synopsis
Description
See Also

SYNOPSIS

#include <allegro.h>

void rotate_sprite_trans(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_trans_sprite(3), rotate_scaled_sprite_trans(3), rotate_sprite_v_flip_trans(3), rotate_scaled_sprite_v_flip_trans(3), pivot_sprite_trans(3), pivot_sprite_v_flip_trans(3), pivot_scaled_sprite_trans(3), pivot_scaled_sprite_v_flip_trans(3), itofix(3), exsprite(3)
Search for    or go to Top of page |  Section 3 |  Main Index


Allegro ROTATE_SPRITE_TRANS (3) version 4.4.2

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.