d3d_model_destroy(ind)
Argument | Description |
---|---|
ind | The index of the model to be destroyed. |
Returns: N/A
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.
d3d_model_destroy(model[2])
The above code will remove the model indexed by the variable "model[2]"from memory.