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

# ALLEGRO\_BITMAP\_WRAP(3alleg5)

Allegro 5 API

## NAME

ALLEGRO\_BITMAP\_WRAP - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  typedef enum ALLEGRO_BITMAP_WRAP {
  ```

## DESCRIPTION

Controls the how the pixel color is determined from a texture querying the texture coordinates are outside the usual bounds.

- •

  ALLEGRO\_BITMAP\_WRAP\_DEFAULT - The default behavior. This corresponds to ALLEGRO\_BITMAP\_WRAP\_REPEAT when using the primitives addon and ALLEGRO\_BITMAP\_WRAP\_CLAMP otherwise.

- •

  ALLEGRO\_BITMAP\_WRAP\_REPEAT - The texture coordinates get shifted to the opposite edge that they go past.

- •

  ALLEGRO\_BITMAP\_WRAP\_CLAMP - The texture coordinates get clamped to the edges that they go past.

- •

  ALLEGRO\_BITMAP\_WRAP\_MIRROR - The texture coordinates get mirrored across the edges that they go past.
