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)
- Allegro5 and OpenGL. Problem with drawing Allegro primitives
- 2d camera
- Rotating Cube Problem
- Scaling look likes junk.
- tranformations with A5
- why is my code failing
- In full screen mode, the display stretches to full screen
- ak_create_display problem in Android
Other recent discussions:
- Isometric Sprites with Depth Buffer
- Quick Question about MSAA
- git format-patch: troubles with white space trailing
- how to make a game menu
- Bitmap Font doesn't draw any character after try to write a not defined char
- Coordinate systems and allegro transformations
- Can I Draw Scaled Text?
- [Feature request] flipable "image"
- Transforming
- Drawing 3D graphics to a bitmap smaller than the display.