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

# SDL\_SurfaceFlags(3type)

The flags on an SDL\_Surface .

## NAME

SDL\_SurfaceFlags - The flags on an  **SDL\_Surface** .

## HEADER FILE

Defined in SDL3/SDL\_surface.h

## SYNOPSIS

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

**typedef Uint32 SDL\_SurfaceFlags;** **#define SDL\_SURFACE\_PREALLOCATED    0x00000001u /\*\*\< Surface uses preallocated pixel memory \*/** **#define SDL\_SURFACE\_LOCK\_NEEDED     0x00000002u /\*\*\< Surface needs to be locked to access pixels \*/** **#define SDL\_SURFACE\_LOCKED          0x00000004u /\*\*\< Surface is currently locked \*/** **#define SDL\_SURFACE\_SIMD\_ALIGNED    0x00000008u /\*\*\< Surface uses pixel memory allocated with SDL\_aligned\_alloc() \*/**

## DESCRIPTION

These are generally considered read-only.

## AVAILABILITY

This datatype is available since SDL 3.2.0.
