d3d_model_wall

Adds a wall shape to the model.

Syntax:

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


Argument Description
ind The model index to add the wall to.
x1 The initial x coordinate of the wall.
y1 The initial y coordinate of the wall.
z1 The initial z coordinate of the wall.
x2 The opposite x coordinate of the wall.
y2 The opposite y coordinate of the wall.
z2 The opposite z coordinate of the wall.
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 wall of the specified size to the chosen model.


Example:

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

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


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