CmdRotateA
From MCS Wiki AVR
(Difference between revisions)
(Created page with "= <span class="f_Header">Action</span> = Apply a rotation in degrees to the current matrix <span style="font-family: Arial;"> </span> <span style="font-family: Arial;"...") |
|||
Line 33: | Line 33: | ||
= <span class="f_Header">See Also</span> = | = <span class="f_Header">See Also</span> = | ||
− | [[CMDROTATE]] | + | [[CmdRotate|CMDROTATE]] |
| |
Latest revision as of 23:11, 15 June 2015
Contents |
Action
Apply a rotation in degrees to the current matrix
Syntax
CmdRotateA angle
Remarks
angle |
Clockwise rotation angle, in degrees (0-360) |
See Also
Example
' Pseudocode
' To rotate the bitmap clockwise by 10 degrees with respect to the top left of the bitmap
Begin_G BITMAPS
CmdLoadIdentity
CmdRotate 10
CmdSetMatrix
Vertex2II 68, 28, 0, 0
' To rotate the bitmap counter clockwise by 33 degrees top left of the bitmap
Begin_G BITMAPS
CmdLoadIdentity
CmdRotate -33
CmdSetMatrix
Vertex2II 68, 28, 0, 0
' Rotating a 64 x 64 bitmap around its center
Begin_G BITMAPS
CmdLoadIdentity
CmdTranslate 65536 * 32, 65536 * 32
CmdRotate 90
CmdTranslate 65536 * -32, 65536 * -32
CmdSetMatrix
Vertex2II 68, 28, 0, 0
Languages | English |
---|