al_get_shader_platform(3)

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

🌸 NAME 🌸

okay bestie, we’re in the Allegro reference manual, and this page is all about:

  • al_get_shader_platform β€” Allegro 5 API. That’s the function name, periodt. πŸ’…

✨ SYNOPSIS ✨

#include <allegro5/allegro.h>

ALLEGRO_SHADER_PLATFORM al_get_shader_platform(ALLEGRO_SHADER *shader)

πŸ’– DESCRIPTION πŸ’–

Bestie, this one is simple in the best way: it returns the platform the shader was created with. That’s either ALLEGRO_SHADER_HLSL or ALLEGRO_SHADER_GLSL β€” those are the two options, no cap. 🫢

You hand it your ALLEGRO_SHADER *shader, and it gives you back the ALLEGRO_SHADER_PLATFORM. Shader platform vibe check: complete. ✨

πŸŽ€ SINCE πŸŽ€

5.1.6 β€” she’s been here since 5.1.6, and honestly? iconic. πŸ‘‘

πŸ¦‹ SEE ALSO πŸ¦‹


Sign-off from the Allegro reference manual: al_get_shader_platform has been around since 5.1.6, and the original page didn’t print a date, so that’s the timestamp tea. πŸ«ΆπŸ’–

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