Ported curve demo and glut.H