al_get_opengl_fbo
GLuint al_get_opengl_fbo(ALLEGRO_BITMAP *bitmap)
Introduced in 5.0.0
Returns the OpenGL FBO id internally used by the given bitmap if it uses one, otherwise returns zero. No attempt will be made to create an FBO if the bitmap is not owned by the current display.
The FBO returned by this function will only be freed when the bitmap is destroyed, or if you call al_remove_opengl_fbo on the bitmap.
Note: In Allegro 5.0.0 this function only returned an FBO which had previously been created by calling al_set_target_bitmap. It would not attempt to create an FBO itself. This has since been changed.
See also: al_remove_opengl_fbo, al_set_target_bitmap
Most helpful discussions: