ported example to GLFW-b / glfw-3