1al_set_current_opengl_contexLti(b3r)ary Functions Maanlu_aslet_current_opengl_context(3)
2
3
4

NAME

6       al_set_current_opengl_context
7

SYNOPSIS

9              #include <allegro5/allegro_opengl.h>
10
11              void al_set_current_opengl_context(ALLEGRO_DISPLAY *display)
12

DESCRIPTION

14       Make  the  OpenGL context associated with the given display current for
15       the calling thread.  If there is a current target bitmap which  belongs
16       to  a  different  OpenGL  context, the target bitmap will be changed to
17       NULL.
18
19       Normally you do not need to use this function, as the context  will  be
20       made  current  when  you  call  al_set_target_bitmap(3)  or al_set_tar‐
21       get_backbuffer(3).  You might need if it you created an OpenGL “forward
22       compatible”  context.   Then al_get_backbuffer(3) only returns NULL, so
23       it would not work to pass that to al_set_target_bitmap(3).
24
25
26
27Allegro reference manual                      al_set_current_opengl_context(3)
Impressum