al_set_shader_float_vector(3alleg5)
π al_set_shader_float_vector β Allegro 5 API π
okay bestie, gather round, because we're about to talk about feeding floaty little numbers into your shader β¨ this one lives in the Allegro 5 API, so you already know it's giving graphics-girl realness π
β¨ NAME β¨
al_set_shader_float_vector β the Allegro 5 API function that yeets a whole vector of float values into a shader uniform, no cap π
πΈ SYNOPSIS πΈ
#include <allegro5/allegro.h>
bool al_set_shader_float_vector(const char *name,
int num_components, const float *f, int num_elems)
yes queen, that's a bool return, we love a function that tells you if it worked π«Ά
π¦ DESCRIPTION π¦
It's literally the exact same energy as al_set_shader_int_vector(3alleg5), except β and this is the whole plot twist β all the values are float instead of int. that's it. that's the vibe. floats, not ints. periodt π
β SINCE β
5.1.0 β she's been here since 5.1.0 and she's been iconic ever since π
π SEE ALSO π
al_set_shader_int_vector(3alleg5)β the int-flavoured sibling πal_use_shader(3alleg5)β because like, you gotta actually use the shader first, bestie π
fr fr, don't forget the int version exists if you're not in a floaty mood. iykyk π
and that's the whole page, mwah π this lil writeup comes to you straight from the Allegro reference manual (source + version energy: Allegro 5, section 3alleg5, and the date's whatever the manual says it is, we're not gonna pretend we know π) β go set some floats, main character π§β¨π
π¦ where this page comes from
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms