ALLEGRO_TRANSFORM
typedef struct ALLEGRO_TRANSFORM ALLEGRO_TRANSFORM;
Introduced in 5.0.0
Defines the generic transformation type, a 4x4 matrix. 2D transforms use only a small subsection of this matrix, namely the top left 2x2 matrix, and the right most 2x1 matrix, for a total of 6 values.
Fields:
- m - A 4x4 float matrix
Examples: ex_gp2xwiz, ex_prim, ex_threads, ex_transform
Most helpful discussions:
- Drawing Scaled Bitmaps Or Using Transformations (1)
- [A5] Copying a bitmap from a transformed screen (1)
- [a5] best way to scale/stretch screen? (1)
- FPS camera in Allegro 5
- Hey who want's to contribute to an open source project? ;D
- Complications when drawing FPS
- Setting up projection and camera matrices correctly for bitmaps in 3D
- [A5] Drawing a textured trapezoid (2D)
- Transformations in allegro
- Is composing horz + vert shear the same thing as shearing both?
Other recent discussions:
- double precision for al_transform_coordinates?
- Tonight, there will be shadows
- [A5] Fullscreen + keep 4:3 ratio
- ALLEGRO_TRANSFORM and Movement
- 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