Note that once you call glXSwapBuffers(), any further drawing to the given window is suspended until after the buffers have been swapped. All renderers bound to the window in question continue to have the correct idea of the front buffer and the back buffer. The glXSwapBuffers() function takes a display and a window as input-pixmaps do not support buffer swapping-and swaps the front and back buffers in the drawable. GlXSwapBuffers() or, when using the widget, the convenience function This sort of action is common in OpenGL programs however, swapping buffers is a window-related function, not a rendering function therefore, you cannot do it directly with OpenGL. In OpenGL, the displayed buffer is called the front buffer, and the undisplayed buffer is called the back buffer. A double-buffered animation displays one buffer while drawing into another (undisplayed) buffer then swaps the displayed buffer with the other.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |