al_get_opengl_program_object(3alleg5)

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

πŸ’– al_get_opengl_program_object πŸ’–

okay bestie, so you know how the manual page is like al_get_opengl_program_object(3alleg5)? yeah, that's this one. it lives in the Allegro 5 manual (section 3alleg5, iykyk) and it's literally just a lil function that hands you your OpenGL program object. no biggie. πŸŽ€


✨ NAME ✨

al_get_opengl_program_object β€” the Allegro 5 API cutie that fetches your GL program object πŸ’…


🌸 SYNOPSIS 🌸

#include <allegro5/allegro_opengl.h>

GLuint al_get_opengl_program_object(ALLEGRO_SHADER *shader)

like yes, that's the whole thing. short king. πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea, bestie: this function returns the OpenGL program object that's associated with your shader. 🫢

but β€” and this is the important part β€” it only does that when the platform is ALLEGRO_SHADER_GLSL. that's the vibe check right there.

if the platform is not ALLEGRO_SHADER_GLSL? then it returns 0. that's it. no program object for you. zero. nada. the void. πŸ’€

lowkey important: check your platform before you get all excited, fr fr. 0 is the answer when it's not ALLEGRO_SHADER_GLSL, and 0 is not a valid program object, so don't go using it like one. 😭

🧚 sign-off 🧚

that's the whole page, babe! it comes to you from the Allegro reference manual, under the page name al_get_opengl_program_object(3alleg5). go forth and slay your shaders βœ¨πŸŒˆπŸ’œ

πŸ“¦ where this page comes from