2005-04-22 22:09:39 +01:00
|
|
|
#ifndef EGLCONFIG_INCLUDED
|
|
|
|
#define EGLCONFIG_INCLUDED
|
|
|
|
|
|
|
|
|
|
|
|
#include "egltypedefs.h"
|
2008-05-27 23:48:23 +01:00
|
|
|
#include <GLES/gl.h>
|
2005-04-22 22:09:39 +01:00
|
|
|
|
|
|
|
|
2008-07-07 21:34:30 +01:00
|
|
|
#define MAX_ATTRIBS 128
|
2005-04-22 22:09:39 +01:00
|
|
|
#define FIRST_ATTRIB EGL_BUFFER_SIZE
|
|
|
|
|
|
|
|
|
|
|
|
struct _egl_config
|
|
|
|
{
|
|
|
|
EGLConfig Handle; /* the public/opaque handle which names this config */
|
|
|
|
EGLint Attrib[MAX_ATTRIBS];
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2008-07-07 21:34:30 +01:00
|
|
|
#define SET_CONFIG_ATTRIB(CONF, ATTR, VAL) \
|
|
|
|
assert((ATTR) - FIRST_ATTRIB < MAX_ATTRIBS); \
|
|
|
|
((CONF)->Attrib[(ATTR) - FIRST_ATTRIB] = VAL)
|
|
|
|
|
|
|
|
|
2005-04-22 22:09:39 +01:00
|
|
|
#define GET_CONFIG_ATTRIB(CONF, ATTR) ((CONF)->Attrib[(ATTR) - FIRST_ATTRIB])
|
|
|
|
|
|
|
|
|
|
|
|
extern void
|
|
|
|
_eglInitConfig(_EGLConfig *config, EGLint id);
|
|
|
|
|
|
|
|
|
2008-05-27 21:33:54 +01:00
|
|
|
extern EGLConfig
|
|
|
|
_eglGetConfigHandle(_EGLConfig *config);
|
|
|
|
|
|
|
|
|
2005-04-22 22:09:39 +01:00
|
|
|
extern _EGLConfig *
|
|
|
|
_eglLookupConfig(_EGLDriver *drv, EGLDisplay dpy, EGLConfig config);
|
|
|
|
|
|
|
|
|
2005-05-04 04:33:21 +01:00
|
|
|
extern _EGLConfig *
|
2008-06-04 18:34:10 +01:00
|
|
|
_eglAddConfig(_EGLDisplay *display, _EGLConfig *config);
|
2005-05-04 04:33:21 +01:00
|
|
|
|
|
|
|
|
2005-04-22 22:09:39 +01:00
|
|
|
extern EGLBoolean
|
|
|
|
_eglParseConfigAttribs(_EGLConfig *config, const EGLint *attrib_list);
|
|
|
|
|
|
|
|
|
|
|
|
extern EGLBoolean
|
|
|
|
_eglChooseConfig(_EGLDriver *drv, EGLDisplay dpy, const EGLint *attrib_list, EGLConfig *configs, EGLint config_size, EGLint *num_config);
|
|
|
|
|
|
|
|
|
|
|
|
extern EGLBoolean
|
|
|
|
_eglGetConfigAttrib(_EGLDriver *drv, EGLDisplay dpy, EGLConfig config, EGLint attribute, EGLint *value);
|
|
|
|
|
|
|
|
|
|
|
|
extern EGLBoolean
|
|
|
|
_eglGetConfigs(_EGLDriver *drv, EGLDisplay dpy, EGLConfig *configs, EGLint config_size, EGLint *num_config);
|
|
|
|
|
|
|
|
|
2005-05-16 03:14:50 +01:00
|
|
|
extern void
|
|
|
|
_eglSetConfigAttrib(_EGLConfig *config, EGLint attr, EGLint val);
|
|
|
|
|
2005-05-17 03:13:00 +01:00
|
|
|
|
2005-04-22 22:09:39 +01:00
|
|
|
#endif /* EGLCONFIG_INCLUDED */
|