al_get_shader_platform(3)
πΈ 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 π¦
al_create_shader(3)β the shader-creation bestie; go check her out. π
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