1al_get_opengl_extension_list(3)                al_get_opengl_extension_list(3)
2
3
4

NAME

6       al_get_opengl_extension_list - Allegro 5 API
7

SYNOPSIS

9              #include <allegro5/allegro_opengl.h>
10
11              ALLEGRO_OGL_EXT_LIST *al_get_opengl_extension_list(void)
12

DESCRIPTION

14       Returns  the  list  of  OpenGL extensions supported by Allegro, for the
15       given display.
16
17       Allegro will keep information about all extensions it knows about in  a
18       structure returned by al_get_opengl_extension_list.
19
20       For example:
21
22              if (al_get_opengl_extension_list()->ALLEGRO_GL_ARB_multitexture) {
23                 //use it
24              }
25
26       The  extension  will  be set to true if available for the given display
27       and false otherwise.  This means to use the definitions  and  functions
28       from  an  OpenGL  extension,  all  you need to do is to check for it as
29       above at run time, after acquiring the OpenGL display from Allegro.
30
31       Under Windows, this will also work with WGL extensions, and under  Unix
32       with GLX extensions.
33
34       In  case  you  want  to manually check for extensions and load function
35       pointers yourself (say, in case the Allegro developers did not  include
36       it    yet),   you   can   use   the   al_have_opengl_extension(3)   and
37       al_get_opengl_proc_address(3) functions instead.
38
39              Note: the exact extensions exposed depend  on  how  Allegro  was
40              compiled.   It is recommended to use al_have_opengl_extension(3)
41              and al_get_opengl_proc_address(3) for the  most  stable  experi‐
42              ence.
43
44
45
46Allegro reference manual                       al_get_opengl_extension_list(3)
Impressum