---
name: "SDL_GetRenderWindow"
section: "3"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_GetRenderWindow"
---

# SDL\_GetRenderWindow(3)

Get the window associated with a renderer.

## NAME

SDL\_GetRenderWindow - 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.
