title: C : display every x milliseconds (OpenGL)
body: <p>I've got a C / C++ (only main file is .cpp so I can use OpenGL) program, I use OpenGL (GLUT, GLUI) in it. It already displays something but I want it to move every x ms. I render some circles (known speed and coordinates) and I have already made the function that computes it's next position knowing the refresh rate.</p>
  
  <p>I've tried to put my display callback in a timer callback but the program just freezed.</p>
  
  <p>What can I do in order to run the display callback every x ms ?</p>