ALLEGRO_SHADER_PLATFORM(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– ALLEGRO_SHADER_PLATFORM πŸ’–

okay bestie, so this is from the Allegro 5 API manual and it's literally the page for ALLEGRO_SHADER_PLATFORM ✨


✨ SYNOPSIS ✨

#include <allegro5/allegro.h>

typedef enum ALLEGRO_SHADER_PLATFORM ALLEGRO_SHADER_PLATFORM;

🌸 DESCRIPTION 🌸

So this enum is the underlying platform that your ALLEGRO_SHADER(3alleg5) gets built on top of, and bestie, that choice is the whole vibe β€” it's what decides which language you're gonna be programming the shader in πŸŽ€

Like, it's giving "pick your fighter" but for shader languages, no cap.

  • ALLEGRO_SHADER_AUTO β€” picks a platform for you automatically, based on whatever the current display flags are. main character energy, it just handles it πŸ’…
  • ALLEGRO_SHADER_GLSL β€” OpenGL Shading Language πŸ¦‹
  • ALLEGRO_SHADER_HLSL β€” High Level Shader Language (this one's for Direct3D) 🌈
  • ALLEGRO_SHADER_AUTO_MINIMAL β€” same energy as ALLEGRO_SHADER_AUTO, but it picks a more minimal implementation that may not support alpha testing ⚠️ like, it's the lowkey version
  • 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 β€” yeah she's been here a minute, iconic behavior πŸ‘‘


and that's the whole page, bestie!! every flag, every name, nothing skipped, we ate and left no crumbs πŸ“

this lil love letter came to you straight out of the Allegro reference manual, filed under ALLEGRO_SHADER_PLATFORM(3alleg5) 🫢 go build something cute with it, mwah πŸ’–

πŸ“¦ where this page comes from