al_set_shader_float(3)

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

πŸ’… al_set_shader_float(3) β€” bestie edition ✨

okay so this one’s from the Library Functions Manual, and it’s part of the Allegro 5 API 🌸. Meet al_set_shader_float(3), the lil function that handles a float uniform situation. Yes queen, we’re getting into shader values.

🌸 NAME 🌸

al_set_shader_float β€” Allegro 5 API πŸ’–

✨ SYNOPSIS ✨

#include <allegro5/allegro.h>

bool al_set_shader_float(const char *name, float f)

πŸ’– DESCRIPTION πŸ’–

This sets a float uniform of the target bitmap’s shader. That’s the whole vibe: you pass a name and a float f, and it goes looking for that uniform on the shader attached to the target bitmap.

It returns true on success πŸŽ€. Otherwise it returns false β€” for example, if the uniform with that name does not exist in the shader 😭. So yeah, false is your β€œbestie, that name was not found” signal in that case.

πŸ¦‹ SINCE πŸ¦‹

5.1.0 β€” iconic since then, no cap ⭐

πŸŽ€ SEE ALSO πŸŽ€


πŸ’– Sign-off tea: source/version: the Allegro reference manual; date: not printed on this page, bestie. al_set_shader_float(3) out. πŸŽ€

πŸ“¦ 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