Loads the model from the indicated file name.


d3d_model_load(ind, fname)

Argument Description
ind The index of the model to be loaded.
fname The name of the file to load the model from.

Returns: N/A


With this function you can load a saved model into the indexed model from a text file previously created with the d3d_model_save() function. If a model was previously defined for this index then that model information will be over-written by the loaded one.


model[2] = d3d_model_create();
d3d_model_load(model[2], "Terrain_Model.txt")

Loads the model stored previously in a text file into the model indexed in the variable "model[2]".

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