d3d_model_clear

Clears the model with the given index, removing all its primitives.

Syntax:

d3d_model_clear(ind)


Argument Description
ind The index of the model to be cleared.


Returns: N/A


Description

With this function you can clear all the primitives that have been added to a model. In this way you can keep the same model index, while changing the actual design of the model.


Example:

d3d_model_clear(model[2])

Clears the model indexed in the variable "model[2]", thus removing all its primitives


Back: 3D Models
Next: d3d_model_save
© Copyright YoYo Games Ltd. 2018 All Rights Reserved