al_set_shader_matrix(3alleg5)

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

πŸ’– al_set_shader_matrix(3alleg5) πŸ’–

okay bestie, welcome to the Allegro 5 API corner of the manual where we make shaders do the thing. no cap, this one is short but lowkey iconic.


✨ NAME ✨

al_set_shader_matrix β€” Allegro 5 API πŸ¦‹


🌸 SYNOPSIS 🌸

#include <allegro5/allegro.h>

bool al_set_shader_matrix(const char *name,
   const ALLEGRO_TRANSFORM *matrix)

πŸ’… DESCRIPTION πŸ’…

so basically, this function sets a matrix uniform of the current target bitmap's shader. like, you're sliding a whole transformation matrix into the shader's uniform slot and it's giving main character energy. ✨

it returns true on success. but if things don't go your way, it returns false β€” for example, if the uniform by that name does not exist in the shader. πŸ’€ not the shader ghosting your uniform name, but okay.


πŸŽ€ SINCE πŸŽ€

5.1.0 β€” periodt, this has been around for a minute. πŸ’œ


🌈 SEE ALSO 🌈


and that's the whole vibe, bestie. Allegro reference manual β€” al_set_shader_matrix(3alleg5). stay slaying those uniforms. πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from