I just came across the "Lesson 4: Using DirectX functions" part in the manual. I'm wondering if anyone has explored any of these functions...

My guess is that draw_line3d would have to somehow utilize a directx function anyway, and that it would probably be more efficient than anything I could come up with. But maybe it's worth a try?