DarkBASIC Professional Help File

DX11 CLONE OBJECT

Creates a new object that is an exact copy of the given object.
As opposed to object instances, cloned objects have their own vertex data that can be independantly altered.
As such they will use a draw call per mesh they include and will thus perform more appropriate than instances for depth sorting since they can be
mixed with other objects if the sorting mode is set to premiere depth over render state changes.

Syntax

    Return Dword = DX11 CLONE OBJECT(sourceObject)

Parameters

    sourceObject

> Dword
> The source object to create a clone of. If this object is an instance, its parent object will be cloned.

Returns

The created object clone.

See also

OBJECT Functions Menu
DX11 Function Categories