mesa/src/egl/main/eglconfig.h

65 lines
1.4 KiB
C
Raw Normal View History

2005-04-22 22:09:39 +01:00
#ifndef EGLCONFIG_INCLUDED
#define EGLCONFIG_INCLUDED
#include "egltypedefs.h"
#include <GLES/gl.h>
2005-04-22 22:09:39 +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];
};
#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);
extern EGLConfig
_eglGetConfigHandle(_EGLConfig *config);
2005-04-22 22:09:39 +01:00
extern _EGLConfig *
_eglLookupConfig(EGLConfig config, _EGLDisplay *dpy);
2005-04-22 22:09:39 +01:00
extern _EGLConfig *
_eglAddConfig(_EGLDisplay *display, _EGLConfig *config);
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);
2005-04-22 22:09:39 +01:00
extern EGLBoolean
_eglGetConfigAttrib(_EGLDriver *drv, _EGLDisplay *dpy, _EGLConfig *conf, EGLint attribute, EGLint *value);
2005-04-22 22:09:39 +01:00
extern EGLBoolean
_eglGetConfigs(_EGLDriver *drv, _EGLDisplay *dpy, EGLConfig *configs, EGLint config_size, EGLint *num_config);
2005-04-22 22:09:39 +01:00
extern void
_eglSetConfigAttrib(_EGLConfig *config, EGLint attr, EGLint val);
2005-04-22 22:09:39 +01:00
#endif /* EGLCONFIG_INCLUDED */