---
name: "SDL_RectToFRect"
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_RectToFRect"
---

# SDL\_RectToFRect(3)

Convert an SDL\_Rect to SDL\_FRect

## NAME

SDL\_RectToFRect - Convert an  **SDL\_Rect**\
  to  **SDL\_FRect**

## HEADER FILE

Defined in SDL3/SDL\_rect.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**SDL\_FORCE\_INLINE void SDL\_RectToFRect(const SDL\_Rect \*rect, SDL\_FRect \*frect);**

## FUNCTION PARAMETERS

- *rect*

  a pointer to an  **SDL\_Rect** .

- *frect*

  a pointer filled in with the floating point representation of **rect** .

## THREAD SAFETY

It is safe to call this function from any thread.

## AVAILABILITY

This function is available since SDL 3.2.0.
