d3d_model_destroy

Destroys the model with the given index, freeing its memory.

Syntax:

d3d_model_destroy(ind)


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


Returns: N/A


Description

This function must be called when you no longer need the specified model to remove it from memory. If you fail to remove models when they are no longer needed, or if you use the same variable to index a new model without destroying that which was previously indexed, you may run into problems with slow down and the eventual crashing of your game.


Example:

d3d_model_destroy(model[2])

The above code will remove the model indexed by the variable "model[2]"from memory.


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