al_rotate_transform
void al_rotate_transform(ALLEGRO_TRANSFORM *trans, float theta)
Introduced in 5.0.0
Apply a rotation to a transformation.
Parameters:
- trans - Transformation to alter
- theta - Rotation angle
See also: al_translate_transform, al_scale_transform, al_build_transform
Examples: ex_gp2xwiz, ex_transform
Most helpful discussions:
- Complications when drawing FPS
- Transformations in allegro
- double precision for al_transform_coordinates?
- Rotate text with transformations
- A5 - Fullscreen in Linux Mint
- Detecting mouseover on isometric map
- al_wait_for_event won't catch the timer.
- Collision Detection with a rotating square.
- Pushing allegro performance (sprites per second) to its limits
- Pointers and arrays.
Other recent discussions:
- Agui positing
- rotating primitives?
- [A5] al_draw_bitmap() vs al_draw_rotated_bitmap()
- Rotating square with mouse
- Rotating Text
- 2d Camera - translate, rotate, and zoom
- Bitmap Draw Stacking
- fastest way to plot pixels A5
- Understanding linear transformations and perspective distortions?
- Can the clipping rectangle be transformed?