1 #ifndef EGLCONFIG_INCLUDED
2 #define EGLCONFIG_INCLUDED
5 #include "egltypedefs.h"
9 #define MAX_ATTRIBS 128
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) \
21 assert((ATTR) - FIRST_ATTRIB < MAX_ATTRIBS); \
22 ((CONF)->Attrib[(ATTR) - FIRST_ATTRIB] = VAL)
25 #define GET_CONFIG_ATTRIB(CONF, ATTR) ((CONF)->Attrib[(ATTR) - FIRST_ATTRIB])
29 _eglInitConfig(_EGLConfig
*config
, EGLint id
);
33 _eglGetConfigHandle(_EGLConfig
*config
);
37 _eglLookupConfig(EGLConfig config
, _EGLDisplay
*dpy
);
41 _eglAddConfig(_EGLDisplay
*display
, _EGLConfig
*config
);
45 _eglParseConfigAttribs(_EGLConfig
*config
, const EGLint
*attrib_list
);
49 _eglChooseConfig(_EGLDriver
*drv
, _EGLDisplay
*dpy
, const EGLint
*attrib_list
, EGLConfig
*configs
, EGLint config_size
, EGLint
*num_config
);
53 _eglGetConfigAttrib(_EGLDriver
*drv
, _EGLDisplay
*dpy
, _EGLConfig
*conf
, EGLint attribute
, EGLint
*value
);
57 _eglGetConfigs(_EGLDriver
*drv
, _EGLDisplay
*dpy
, EGLConfig
*configs
, EGLint config_size
, EGLint
*num_config
);
61 _eglSetConfigAttrib(_EGLConfig
*config
, EGLint attr
, EGLint val
);
64 #endif /* EGLCONFIG_INCLUDED */