I have a simple OpenGl scene with objects, and a function called by a timer every 开发者_JAVA百科1/30 secs to move objects in the scene. What's the best method to tell OpenGl to refresh the screen ? I am not using double buffering.
You should definitely use double buffering (also for performance reasons). The canonical way to refresh a scene in OpenGL is to redraw the whole thing.
精彩评论