Clone of mesa.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. #ifndef __eglext_h_
  2. #define __eglext_h_
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. /*
  7. ** Copyright (c) 2007-2009 The Khronos Group Inc.
  8. **
  9. ** Permission is hereby granted, free of charge, to any person obtaining a
  10. ** copy of this software and/or associated documentation files (the
  11. ** "Materials"), to deal in the Materials without restriction, including
  12. ** without limitation the rights to use, copy, modify, merge, publish,
  13. ** distribute, sublicense, and/or sell copies of the Materials, and to
  14. ** permit persons to whom the Materials are furnished to do so, subject to
  15. ** the following conditions:
  16. **
  17. ** The above copyright notice and this permission notice shall be included
  18. ** in all copies or substantial portions of the Materials.
  19. **
  20. ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  21. ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  22. ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  23. ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
  24. ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  25. ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
  26. ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
  27. */
  28. #include <EGL/eglplatform.h>
  29. /*************************************************************/
  30. /* Header file version number */
  31. /* Current version at http://www.khronos.org/registry/egl/ */
  32. /* $Revision: 10185 $ on $Date: 2010-01-22 11:38:01 -0800 (Fri, 22 Jan 2010) $ */
  33. #define EGL_EGLEXT_VERSION 5
  34. #ifndef EGL_KHR_config_attribs
  35. #define EGL_KHR_config_attribs 1
  36. #define EGL_CONFORMANT_KHR 0x3042 /* EGLConfig attribute */
  37. #define EGL_VG_COLORSPACE_LINEAR_BIT_KHR 0x0020 /* EGL_SURFACE_TYPE bitfield */
  38. #define EGL_VG_ALPHA_FORMAT_PRE_BIT_KHR 0x0040 /* EGL_SURFACE_TYPE bitfield */
  39. #endif
  40. #ifndef EGL_KHR_lock_surface
  41. #define EGL_KHR_lock_surface 1
  42. #define EGL_READ_SURFACE_BIT_KHR 0x0001 /* EGL_LOCK_USAGE_HINT_KHR bitfield */
  43. #define EGL_WRITE_SURFACE_BIT_KHR 0x0002 /* EGL_LOCK_USAGE_HINT_KHR bitfield */
  44. #define EGL_LOCK_SURFACE_BIT_KHR 0x0080 /* EGL_SURFACE_TYPE bitfield */
  45. #define EGL_OPTIMAL_FORMAT_BIT_KHR 0x0100 /* EGL_SURFACE_TYPE bitfield */
  46. #define EGL_MATCH_FORMAT_KHR 0x3043 /* EGLConfig attribute */
  47. #define EGL_FORMAT_RGB_565_EXACT_KHR 0x30C0 /* EGL_MATCH_FORMAT_KHR value */
  48. #define EGL_FORMAT_RGB_565_KHR 0x30C1 /* EGL_MATCH_FORMAT_KHR value */
  49. #define EGL_FORMAT_RGBA_8888_EXACT_KHR 0x30C2 /* EGL_MATCH_FORMAT_KHR value */
  50. #define EGL_FORMAT_RGBA_8888_KHR 0x30C3 /* EGL_MATCH_FORMAT_KHR value */
  51. #define EGL_MAP_PRESERVE_PIXELS_KHR 0x30C4 /* eglLockSurfaceKHR attribute */
  52. #define EGL_LOCK_USAGE_HINT_KHR 0x30C5 /* eglLockSurfaceKHR attribute */
  53. #define EGL_BITMAP_POINTER_KHR 0x30C6 /* eglQuerySurface attribute */
  54. #define EGL_BITMAP_PITCH_KHR 0x30C7 /* eglQuerySurface attribute */
  55. #define EGL_BITMAP_ORIGIN_KHR 0x30C8 /* eglQuerySurface attribute */
  56. #define EGL_BITMAP_PIXEL_RED_OFFSET_KHR 0x30C9 /* eglQuerySurface attribute */
  57. #define EGL_BITMAP_PIXEL_GREEN_OFFSET_KHR 0x30CA /* eglQuerySurface attribute */
  58. #define EGL_BITMAP_PIXEL_BLUE_OFFSET_KHR 0x30CB /* eglQuerySurface attribute */
  59. #define EGL_BITMAP_PIXEL_ALPHA_OFFSET_KHR 0x30CC /* eglQuerySurface attribute */
  60. #define EGL_BITMAP_PIXEL_LUMINANCE_OFFSET_KHR 0x30CD /* eglQuerySurface attribute */
  61. #define EGL_LOWER_LEFT_KHR 0x30CE /* EGL_BITMAP_ORIGIN_KHR value */
  62. #define EGL_UPPER_LEFT_KHR 0x30CF /* EGL_BITMAP_ORIGIN_KHR value */
  63. #ifdef EGL_EGLEXT_PROTOTYPES
  64. EGLAPI EGLBoolean EGLAPIENTRY eglLockSurfaceKHR (EGLDisplay display, EGLSurface surface, const EGLint *attrib_list);
  65. EGLAPI EGLBoolean EGLAPIENTRY eglUnlockSurfaceKHR (EGLDisplay display, EGLSurface surface);
  66. #endif /* EGL_EGLEXT_PROTOTYPES */
  67. typedef EGLBoolean (EGLAPIENTRYP PFNEGLLOCKSURFACEKHRPROC) (EGLDisplay display, EGLSurface surface, const EGLint *attrib_list);
  68. typedef EGLBoolean (EGLAPIENTRYP PFNEGLUNLOCKSURFACEKHRPROC) (EGLDisplay display, EGLSurface surface);
  69. #endif
  70. #ifndef EGL_KHR_image
  71. #define EGL_KHR_image 1
  72. #define EGL_NATIVE_PIXMAP_KHR 0x30B0 /* eglCreateImageKHR target */
  73. typedef void *EGLImageKHR;
  74. #define EGL_NO_IMAGE_KHR ((EGLImageKHR)0)
  75. #ifdef EGL_EGLEXT_PROTOTYPES
  76. EGLAPI EGLImageKHR EGLAPIENTRY eglCreateImageKHR (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list);
  77. EGLAPI EGLBoolean EGLAPIENTRY eglDestroyImageKHR (EGLDisplay dpy, EGLImageKHR image);
  78. #endif /* EGL_EGLEXT_PROTOTYPES */
  79. typedef EGLImageKHR (EGLAPIENTRYP PFNEGLCREATEIMAGEKHRPROC) (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list);
  80. typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYIMAGEKHRPROC) (EGLDisplay dpy, EGLImageKHR image);
  81. #endif
  82. #ifndef EGL_KHR_vg_parent_image
  83. #define EGL_KHR_vg_parent_image 1
  84. #define EGL_VG_PARENT_IMAGE_KHR 0x30BA /* eglCreateImageKHR target */
  85. #endif
  86. #ifndef EGL_KHR_gl_texture_2D_image
  87. #define EGL_KHR_gl_texture_2D_image 1
  88. #define EGL_GL_TEXTURE_2D_KHR 0x30B1 /* eglCreateImageKHR target */
  89. #define EGL_GL_TEXTURE_LEVEL_KHR 0x30BC /* eglCreateImageKHR attribute */
  90. #endif
  91. #ifndef EGL_KHR_gl_texture_cubemap_image
  92. #define EGL_KHR_gl_texture_cubemap_image 1
  93. #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_X_KHR 0x30B3 /* eglCreateImageKHR target */
  94. #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_X_KHR 0x30B4 /* eglCreateImageKHR target */
  95. #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Y_KHR 0x30B5 /* eglCreateImageKHR target */
  96. #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_KHR 0x30B6 /* eglCreateImageKHR target */
  97. #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Z_KHR 0x30B7 /* eglCreateImageKHR target */
  98. #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_KHR 0x30B8 /* eglCreateImageKHR target */
  99. #endif
  100. #ifndef EGL_KHR_gl_texture_3D_image
  101. #define EGL_KHR_gl_texture_3D_image 1
  102. #define EGL_GL_TEXTURE_3D_KHR 0x30B2 /* eglCreateImageKHR target */
  103. #define EGL_GL_TEXTURE_ZOFFSET_KHR 0x30BD /* eglCreateImageKHR attribute */
  104. #endif
  105. #ifndef EGL_KHR_gl_renderbuffer_image
  106. #define EGL_KHR_gl_renderbuffer_image 1
  107. #define EGL_GL_RENDERBUFFER_KHR 0x30B9 /* eglCreateImageKHR target */
  108. #endif
  109. #ifndef EGL_KHR_reusable_sync
  110. #define EGL_KHR_reusable_sync 1
  111. typedef void* EGLSyncKHR;
  112. typedef khronos_utime_nanoseconds_t EGLTimeKHR;
  113. #define EGL_SYNC_STATUS_KHR 0x30F1
  114. #define EGL_SIGNALED_KHR 0x30F2
  115. #define EGL_UNSIGNALED_KHR 0x30F3
  116. #define EGL_TIMEOUT_EXPIRED_KHR 0x30F5
  117. #define EGL_CONDITION_SATISFIED_KHR 0x30F6
  118. #define EGL_SYNC_TYPE_KHR 0x30F7
  119. #define EGL_SYNC_REUSABLE_KHR 0x30FA
  120. #define EGL_SYNC_FLUSH_COMMANDS_BIT_KHR 0x0001 /* eglClientWaitSyncKHR <flags> bitfield */
  121. #define EGL_FOREVER_KHR 0xFFFFFFFFFFFFFFFFull
  122. #define EGL_NO_SYNC_KHR ((EGLSyncKHR)0)
  123. #ifdef EGL_EGLEXT_PROTOTYPES
  124. EGLAPI EGLSyncKHR EGLAPIENTRY eglCreateSyncKHR(EGLDisplay dpy, EGLenum type, const EGLint *attrib_list);
  125. EGLAPI EGLBoolean EGLAPIENTRY eglDestroySyncKHR(EGLDisplay dpy, EGLSyncKHR sync);
  126. EGLAPI EGLint EGLAPIENTRY eglClientWaitSyncKHR(EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout);
  127. EGLAPI EGLBoolean EGLAPIENTRY eglSignalSyncKHR(EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode);
  128. EGLAPI EGLBoolean EGLAPIENTRY eglGetSyncAttribKHR(EGLDisplay dpy, EGLSyncKHR sync, EGLint attribute, EGLint *value);
  129. #endif /* EGL_EGLEXT_PROTOTYPES */
  130. typedef EGLSyncKHR (EGLAPIENTRYP PFNEGLCREATESYNCKHRPROC) (EGLDisplay dpy, EGLenum type, const EGLint *attrib_list);
  131. typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync);
  132. typedef EGLint (EGLAPIENTRYP PFNEGLCLIENTWAITSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout);
  133. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSIGNALSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode);
  134. typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCATTRIBKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint attribute, EGLint *value);
  135. #endif
  136. /* EGL_MESA_screen extension >>> PRELIMINARY <<< */
  137. #ifndef EGL_MESA_screen_surface
  138. #define EGL_MESA_screen_surface 1
  139. #define EGL_BAD_SCREEN_MESA 0x4000
  140. #define EGL_BAD_MODE_MESA 0x4001
  141. #define EGL_SCREEN_COUNT_MESA 0x4002
  142. #define EGL_SCREEN_POSITION_MESA 0x4003
  143. #define EGL_SCREEN_POSITION_GRANULARITY_MESA 0x4004
  144. #define EGL_MODE_ID_MESA 0x4005
  145. #define EGL_REFRESH_RATE_MESA 0x4006
  146. #define EGL_OPTIMAL_MESA 0x4007
  147. #define EGL_INTERLACED_MESA 0x4008
  148. #define EGL_SCREEN_BIT_MESA 0x08
  149. typedef uint32_t EGLScreenMESA;
  150. typedef uint32_t EGLModeMESA;
  151. #ifdef EGL_EGLEXT_PROTOTYPES
  152. EGLAPI EGLBoolean EGLAPIENTRY eglChooseModeMESA(EGLDisplay dpy, EGLScreenMESA screen, const EGLint *attrib_list, EGLModeMESA *modes, EGLint modes_size, EGLint *num_modes);
  153. EGLAPI EGLBoolean EGLAPIENTRY eglGetModesMESA(EGLDisplay dpy, EGLScreenMESA screen, EGLModeMESA *modes, EGLint modes_size, EGLint *num_modes);
  154. EGLAPI EGLBoolean EGLAPIENTRY eglGetModeAttribMESA(EGLDisplay dpy, EGLModeMESA mode, EGLint attribute, EGLint *value);
  155. EGLAPI EGLBoolean EGLAPIENTRY eglGetScreensMESA(EGLDisplay dpy, EGLScreenMESA *screens, EGLint max_screens, EGLint *num_screens);
  156. EGLAPI EGLSurface EGLAPIENTRY eglCreateScreenSurfaceMESA(EGLDisplay dpy, EGLConfig config, const EGLint *attrib_list);
  157. EGLAPI EGLBoolean EGLAPIENTRY eglShowScreenSurfaceMESA(EGLDisplay dpy, EGLint screen, EGLSurface surface, EGLModeMESA mode);
  158. EGLAPI EGLBoolean EGLAPIENTRY eglScreenPositionMESA(EGLDisplay dpy, EGLScreenMESA screen, EGLint x, EGLint y);
  159. EGLAPI EGLBoolean EGLAPIENTRY eglQueryScreenMESA(EGLDisplay dpy, EGLScreenMESA screen, EGLint attribute, EGLint *value);
  160. EGLAPI EGLBoolean EGLAPIENTRY eglQueryScreenSurfaceMESA(EGLDisplay dpy, EGLScreenMESA screen, EGLSurface *surface);
  161. EGLAPI EGLBoolean EGLAPIENTRY eglQueryScreenModeMESA(EGLDisplay dpy, EGLScreenMESA screen, EGLModeMESA *mode);
  162. EGLAPI const char * EGLAPIENTRY eglQueryModeStringMESA(EGLDisplay dpy, EGLModeMESA mode);
  163. #endif /* EGL_EGLEXT_PROTOTYPES */
  164. typedef EGLBoolean (EGLAPIENTRYP PFNEGLCHOOSEMODEMESA) (EGLDisplay dpy, EGLScreenMESA screen, const EGLint *attrib_list, EGLModeMESA *modes, EGLint modes_size, EGLint *num_modes);
  165. typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETMODESMESA) (EGLDisplay dpy, EGLScreenMESA screen, EGLModeMESA *modes, EGLint modes_size, EGLint *num_modes);
  166. typedef EGLBoolean (EGLAPIENTRYP PFNEGLGetModeATTRIBMESA) (EGLDisplay dpy, EGLModeMESA mode, EGLint attribute, EGLint *value);
  167. typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSCRREENSMESA) (EGLDisplay dpy, EGLScreenMESA *screens, EGLint max_screens, EGLint *num_screens);
  168. typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATESCREENSURFACEMESA) (EGLDisplay dpy, EGLConfig config, const EGLint *attrib_list);
  169. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSHOWSCREENSURFACEMESA) (EGLDisplay dpy, EGLint screen, EGLSurface surface, EGLModeMESA mode);
  170. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSCREENPOSIITONMESA) (EGLDisplay dpy, EGLScreenMESA screen, EGLint x, EGLint y);
  171. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSCREENMESA) (EGLDisplay dpy, EGLScreenMESA screen, EGLint attribute, EGLint *value);
  172. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSCREENSURFACEMESA) (EGLDisplay dpy, EGLScreenMESA screen, EGLSurface *surface);
  173. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSCREENMODEMESA) (EGLDisplay dpy, EGLScreenMESA screen, EGLModeMESA *mode);
  174. typedef const char * (EGLAPIENTRYP PFNEGLQUERYMODESTRINGMESA) (EGLDisplay dpy, EGLModeMESA mode);
  175. #endif /* EGL_MESA_screen_surface */
  176. #ifndef EGL_MESA_copy_context
  177. #define EGL_MESA_copy_context 1
  178. #ifdef EGL_EGLEXT_PROTOTYPES
  179. EGLAPI EGLBoolean EGLAPIENTRY eglCopyContextMESA(EGLDisplay dpy, EGLContext source, EGLContext dest, EGLint mask);
  180. #endif /* EGL_EGLEXT_PROTOTYPES */
  181. typedef EGLBoolean (EGLAPIENTRYP PFNEGLCOPYCONTEXTMESA) (EGLDisplay dpy, EGLContext source, EGLContext dest, EGLint mask);
  182. #endif /* EGL_MESA_copy_context */
  183. #ifndef EGL_KHR_image_base
  184. #define EGL_KHR_image_base 1
  185. /* Most interfaces defined by EGL_KHR_image_pixmap above */
  186. #define EGL_IMAGE_PRESERVED_KHR 0x30D2 /* eglCreateImageKHR attribute */
  187. #endif
  188. #ifndef EGL_KHR_image_pixmap
  189. #define EGL_KHR_image_pixmap 1
  190. /* Interfaces defined by EGL_KHR_image above */
  191. #endif
  192. #ifndef EGL_IMG_context_priority
  193. #define EGL_IMG_context_priority 1
  194. #define EGL_CONTEXT_PRIORITY_LEVEL_IMG 0x3100
  195. #define EGL_CONTEXT_PRIORITY_HIGH_IMG 0x3101
  196. #define EGL_CONTEXT_PRIORITY_MEDIUM_IMG 0x3102
  197. #define EGL_CONTEXT_PRIORITY_LOW_IMG 0x3103
  198. #endif
  199. #ifdef __cplusplus
  200. }
  201. #endif
  202. #endif