al_set_shader_float_vector(3alleg5)

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

πŸ’– 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 🌈


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