1 #ifndef EGLCONFIG_INCLUDED
2 #define EGLCONFIG_INCLUDED
5 #include "egltypedefs.h"
9 #define MAX_ATTRIBS 100
10 #define FIRST_ATTRIB EGL_BUFFER_SIZE
15 EGLConfig Handle
; /* the public/opaque handle which names this config */
16 EGLint Attrib
[MAX_ATTRIBS
];
20 #define SET_CONFIG_ATTRIB(CONF, ATTR, VAL) ((CONF)->Attrib[(ATTR) - FIRST_ATTRIB] = VAL)
21 #define GET_CONFIG_ATTRIB(CONF, ATTR) ((CONF)->Attrib[(ATTR) - FIRST_ATTRIB])
25 _eglInitConfig(_EGLConfig
*config
, EGLint id
);
29 _eglGetConfigHandle(_EGLConfig
*config
);
33 _eglLookupConfig(_EGLDriver
*drv
, EGLDisplay dpy
, EGLConfig config
);
37 _eglAddConfig(_EGLDisplay
*display
, const _EGLConfig
*config
);
41 _eglParseConfigAttribs(_EGLConfig
*config
, const EGLint
*attrib_list
);
45 _eglChooseConfig(_EGLDriver
*drv
, EGLDisplay dpy
, const EGLint
*attrib_list
, EGLConfig
*configs
, EGLint config_size
, EGLint
*num_config
);
49 _eglGetConfigAttrib(_EGLDriver
*drv
, EGLDisplay dpy
, EGLConfig config
, EGLint attribute
, EGLint
*value
);
53 _eglGetConfigs(_EGLDriver
*drv
, EGLDisplay dpy
, EGLConfig
*configs
, EGLint config_size
, EGLint
*num_config
);
57 _eglSetConfigAttrib(_EGLConfig
*config
, EGLint attr
, EGLint val
);
60 #endif /* EGLCONFIG_INCLUDED */