ALLEGRO_SHADER_PLATFORM(3)
π ALLEGRO_SHADER_PLATFORM(3) π
okay so this page is from the Library Functions Manual for the Allegro 5 API, and it's giving βwhich shader language are we even speaking?β vibes. Your bestie is about to explain ALLEGRO_SHADER_PLATFORM, no cap. π
πΈ NAME πΈ
ALLEGRO_SHADER_PLATFORM β Allegro 5 API.
β¨ SYNOPSIS β¨
#include <allegro5/allegro.h>
typedef enum ALLEGRO_SHADER_PLATFORM ALLEGRO_SHADER_PLATFORM;
π¦ DESCRIPTION π¦
So ALLEGRO_SHADER_PLATFORM is the underlying platform that ALLEGRO_SHADER(3) is built on top of. It literally dictates which language you use to program the shader β iconic, honestly. π
Here are the platform values, bestie:
ALLEGRO_SHADER_AUTOβ picks a platform automatically based on the current display flags. auto-magic β¨ALLEGRO_SHADER_GLSLβ OpenGL Shading Language.ALLEGRO_SHADER_HLSLβ High Level Shader Language (for Direct3D).ALLEGRO_SHADER_AUTO_MINIMALβ likeALLEGRO_SHADER_AUTO, but it picks a more minimal implementation that may not support alpha testing. lowkey a heads-up, bestie π«ΆALLEGRO_SHADER_GLSL_MINIMALβ minimal GLSL shader.ALLEGRO_SHADER_HLSL_MINIMALβ minimal HLSL shader.ALLEGRO_SHADER_HLSL_SM_3_0β HLSL shader using shader model3_0.
π SINCE π
5.1.0
π sign-off from the Allegro reference manual, page ALLEGRO_SHADER_PLATFORM(3) β the footer has no date listed, so Iβm not inventing one, fr fr. π
π¦ 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