I wrote this back in 1996 for IRIX. it originally used SGI's  'aux' library, but was later ported to glut. It was originally hosted on my Mindesign Limited page and earned me a place on Mark Kilgard's "OpenGL personalities" page back in the mid 90's.