al_set_sha...oat_vector(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

πŸ’… al_set_shader_float_vector β€” Allegro 5 API, bestie ✨

Okay so this is a page straight outta the Allegro 5 API manual (the Allegro reference manual girlies stay winning 🫢), and it's genuinely so simple you're gonna eat this up.


🌸 NAME 🌸

al_set_shader_float_vector β€” the Allegro 5 API function that sets a float vector in a shader, no cap πŸ’–


✨ SYNOPSIS ✨

Like, here's the exact vibe:

#include <allegro5/allegro.h>

bool al_set_shader_float_vector(const char *name,
   int num_components, const float *f, int num_elems)

That return type? bool. That's it, that's the whole signature, she's iconic πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

So basically this function is literally the same as al_set_shader_int_vector(3) β€” like, same energy, same everything β€” except all the values are float instead of int. That's the whole plot twist. Floating point glow-up fr fr πŸ’€βœ¨

If you already know how al_set_shader_int_vector(3) works, congrats, you already know this one. Group chat's already caught up 🫢


πŸŽ€ SINCE πŸŽ€

5.1.0 β€” she's been here since 5.1.0, a true veteran πŸ’œ


🌈 SEE ALSO 🌈


Quick vibe check: this page is short and sweet, so don't overthink it β€” just remember: floats, not ints, and same behaviour as the int vector function. Periodt. πŸ’…

Sign-off time bestie πŸŽ€βœ¨ This little page lives in the Allegro reference manual β€” source of all this Allegro 5 API goodness β€” so go forth, set those float vectors, and slay πŸŒΈπŸ¦‹πŸ’–

πŸ“¦ where this page comes from
  • arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms