b2d_shape_duplicate(id)

From ENIGMA
Jump to navigation Jump to search

Description

Duplicates the given shape and returns the index of the copy.

Parameters

Parameter Data Type Description
id integer index of the shape to duplicate

Return Values

integer: Returns the index of the duplicated shape.

Example Call

// demonstrates create a new shape
mynewshape = b2d_shape_duplicate(myorigshape);