SDL_GetRenderWindow - Man Page

Get the window associated with a renderer.

Header File

Defined in SDL3/SDL_render.h

Synopsis

#include "SDL3/SDL.h"

SDL_Window * SDL_GetRenderWindow(SDL_Renderer *renderer);

Function Parameters

renderer

the renderer to query.

Return Value

( SDL_Window
*) Returns the window on success or NULL on failure; call SDL_GetError () for more information.

Thread Safety

It is safe to call this function from any thread.

Availability

This function is available since SDL 3.2.0.

Info

SDL 3.2.2 Simple Directmedia Layer SDL3 FUNCTIONS