al_set_shader_float(3)
π
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 π
al_use_shader(3)β go peek at this one too π«Ά
π 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