---
name: "SDL_ISPIXELFORMAT_FOURCC"
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_ISPIXELFORMAT_FOURCC"
---

# SDL\_ISPIXELFORMAT\_FOURCC(3)

A macro to determine if an SDL\_PixelFormat is a "FourCC" format.

## NAME

SDL\_ISPIXELFORMAT\_FOURCC - A macro to determine if an  **SDL\_PixelFormat**\
  is a "FourCC" format.

## HEADER FILE

Defined in SDL3/SDL\_pixels.h

## SYNOPSIS

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

**#define SDL\_ISPIXELFORMAT\_FOURCC(format)  /\* The flag is set to 1 because 0x1? is not in the printable ASCII range \*/ .BI** *((format)***&&***(SDL\_PIXELFLAG(format)***!=***1))*

## DESCRIPTION

This covers custom and other unusual formats.

Note that this macro double-evaluates its parameter, so do not use expressions with side-effects here.

## RETURN VALUE

Returns true if the format has alpha, false otherwise.

## THREAD SAFETY

It is safe to call this macro from any thread.

## AVAILABILITY

This macro is available since SDL 3.2.0.
