Add SDL_RenderGetWindow() API to get the window associated with a renderer (#5440)

Add SDL_RenderGetWindow() API to get the window associated with a renderer
This commit is contained in:
Sylvain Becker 2022-03-23 17:07:56 +01:00 committed by GitHub
parent 57df1dfce6
commit c23a7ad38a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 18 additions and 0 deletions

View file

@ -261,6 +261,15 @@ extern DECLSPEC SDL_Renderer * SDLCALL SDL_CreateSoftwareRenderer(SDL_Surface *
*/
extern DECLSPEC SDL_Renderer * SDLCALL SDL_GetRenderer(SDL_Window * window);
/**
* Get the window associated with a renderer.
*
* \param renderer the renderer to query
* \returns the window on success or NULL on failure; call
* SDL_GetError() for more information.
*/
extern DECLSPEC SDL_Window * SDLCALL SDL_RenderGetWindow(SDL_Renderer *renderer);
/**
* Get information about a rendering context.
*