1al_get_opengl_fbo(3) al_get_opengl_fbo(3)
2
3
4
6 al_get_opengl_fbo - Allegro 5 API
7
9 #include <allegro5/allegro_opengl.h>
10
11 GLuint al_get_opengl_fbo(ALLEGRO_BITMAP *bitmap)
12
14 Returns the OpenGL FBO id internally used by the given bitmap if it us‐
15 es one, otherwise returns zero. No attempt will be made to create an
16 FBO if the bitmap is not owned by the current display.
17
18 The FBO returned by this function will only be freed when the bitmap is
19 destroyed, or if you call al_remove_opengl_fbo(3) on the bitmap.
20
21 Note: In Allegro 5.0.0 this function only returned an FBO which
22 had previously been created by calling al_set_target_bitmap(3).
23 It would not attempt to create an FBO itself. This has since
24 been changed.
25
27 al_remove_opengl_fbo(3), al_set_target_bitmap(3)
28
29
30
31Allegro reference manual al_get_opengl_fbo(3)