d3d_model_floor

Adds a floor shape to the model.

Syntax:

d3d_model_floor(ind, x1, y1, z1, x2, y2, z2, hrepeat, vrepeat)


Argument Description
ind The model index to add the floor to.
x1 The initial x coordinate of the floor.
y1 The initial y coordinate of the floor.
z1 The initial z coordinate of the floor.
x2 The opposite x coordinate of the floor.
y2 The opposite y coordinate of the floor.
z2 The opposite z coordinate of the floor.
hrepeat Amount of horizontal repetitions for the texture.
vrepeat Amount of vertical repetitions for the texture.


Returns: N/A


Description

This function will add a floor of the specified size to the chosen model.


Example:

model[1] = d3d_model_create();
d3d_model_floor(model[1], 0, 0, 0, 500, 500, 0, 10, 10);

The above code creates a model and adds a floor to it.


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