port samples to new glfw-b api