---
name: "al_get_opengl_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_opengl_texture_position"
---

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

Allegro 5 API

## NAME

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

## SYNOPSIS

-

  ```
  #include <allegro5/allegro_opengl.h>
  void al_get_opengl_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.

## SEE ALSO

[al\_get\_opengl\_texture\_size(3)](/al_get_opengl_texture_size/3.md)
