|
RotateShapeXY | |
RotateShapeXY ShapeIndex, Angle#, ScaleX#, ScaleY# | |
Parameters: ShapeIndex = The Index of the shape you wish to rotate Angle# = The angle to rotate this shape ScaleX# = The amount to scale this shape in the X axis ScaleY# = The amount to scale this shape in the Y axis |
|
Returns: NONE | |
RotateShapeXY dynamically rotates and scales a shapes vertex and is the sister command to RotateShape. The only difference being that this version allows the vertex to be scale on X and Y axis independently. Shapes actually have two copies of the vertex buffers inside them, the 'original' and a 'rotated' versions. So rotating the shape doesn't permanently change the shapes original vertex, rather the transformed originals vertex are stored in the rotated buffer for display and collision. FACTS: * When a shape is rotated, the rotation doesn't damage the shapes original vertex. Mini Tutorial: This example creates a convex shape, then rotates and draws it.
This example outputs, |
Related Info: | DrawShape | RefreshShape | RotateShape | ScaleShape | ScaleShapeXY | ShiftShape : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |