D3d draw cone

Explanation
The point end of the cone is at the z2 coordinate. If you wanted to make the cone point downwards, you would have defined z2 to be less than z1. If you think like that, then you can apply the same techniques as used in. All the parameter details for drawing a block are applicable to drawing a cone.

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. Repeating a texture that tiles well can be used to cover large areas without losing definition.

Example
d3d_draw_cone(0,16,16,16,16,0,spr_texture,5,5,true,16) The additional parameters in the cone are closed and steps. Steps is the number of rotational steps used to draw the round part of the cone. Because (most) 3d rendering software can not handle curved surfaces, we simply approximate a curved surface by drawing many flat surfaces. For example if you put steps as 5, the top view of your cone would look like this: Example code for drawing a red cone like looking like the diagram above: // set the drawing colour (c_red) // draw the cone. -1 for texture (no texture). tex repeat is irrelevant d3d_draw_cone(0, 32, 0, 32, 0, 32, -1, 0, 0, 1, 24)