Ok. I'm on to one of the final pieces of the rendering engine puzzle, which is Z-Sorting. I need to Z-Sort all of the objects in the scene (before run-time, since the objects are created and loaded from a file), so that blending will work correctly, and eventually so I can use occlusion culling.
For starters, do I need to use a BSP system to do Z-Sorting? Or is there any way I could use a function like qsort() to sort the objects?