---
name: "SDL_FlipSurface"
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_FlipSurface"
---

# SDL\_FlipSurface(3)

Flip a surface vertically or horizontally.

## NAME

SDL\_FlipSurface - Flip a surface vertically or horizontally.

## HEADER FILE

Defined in SDL3/SDL\_surface.h

## SYNOPSIS

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

**bool SDL\_FlipSurface(SDL\_Surface \*surface, SDL\_FlipMode flip);**

## FUNCTION PARAMETERS

- *surface*

  the surface to flip.

- *flip*

  the direction to flip.

## RETURN VALUE

Returns true on success or false on failure; call

**SDL\_GetError** () for more information.

## THREAD SAFETY

This function is not thread safe.

## AVAILABILITY

This function is available since SDL 3.2.0.
