D3d draw floor

Explanation
A floor (unless transformed) will always stand perpendicular to the y-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 some sample code that would draw a floor similar to the middle one in the above diagram. // draw a slanted floor. d3d_draw_floor(x, y, 0, x+24, y+32, 16, -1, 1, 1)