|
||
Drawing basic shapesA number of functions exist for drawing basic shapes, like blocks and walls. Note that these shapes also work correctly with backface culling on.
d3d_draw_block(x1, y1, z1, x2, y2, z2, texid, hrepeat, vrepeat) Draws a block in the current color with the indicated opposite corners using the indicated texture. Use -1 to not use a texture. hrepeat indicates how often the texture must be repeated along the horizontal edge of each face. vrepeat does the same for the vertical edge. The following piece of code draws two blocks:
|
||
|
||
|
You can also read this manual on one single long page (± 1.5 mb)
Also available in: ![]() Download helpfile
|
||





