Reputation: 11
I've noticed that functions don't have to be registered, as the normal callbacks are included in the GLEventListener interface. However I can't seem to find glutIdleFunc() as a method of the GLUT class, or anything on the internet to indicate an alternative (as of yet). Thanks in advance for any help
Upvotes: 0
Views: 226
Reputation: 768
There is nothing in JOGL called an "idle callback" like what GLUT has. The idea of the idle callback is to run something when the events are done processing (resize, keypress, etc). People usually used it to render new frames.
The similar concept in JOGL is GLEventListener. These are callbacks to draw frames. You ask (or tell) JOGL to render frames at a certain rate and it will invoke your event listener.
Upvotes: 1