开发者

Best method to refresh display in OpenGL

开发者 https://www.devze.com 2023-03-31 14:35 出处:网络
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.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消