* All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sub license, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: * * The above copyright notice and this permission notice (including the * next paragraph) shall be included in all copies or substantial portions * of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS IN THE SOFTWARE. * **************************************************************************/#ifndef __eglmesaext_h_#define __eglmesaext_h_#ifdef __cplusplusextern"C"{#endif#include <EGL/eglplatform.h>/* EGL_MESA_screen extension >>> PRELIMINARY <<< */#ifndef EGL_MESA_screen_surface#define EGL_MESA_screen_surface 1#define EGL_BAD_SCREEN_MESA 0x4000#define EGL_BAD_MODE_MESA 0x4001#define EGL_SCREEN_COUNT_MESA 0x4002#define EGL_SCREEN_POSITION_MESA 0x4003#define EGL_SCREEN_POSITION_GRANULARITY_MESA 0x4004#define EGL_MODE_ID_MESA 0x4005#define EGL_REFRESH_RATE_MESA 0x4006#define EGL_OPTIMAL_MESA 0x4007#define EGL_INTERLACED_MESA 0x4008#define EGL_SCREEN_BIT_MESA 0x08typedefkhronos_uint32_tEGLScreenMESA;typedefkhronos_uint32_tEGLModeMESA;#ifdef EGL_EGLEXT_PROTOTYPESEGLAPIEGLBooleanEGLAPIENTRYeglChooseModeMESA(EGLDisplaydpy,EGLScreenMESAscreen,constEGLint*attrib_list,EGLModeMESA*modes,EGLintmodes_size,EGLint*num_modes);EGLAPIEGLBooleanEGLAPIENTRYeglGetModesMESA(EGLDisplaydpy,EGLScreenMESAscreen,EGLModeMESA*modes,EGLintmodes_size,EGLint*num_modes);EGLAPIEGLBooleanEGLAPIENTRYeglGetModeAttribMESA(EGLDisplaydpy,EGLModeMESAmode,EGLintattribute,EGLint*value);EGLAPIEGLBooleanEGLAPIENTRYeglGetScreensMESA(EGLDisplaydpy,EGLScreenMESA*screens,EGLintmax_screens,EGLint*num_screens);EGLAPIEGLSurfaceEGLAPIENTRYeglCreateScreenSurfaceMESA(EGLDisplaydpy,EGLConfigconfig,constEGLint*attrib_list);EGLAPIEGLBooleanEGLAPIENTRYeglShowScreenSurfaceMESA(EGLDisplaydpy,EGLintscreen,EGLSurfacesurface,EGLModeMESAmode);EGLAPIEGLBooleanEGLAPIENTRYeglScreenPositionMESA(EGLDisplaydpy,EGLScreenMESAscreen,EGLintx,EGLinty);EGLAPIEGLBooleanEGLAPIENTRYeglQueryScreenMESA(EGLDisplaydpy,EGLScreenMESAscreen,EGLintattribute,EGLint*value);EGLAPIEGLBooleanEGLAPIENTRYeglQueryScreenSurfaceMESA(EGLDisplaydpy,EGLScreenMESAscreen,EGLSurface*surface);EGLAPIEGLBooleanEGLAPIENTRYeglQueryScreenModeMESA(EGLDisplaydpy,EGLScreenMESAscreen,EGLModeMESA*mode);EGLAPIconstchar*EGLAPIENTRYeglQueryModeStringMESA(EGLDisplaydpy,EGLModeMESAmode);#endif /* EGL_EGLEXT_PROTOTYPES */typedefEGLBoolean(EGLAPIENTRYPPFNEGLCHOOSEMODEMESA)(EGLDisplaydpy,EGLScreenMESAscreen,constEGLint*attrib_list,EGLModeMESA*modes,EGLintmodes_size,EGLint*num_modes);typedefEGLBoolean(EGLAPIENTRYPPFNEGLGETMODESMESA)(EGLDisplaydpy,EGLScreenMESAscreen,EGLModeMESA*modes,EGLintmodes_size,EGLint*num_modes);typedefEGLBoolean(EGLAPIENTRYPPFNEGLGetModeATTRIBMESA)(EGLDisplaydpy,EGLModeMESAmode,EGLintattribute,EGLint*value);typedefEGLBoolean(EGLAPIENTRYPPFNEGLGETSCRREENSMESA)(EGLDisplaydpy,EGLScreenMESA*screens,EGLintmax_screens,EGLint*num_screens);typedefEGLSurface(EGLAPIENTRYPPFNEGLCREATESCREENSURFACEMESA)(EGLDisplaydpy,EGLConfigconfig,constEGLint*attrib_list);typedefEGLBoolean(EGLAPIENTRYPPFNEGLSHOWSCREENSURFACEMESA)(EGLDisplaydpy,EGLintscreen,EGLSurfacesurface,EGLModeMESAmode);typedefEGLBoolean(EGLAPIENTRYPPFNEGLSCREENPOSIITONMESA)(EGLDisplaydpy,EGLScreenMESAscreen,EGLintx,EGLinty);typedefEGLBoolean(EGLAPIENTRYPPFNEGLQUERYSCREENMESA)(EGLDisplaydpy,EGLScreenMESAscreen,EGLintattribute,EGLint*value);typedefEGLBoolean(EGLAPIENTRYPPFNEGLQUERYSCREENSURFACEMESA)(EGLDisplaydpy,EGLScreenMESAscreen,EGLSurface*surface);typedefEGLBoolean(EGLAPIENTRYPPFNEGLQUERYSCREENMODEMESA)(EGLDisplaydpy,EGLScreenMESAscreen,EGLModeMESA*mode);typedefconstchar*(EGLAPIENTRYPPFNEGLQUERYMODESTRINGMESA)(EGLDisplaydpy,EGLModeMESAmode);#endif /* EGL_MESA_screen_surface */#ifndef EGL_MESA_copy_context#define EGL_MESA_copy_context 1#ifdef EGL_EGLEXT_PROTOTYPESEGLAPIEGLBooleanEGLAPIENTRYeglCopyContextMESA(EGLDisplaydpy,EGLContextsource,EGLContextdest,EGLintmask);#endif /* EGL_EGLEXT_PROTOTYPES */typedefEGLBoolean(EGLAPIENTRYPPFNEGLCOPYCONTEXTMESA)(EGLDisplaydpy,EGLContextsource,EGLContextdest,EGLintmask);#endif /* EGL_MESA_copy_context */#ifndef EGL_MESA_drm_display#define EGL_MESA_drm_display 1#ifdef EGL_EGLEXT_PROTOTYPESEGLAPIEGLDisplayEGLAPIENTRYeglGetDRMDisplayMESA(intfd);#endif /* EGL_EGLEXT_PROTOTYPES */typedefEGLDisplay(EGLAPIENTRYPPFNEGLGETDRMDISPLAYMESA)(intfd);#endif /* EGL_MESA_drm_display */