2005-04-22 22:09:39 +01:00
|
|
|
#ifndef EGLCONFIG_INCLUDED
|
|
|
|
#define EGLCONFIG_INCLUDED
|
|
|
|
|
|
|
|
|
|
|
|
#include "egltypedefs.h"
|
2005-05-13 19:31:35 +01:00
|
|
|
#include "GL/internal/glcore.h"
|
2005-04-22 22:09:39 +01:00
|
|
|
|
|
|
|
|
|
|
|
#define MAX_ATTRIBS 100
|
|
|
|
#define FIRST_ATTRIB EGL_BUFFER_SIZE
|
|
|
|
|
|
|
|
|
|
|
|
struct _egl_config
|
|
|
|
{
|
|
|
|
EGLConfig Handle; /* the public/opaque handle which names this config */
|
|
|
|
EGLint Attrib[MAX_ATTRIBS];
|
2005-05-13 19:31:35 +01:00
|
|
|
__GLcontextModes glmode;
|
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);
|
|
|
|
|
|
|
|
|
|
|
|
extern _EGLConfig *
|
|
|
|
_eglLookupConfig(_EGLDriver *drv, EGLDisplay dpy, EGLConfig config);
|
|
|
|
|
|
|
|
|
2005-05-04 04:33:21 +01:00
|
|
|
extern _EGLConfig *
|
|
|
|
_eglAddConfig(_EGLDisplay *display, const _EGLConfig *config);
|
|
|
|
|
|
|
|
|
2005-04-22 22:09:39 +01:00
|
|
|
extern EGLBoolean
|
|
|
|
_eglParseConfigAttribs(_EGLConfig *config, const EGLint *attrib_list);
|
|
|
|
|
|
|
|
|
|
|
|
extern EGLBoolean
|
|
|
|
_eglConfigQualifies(const _EGLConfig *c, const _EGLConfig *min);
|
|
|
|
|
|
|
|
|
|
|
|
extern EGLint
|
|
|
|
_eglCompareConfigs(const _EGLConfig *a, const _EGLConfig *b);
|
|
|
|
|
|
|
|
|
|
|
|
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-13 19:31:35 +01:00
|
|
|
extern GLboolean
|
|
|
|
_eglFillInConfigs( _EGLConfig *configs,
|
|
|
|
GLenum fb_format, GLenum fb_type,
|
|
|
|
const u_int8_t * depth_bits, const u_int8_t * stencil_bits,
|
|
|
|
unsigned num_depth_stencil_bits,
|
|
|
|
const GLenum * db_modes, unsigned num_db_modes,
|
|
|
|
int visType );
|
|
|
|
|
2005-04-22 22:09:39 +01:00
|
|
|
#endif /* EGLCONFIG_INCLUDED */
|