Does the glutTimerFunction work on a thread separate from the main thread when it is executed? Used to call the function that encapsulates it, when it calls that parent function it does not immediately get placed in a stack. I mean the line proceeding glutTimerFunc is then executed before the next call to the parent function is executed. I thought in a recursive function the line proceeding the call to the function is not executed until the base case is satisfied. Why is this or how is this working in the background? What is the voodoo behind the glutTimerFunction?
Edited by greenzone, 15 October 2013 - 10:11 AM.