---
name: "al_get_d3d_texture_position"
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_d3d_texture_position"
---

# al\_get\_d3d\_texture\_position(3)

Allegro 5 API

## NAME

al\_get\_d3d\_texture\_position - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro_direct3d.h>
  void al_get_d3d_texture_position(ALLEGRO_BITMAP *bitmap, int *u, int *v)
  ```

## DESCRIPTION

Returns the u/v coordinates for the top/left corner of the bitmap within the used texture, in pixels.

*Parameters:*

- •

  bitmap - ALLEGRO\_BITMAP to examine

- •

  u - Will hold the returned u coordinate

- •

  v - Will hold the returned v coordinate

## SEE ALSO

[al\_get\_d3d\_texture\_size(3)](/al_get_d3d_texture_size/3.md)
