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

# al\_identity\_transform(3alleg5)

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(3alleg5) 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(3alleg5), al\_rotate\_transform(3alleg5), al\_scale\_transform(3alleg5)
