pub unsafe extern "C" fn gfxScreenSwapBuffers(
    scr: gfxScreen_t,
    hasStereo: bool
Expand description

Updates the configuration of the specified screen, swapping the buffers if double buffering is enabled.


  • scr - Screen ID (see gfxScreen_t)
  • hasStereo - For the top screen in 3D mode: true if the framebuffer contains individual images for both eyes, or false if the left image should be duplicated to the right eye.

Note: Previously rendered content will be displayed on the screen after the next VBlank. Note: This function is still useful even if double buffering is disabled, as it must be used to commit configuration changes. Only call this once per screen per frame, otherwise graphical glitches will occur since this API does not implement triple buffering.