Added SDL_SetWindowSurfaceVSync() and SDL_GetWindowSurfaceVSync()
Fixes https://github.com/libsdl-org/SDL/issues/9347
This commit is contained in:
parent
7c75801571
commit
dfe4445214
9 changed files with 106 additions and 21 deletions
|
@ -2142,6 +2142,8 @@ extern SDL_DECLSPEC int SDLCALL SDL_AddVulkanRenderSemaphores(SDL_Renderer *rend
|
|||
/**
|
||||
* Toggle VSync of the given renderer.
|
||||
*
|
||||
* When a renderer is created, vsync defaults to SDL_RENDERER_VSYNC_DISABLED.
|
||||
*
|
||||
* \param renderer The renderer to toggle
|
||||
* \param vsync the vertical refresh sync interval, 1 to synchronize present
|
||||
* with every vertical refresh, 2 to synchronize present with
|
||||
|
@ -2168,7 +2170,7 @@ extern SDL_DECLSPEC int SDLCALL SDL_SetRenderVSync(SDL_Renderer *renderer, int v
|
|||
*
|
||||
* \param renderer The renderer to toggle
|
||||
* \param vsync an int filled with the current vertical refresh sync interval.
|
||||
* See SDL_SetRenderVSync for the meaning of the value.
|
||||
* See SDL_SetRenderVSync() for the meaning of the value.
|
||||
* \returns 0 on success or a negative error code on failure; call
|
||||
* SDL_GetError() for more information.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue