D3d draw wall

Explanation
A wall (unless transformed) will always stand perpendicular to the z plane.

Even if you don't use a texture, you must fill in the hrepeat and vrepeat parameters. If you are not using a texture, it does not matter what value you enter. If however you are using a texture, set vrepeat to how many times the texture should be repeated along the horizontal edges of faces, and hrepeat to how many times the texture should be repeated along the vertical edges of faces. Repeating a texture that tiles well can be used to cover large areas without losing definition.

Example
Here is a sample code. It would draw 2 walls forming a "+" shape. // draw the "-" part of the cross. d3d_draw_wall(x-16, y, 0, x+16, y, 32, texture_wall, 1, 1) // draw the "|" part of the cross. d3d_draw_wall(x, y-16, 0, x, y+16, 32, texture_wall, 1, 1)