---
name: "al_get_display_orientation"
section: "3"
platform: "linux"
package: "allegro"
version: "5.2.11.3-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/al_get_display_orientation"
---

# al\_get\_display\_orientation(3)

Allegro 5 API

## NAME

al\_get\_display\_orientation - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  int al_get_display_orientation(ALLEGRO_DISPLAY* display)
  ```

## DESCRIPTION

Return the display orientation, which can be one of the following:

- •

  ALLEGRO\_DISPLAY\_ORIENTATION\_UNKNOWN

- •

  ALLEGRO\_DISPLAY\_ORIENTATION\_0\_DEGREES

- •

  ALLEGRO\_DISPLAY\_ORIENTATION\_90\_DEGREES

- •

  ALLEGRO\_DISPLAY\_ORIENTATION\_180\_DEGREES

- •

  ALLEGRO\_DISPLAY\_ORIENTATION\_270\_DEGREES

- •

  ALLEGRO\_DISPLAY\_ORIENTATION\_FACE\_UP

- •

  ALLEGRO\_DISPLAY\_ORIENTATION\_FACE\_DOWN

## SINCE

5\.1.0
