al_get_shader_platform(3alleg5)

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

✨ 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 are ALLEGRO_SHADER_HLSL and ALLEGRO_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