Wiki Page Content

Revision 12 as of 2015-12-29 18:40:37

Clear message

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. See this blog post for more info.


CategoryAPI, CategoryVideo

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