|
RotateShape | |
RotateShape ShapeIndex, Angle#, Scaler# | |
Parameters: ShapeIndex = The Index of the shape you wish to rotate Angle# = The angle to rotate this shape Scaler# = The amount to scale this shape by |
|
Returns: NONE | |
RotateShape dynamically rotates and scales a shapes vertex. Shapes actually have two copies of the vertex buffers inside them, the 'original' and a 'rotated' version. 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 | RotateShapeXY | ScaleShape | ScaleShapeXY | ShiftShape : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |