How can you know that you don't need 100.000 lines?
Take the Povray-example.. I've no idea about the sizes of raytracers, but Povray is typically something that doesn't require a GUI or anything, it just loads a script, and outputs a BMP.
It has a rather good script-parser, and ofcourse truckloads of math.. I guess the commands used are typical for any language.. no typical C++-only stuff other than classes/pointers orso.
for the brave:
http://www.povray.org/redirect/www.povray.org/ftp/pub/povray/Official/Windows/povwin_s.zip
Take the Povray-example.. I've no idea about the sizes of raytracers, but Povray is typically something that doesn't require a GUI or anything, it just loads a script, and outputs a BMP.
It has a rather good script-parser, and ofcourse truckloads of math.. I guess the commands used are typical for any language.. no typical C++-only stuff other than classes/pointers orso.
for the brave:
http://www.povray.org/redirect/www.povray.org/ftp/pub/povray/Official/Windows/povwin_s.zip