Passing custom render loop methods

anonymous wrote on Monday, November 26, 2012:

Hi.I have a render loop method which is not necessarily located in the same block as the GLFW init stuff.So instead of using while loop as docs state I want to pass my loop method into a callback which will trigger that method on each frame.In GLUT I do it easily with
glutDisplayFunc(f);
In GLFW I tried :
glfwSetWindowRefreshCallback(f);

But the program exists without looping that method.
How do I do it ?

Thanks.