|
GetFreeShape | ||
ShapeIndex = GetFreeShape() | ||
Parameters: NONE | ||
Returns: ShapeIndex = The Index of a shape that is free to be used |
||
The GetFreeShape function returns the index of a shape that is currently free for use. GetFreeShape doesn't allocate or reserve the index however, so if you called it twice in a row you'd get the same output. FACTS: * GetFreeShape will expand the media range for you, if all index are in use. So the command will always return a free index. However, we generally recommend using the New commands for dynamic media creation today. Which would be commands such as NewShape, NewConvexShape etc See Naming Conventions for more information on PlayBASIC command naming conventions Mini Tutorial: This example requests a free shape index, displays it's status before creating it, creates the shape, and displays it status again.
This example would output.
|
Related Info: | CreateConvexShape | CreateShape | DeleteShape | GetShapeStatus | NewConvexShape | NewShape | SaveShape | ShapeQuantity : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |