copied glut-based example into moomin