That sounds like a fun project! Would taking something like the DOOM source code, and extracting the "3d engine" from that be a workable approach? Or in your vision of it how would you make the primitives?