D3d draw ellipsoid

Explanation
To not use a texture for this primitive, put -1 in place of texid, else provide the id of a texture. 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, I usually put a 0. 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
d3d_draw_ellipsoid(0,16,16,16,16,0,spr_texture,5,5,16) The additional parameter for a sphere is steps. Steps is the number of rotational steps used to draw the ellipsoid. 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 your ellipsoid would look something like this: Here is some sample code that could be used to draw a skybox around the camera in a fps. /* draw the "skybox" relative to the camera's position to give it the impression of massiveness. also have a larger portion of the "skybox" below the camera to give a more realistic effect.*/ d3d_draw_ellipsoid(camera.x-3000, camera.y-3000, -5000, camera.x+3000, camera.y+3000, 1000, texture_sky, 5, 5, 18); Cheese Bags are also helpful in your quest to the fudge queen.