al_get_opengl_fbo(3alleg5)
π al_get_opengl_fbo β Allegro 5 API
okay bestie, welcome to al_get_opengl_fbo from the allegro5 manual π this one's a lil OpenGL-adjacent cutie and she's actually pretty chill, let's get into it.
β¨ SYNOPSIS β¨
#include <allegro5/allegro_opengl.h>
GLuint al_get_opengl_fbo(ALLEGRO_BITMAP *bitmap)
π¦ DESCRIPTION π¦
So basically, this function hands you back the OpenGL FBO id that the given bitmap is using internally β if it's using one. If it's not, you just get zero. That's it, that's the whole vibe.
β οΈ real talk though: it will not try to create an FBO for you if the bitmap isn't owned by the current display. No attempt, none, zero effort, she's not doing that π
And here's the important part about ownership β the FBO this function returns only gets freed when the bitmap itself is destroyed, or if you call al_remove_opengl_fbo(3alleg5) on that bitmap. So like, it's not going anywhere until one of those two things happens, fr fr.
π Note: back in Allegro 5.0.0, this function would only return an FBO that had already been created by calling al_set_target_bitmap(3alleg5). It would not attempt to create an FBO itself. That has since been changed, bestie β glow up achieved β¨
π SEE ALSO π
and that's the whole page, no cap π«Ά this was pulled straight from the Allegro reference manual β al_get_opengl_fbo(3alleg5), periodt π go forth and query your FBOs responsibly, queen π
π¦ where this page comes from
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms