ALLEGRO_SHADER_PLATFORM(3)

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

πŸ’… 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 β€” like ALLEGRO_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 model 3_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