GL2PS is a C library providing high quality vector output for any OpenGL
application that can currently create PostScript (PS),
Encapsulated PostScript (EPS), Portable Document Format (PDF)
and Scalable Vector Graphics (SVG) files, as well as LaTeX files
for the text fragments.
From Ingo Feinerer, thank you!