I’m modifying an existing application in C++ that uses GLUT (so I can’t get rid of GLUT, which seems to be the consensus). I’m trying to make it into a game-like thing so I want to add stuff to the loop. It seems that the way to do this is to use glutTimerFunc(), is that correct? (I can’t find all that much information on it).
I’m modifying an existing application in C++ that uses GLUT (so I can’t get
Share
Here’s a nice link that describes the glut callbacks, what they do, and what the parameters are: http://www.opengl.org/resources/libraries/glut/spec3/node113.html
I haven’t worked on a glut application for a few years, but from what I remember, I used glutTimerFunc to call my game update logic as you suggested.