al_translate_transform
void al_translate_transform(ALLEGRO_TRANSFORM *trans, float x, float y)
Introduced in 5.0.0
Apply a translation to a transformation.
Parameters:
- trans - Transformation to alter
- x, y - Translation
See also: al_rotate_transform, al_scale_transform, al_build_transform
Examples: ex_gp2xwiz, ex_transform
Most helpful discussions:
- Views in allegro 5 (1)
- Complications when drawing FPS
- Transformations in allegro
- double precision for al_transform_coordinates?
- [A5] Fullscreen + keep 4:3 ratio
- ALLEGRO_TRANSFORM and Movement
- I don't understand how scrolling works
- Scaling doesn't work with transformation.
- Rotate text with transformations
- All bullets firing when I press my fire key
Other recent discussions:
- Attaching bitmaps to region of other bitmaps and how to get its screen coords.
- Transformations Tutorial
- A5 - Fullscreen in Linux Mint
- Bounding box collision problems.
- Tiled graphics problem
- Generating random combination of obstacles:Problem
- Problem with classes/ multiple inheritence
- Objects are moving?
- 2D side scrolling platformer: Facing problems with background/flat surface.
- [A5] Screen scrolling causes tile bitmap pixel misplacement