|
Size: 788
Comment: Improved linking a bit.
|
Size: 792
Comment: Fixed OS name.
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 25: | Line 25: |
| On OS X make sure you bind 0 to the draw framebuffer before swapping the window, otherwise nothing will happen. See [[http://renderingpipeline.com/2012/05/nsopenglcontext-flushbuffer-might-not-do-what-you-think/|this blog post]] for more info. | On Mac OS X make sure you bind 0 to the draw framebuffer before swapping the window, otherwise nothing will happen. See [[http://renderingpipeline.com/2012/05/nsopenglcontext-flushbuffer-might-not-do-what-you-think/|this blog post]] for more info. |
SDL_GL_SwapWindow
Use this function to update a window with OpenGL rendering.
Syntax
void SDL_GL_SwapWindow(SDL_Window* window)
Function Parameters
window |
the window to change |
Code Examples
You can add your code example here
Remarks
This is used with double-buffered OpenGL contexts, which are the default.
On Mac OS X make sure you bind 0 to the draw framebuffer before swapping the window, otherwise nothing will happen. See this blog post for more info.
