al_get_shader_platform(3alleg5)
β¨ al_get_shader_platform β¨
okay bestie, welcome to the Allegro 5 API manual π this one's a lil baby page but it's lowkey iconic, iykyk. it's from the Allegro reference manual, section 3alleg5, and honestly? she's short, she's sweet, she's giving "one job and she does it" energy. π
πΈ NAME πΈ
al_get_shader_platform β Allegro 5 API π«Ά
π SYNOPSIS π
like, here's how you call her:
#include <allegro5/allegro.h>
ALLEGRO_SHADER_PLATFORM al_get_shader_platform(ALLEGRO_SHADER *shader)
see how she takes one lil shader pointer and hands you back an ALLEGRO_SHADER_PLATFORM? main character behaviour fr fr. π
π¦ DESCRIPTION π¦
so basically, bestie: this function tells you which platform the shader was created with. that's it. that's the whole vibe. no cap.
and the answer is gonna be one of exactly two things:
ALLEGRO_SHADER_HLSLβ that's the platform you'd get β¨ALLEGRO_SHADER_GLSLβ or that one π
literally just "which one of these two, bestie?" and she tells you. no guessing, no drama, no extra lore. π§
β SINCE β
5.1.6 β so she's been around a minute, she's a seasoned queen π
π SEE ALSO π
al_create_shader(3alleg5)β like, go make a shader first, then come back and ask her what platform it's on, obviously π
quick reminder bestie: the only values you'll ever see come back areALLEGRO_SHADER_HLSLandALLEGRO_SHADER_GLSL. no third option, no surprises. periodt. π
and that's the whole page!! π shoutout to the Allegro reference manual for hosting this lil slice of 3alleg5 heaven, and mwah to the al_get_shader_platform(3alleg5) page itself β short, useful, ate. πβ¨π¦πΈπ«Ά
π¦ where this page comes from
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms