Wiki Page Content

Differences between revisions 10 and 11
Revision 10 as of 2011-03-27 20:39:16
Size: 543
Editor: SheenaSmith
Comment: minor change for consistency - update to change
Revision 11 as of 2015-09-15 14:43:13
Size: 764
Editor: urkle
Comment: Add note about OS X framebuffer behavior.
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. [[http://renderingpipeline.com/2012/05/nsopenglcontext-flushbuffer-might-not-do-what-you-think/|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 OS X make sure you bind 0 to the draw framebuffer before swapping the window, otherwise nothing will happen. more info


CategoryAPI, CategoryVideo

None: SDL_GL_SwapWindow (last edited 2020-03-29 15:38:46 by ChrisBush)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit