Skip to content

Instantly share code, notes, and snippets.

@anunyin
Created September 18, 2013 01:56
Show Gist options
  • Save anunyin/6603453 to your computer and use it in GitHub Desktop.
Save anunyin/6603453 to your computer and use it in GitHub Desktop.
SDL2: Changing Resolution during Runtime
SDL_DestroyWindow(windowHandle);
windowHandle = SDL_CreateWindow("Window Title", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, newWidth, newHeight, SDL_WINDOW_OPENGL);
SDL_GL_MakeCurrent(windowHandle, windowContext);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment