al_get_d3d_texture_position(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’… al_get_d3d_texture_position β€” Allegro 5 API

okay so bestie, welcome to the al_get_d3d_texture_position page from the Allegro 5 API πŸ’– this one is lowkey niche but highkey useful if you're messing with Direct3D textures, so let's get into it.


✨ SYNOPSIS ✨

#include <allegro5/allegro_direct3d.h>

void al_get_d3d_texture_position(ALLEGRO_BITMAP *bitmap, int *u, int *v)

πŸ¦‹ DESCRIPTION πŸ¦‹

So what this does is it returns the u/v coordinates for the top/left corner of the bitmap, but within the texture that's actually being used, and it gives them to you in pixels. That's the whole vibe. ✨

Parameters, bestie:

  • bitmap β€” the ALLEGRO_BITMAP you want to examine πŸ‘€
  • u β€” this pointer will hold the returned u coordinate
  • v β€” and this one will hold the returned v coordinate
not me writing u AND v like it's a matching set 😭 yes they're a pair, they always come together, it's giving iconic duo πŸ’…

πŸ‘‘ SEE ALSO πŸ‘‘


and that's the page!! this was the al_get_d3d_texture_position(3alleg5) entry from the Allegro reference manual πŸ’– tysm for reading, go forth and slay your textures, periodt βœ¨πŸŽ€πŸŒΈ

πŸ“¦ where this page comes from