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
In GLFW I tried :

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