---
name: "al_identity_transform"
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_identity_transform"
---

# al\_identity\_transform(3)

Allegro 5 API

## NAME

al\_identity\_transform - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  void al_identity_transform(ALLEGRO_TRANSFORM *trans)
  ```

## DESCRIPTION

Sets the transformation to be the identity transformation. This is the default transformation. Use [al\_use\_transform(3)](/al_use_transform/3.md) on an identity transformation to return to the default.

-

  ```
  ALLEGRO_TRANSFORM t;
  al_identity_transform(&t);
  al_use_transform(&t);
  ```

*Parameters:*

- •

  trans - Transformation to alter

## SEE ALSO

[al\_translate\_transform(3)](/al_translate_transform/3.md), [al\_rotate\_transform(3)](/al_rotate_transform/3.md), [al\_scale\_transform(3)](/al_scale_transform/3.md)
