---
name: "al_store_state"
section: "3alleg5"
platform: "linux"
package: "allegro5-doc"
version: "2:5.2.10.1+dfsg-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/al_store_state/3alleg5"
---

# al\_store\_state(3alleg5)

Allegro 5 API

## NAME

al\_store\_state - Allegro 5 API

## SYNOPSIS

-

  ```
  void al_store_state(ALLEGRO_STATE *state, int flags)
  ```

## DESCRIPTION

Stores part of the state of the current thread in the given ALLEGRO\_STATE(3alleg5) object. The flags parameter can take any bit-combination of these flags:

- •

  ALLEGRO\_STATE\_NEW\_DISPLAY\_PARAMETERS - new\_display\_format, new\_display\_refresh\_rate, new\_display\_flags

- •

  ALLEGRO\_STATE\_NEW\_BITMAP\_PARAMETERS - new\_bitmap\_format, new\_bitmap\_flags

- •

  ALLEGRO\_STATE\_DISPLAY - current\_display

- •

  ALLEGRO\_STATE\_TARGET\_BITMAP - target\_bitmap

- •

  ALLEGRO\_STATE\_BLENDER - blender

- •

  ALLEGRO\_STATE\_TRANSFORM - current\_transformation

- •

  ALLEGRO\_STATE\_PROJECTION\_TRANSFORM - current\_projection\_transformation

- •

  ALLEGRO\_STATE\_NEW\_FILE\_INTERFACE - new\_file\_interface

- •

  ALLEGRO\_STATE\_BITMAP - same as ALLEGRO\_STATE\_NEW\_BITMAP\_PARAMETERS and ALLEGRO\_STATE\_TARGET\_BITMAP

- •

  ALLEGRO\_STATE\_ALL - all of the above

## SEE ALSO

al\_restore\_state(3alleg5), ALLEGRO\_STATE(3alleg5)
