Hi, I'm working with OpenGL and QGLWidget, but I'd like to do some animations on rotation and zoom operations, so I'm trying to find some examples of how to do multithreaded drawings with OpenGL. At first sight, I wasn't able to find any examples on this subject in QtAssistant.

I guess I must share the QGLContext between the GUI and the animation thread, calling makeCurrent() and doneCurrent() at beginning/end of the animation, and waking up the thread each N seconds, where N is the time step between each frame, and swapping buffers. But I wonder how could I define a common interface for all my animations?