 |
SpriteBatchSetTransform(Matrix3x2) Method |
Sets the transformation of the sprites that will be drawn after this method is called.
Note that the coordinate system goes from (0, 0) at top-left corner to (1, 1) at bottom right corner.
To rotate the sprite, set the destinationRectangle in the Draw command so that the center of the sprite will be at (0, 0).
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
Syntaxpublic void SetTransform(
Matrix3x2 transformMatrix
)
Parameters
- transformMatrix Matrix3x2
- Matrix
See Also