al_use_transform
void al_use_transform(const ALLEGRO_TRANSFORM *trans)
Introduced in 5.0.0
Sets the transformation to be used for the the drawing operations on the target bitmap (each bitmap maintains its own transformation). Every drawing operation after this call will be transformed using this transformation. Call this function with an identity transformation to return to the default behaviour.
This function does nothing if there is no target bitmap.
Parameters:
- trans - Transformation to use
See also: al_get_current_transform, al_transform_coordinates
Examples: ex_gp2xwiz, ex_prim, ex_threads, ex_transform
Most helpful discussions:
- [A5] Copying a bitmap from a transformed screen (1)
- A5 Displays (Resize/Stretching) (1)
- FPS camera in Allegro 5
- Allegro 5.2.2 released!
- Complications when drawing FPS
- Setting up projection and camera matrices correctly for bitmaps in 3D
- Transformations in allegro
- [A5] Fullscreen + keep 4:3 ratio
- ALLEGRO_TRANSFORM and Movement
- I don't understand how scrolling works
Other recent discussions:
- Scaling doesn't work with transformation.
- Resizing the game
- Rotate text with transformations
- All bullets firing when I press my fire key
- 3D with Allegro 5
- Combining Allegro 5.1.8 with OpenGL culling problems
- rotating animated sprites
- Allegro, Direct 3D, and OpenGL - A tale of dumb woe
- [A5] What's the current, proper way to use both 2-D and 3-D functions
- Drawing Scaled Bitmaps Or Using Transformations