al_get_ope...ram_object(3)

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

✨ NAME ✨

al_get_opengl_program_object β€” Allegro 5 API

(from the Library Functions Manual, bestie 🫢 β€” manual name folded in right here instead of copying that header line, periodt)

🌸 SYNOPSIS 🌸

okay so you include this:

#include <allegro5/allegro_opengl.h>

GLuint al_get_opengl_program_object(ALLEGRO_SHADER *shader)

That's literally the signature: GLuint return type, al_get_opengl_program_object function name, and one parameter, ALLEGRO_SHADER *shader. Slay πŸ’….

πŸ’… DESCRIPTION πŸ’…

This returns the OpenGL program object associated with this shader, but only if the platform is ALLEGRO_SHADER_GLSL πŸ¦‹.

If the platform is not ALLEGRO_SHADER_GLSL, then it returns 0 😭. That's it. Zero. Nada. The number 0, no cap.

bestie reminder: the original says β€œif the platform is ALLEGRO_SHADER_GLSL” and β€œOtherwise, returns 0” β€” so keep that vibe check in mind, fr fr πŸ’–.

and that's the whole page, signing off from the Allegro reference manual 🌈 β€” source/version line: Allegro reference manual; date: not listed in this footer, bestie πŸŽ€

πŸ“¦ 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