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

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

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(3alleg5)
