al_get_ope...ram_object(3)
β¨ 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 isALLEGRO_SHADER_GLSLβ and βOtherwise, returns0β β 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