pub unsafe extern "C" fn SDL_GL_SetSwapInterval(
    interval: c_int
) -> c_int
Expand description

\brief Set the swap interval for the current OpenGL context.

\param interval 0 for immediate updates, 1 for updates synchronized with the vertical retrace. If the system supports it, you may specify -1 to allow late swaps to happen immediately instead of waiting for the next retrace.

\return 0 on success, or -1 if setting the swap interval is not supported.

\sa SDL_GL_GetSwapInterval()