eglext.h 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  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. #define EGL_EGLEXT_VERSION 4
  33. #ifndef EGL_KHR_config_attribs
  34. #define EGL_KHR_config_attribs 1
  35. #define EGL_CONFORMANT_KHR 0x3042 /* EGLConfig attribute */
  36. #define EGL_VG_COLORSPACE_LINEAR_BIT_KHR 0x0020 /* EGL_SURFACE_TYPE bitfield */
  37. #define EGL_VG_ALPHA_FORMAT_PRE_BIT_KHR 0x0040 /* EGL_SURFACE_TYPE bitfield */
  38. #endif
  39. #ifndef EGL_KHR_lock_surface
  40. #define EGL_KHR_lock_surface 1
  41. #define EGL_READ_SURFACE_BIT_KHR 0x0001 /* EGL_LOCK_USAGE_HINT_KHR bitfield */
  42. #define EGL_WRITE_SURFACE_BIT_KHR 0x0002 /* EGL_LOCK_USAGE_HINT_KHR bitfield */
  43. #define EGL_LOCK_SURFACE_BIT_KHR 0x0080 /* EGL_SURFACE_TYPE bitfield */
  44. #define EGL_OPTIMAL_FORMAT_BIT_KHR 0x0100 /* EGL_SURFACE_TYPE bitfield */
  45. #define EGL_MATCH_FORMAT_KHR 0x3043 /* EGLConfig attribute */
  46. #define EGL_FORMAT_RGB_565_EXACT_KHR 0x30C0 /* EGL_MATCH_FORMAT_KHR value */
  47. #define EGL_FORMAT_RGB_565_KHR 0x30C1 /* EGL_MATCH_FORMAT_KHR value */
  48. #define EGL_FORMAT_RGBA_8888_EXACT_KHR 0x30C2 /* EGL_MATCH_FORMAT_KHR value */
  49. #define EGL_FORMAT_RGBA_8888_KHR 0x30C3 /* EGL_MATCH_FORMAT_KHR value */
  50. #define EGL_MAP_PRESERVE_PIXELS_KHR 0x30C4 /* eglLockSurfaceKHR attribute */
  51. #define EGL_LOCK_USAGE_HINT_KHR 0x30C5 /* eglLockSurfaceKHR attribute */
  52. #define EGL_BITMAP_POINTER_KHR 0x30C6 /* eglQuerySurface attribute */
  53. #define EGL_BITMAP_PITCH_KHR 0x30C7 /* eglQuerySurface attribute */
  54. #define EGL_BITMAP_ORIGIN_KHR 0x30C8 /* eglQuerySurface attribute */
  55. #define EGL_BITMAP_PIXEL_RED_OFFSET_KHR 0x30C9 /* eglQuerySurface attribute */
  56. #define EGL_BITMAP_PIXEL_GREEN_OFFSET_KHR 0x30CA /* eglQuerySurface attribute */
  57. #define EGL_BITMAP_PIXEL_BLUE_OFFSET_KHR 0x30CB /* eglQuerySurface attribute */
  58. #define EGL_BITMAP_PIXEL_ALPHA_OFFSET_KHR 0x30CC /* eglQuerySurface attribute */
  59. #define EGL_BITMAP_PIXEL_LUMINANCE_OFFSET_KHR 0x30CD /* eglQuerySurface attribute */
  60. #define EGL_LOWER_LEFT_KHR 0x30CE /* EGL_BITMAP_ORIGIN_KHR value */
  61. #define EGL_UPPER_LEFT_KHR 0x30CF /* EGL_BITMAP_ORIGIN_KHR value */
  62. #ifdef EGL_EGLEXT_PROTOTYPES
  63. EGLAPI EGLBoolean EGLAPIENTRY eglLockSurfaceKHR (EGLDisplay display, EGLSurface surface, const EGLint *attrib_list);
  64. EGLAPI EGLBoolean EGLAPIENTRY eglUnlockSurfaceKHR (EGLDisplay display, EGLSurface surface);
  65. #endif /* EGL_EGLEXT_PROTOTYPES */
  66. typedef EGLBoolean (EGLAPIENTRYP PFNEGLLOCKSURFACEKHRPROC) (EGLDisplay display, EGLSurface surface, const EGLint *attrib_list);
  67. typedef EGLBoolean (EGLAPIENTRYP PFNEGLUNLOCKSURFACEKHRPROC) (EGLDisplay display, EGLSurface surface);
  68. #endif
  69. #ifndef EGL_KHR_image
  70. #define EGL_KHR_image 1
  71. #define EGL_NATIVE_PIXMAP_KHR 0x30B0 /* eglCreateImageKHR target */
  72. typedef void *EGLImageKHR;
  73. #define EGL_NO_IMAGE_KHR ((EGLImageKHR)0)
  74. #ifdef EGL_EGLEXT_PROTOTYPES
  75. EGLAPI EGLImageKHR EGLAPIENTRY eglCreateImageKHR (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list);
  76. EGLAPI EGLBoolean EGLAPIENTRY eglDestroyImageKHR (EGLDisplay dpy, EGLImageKHR image);
  77. #endif /* EGL_EGLEXT_PROTOTYPES */
  78. typedef EGLImageKHR (EGLAPIENTRYP PFNEGLCREATEIMAGEKHRPROC) (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list);
  79. typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYIMAGEKHRPROC) (EGLDisplay dpy, EGLImageKHR image);
  80. #endif
  81. #ifndef EGL_KHR_vg_parent_image
  82. #define EGL_KHR_vg_parent_image 1
  83. #define EGL_VG_PARENT_IMAGE_KHR 0x30BA /* eglCreateImageKHR target */
  84. #endif
  85. #ifndef EGL_KHR_gl_texture_2D_image
  86. #define EGL_KHR_gl_texture_2D_image 1
  87. #define EGL_GL_TEXTURE_2D_KHR 0x30B1 /* eglCreateImageKHR target */
  88. #define EGL_GL_TEXTURE_LEVEL_KHR 0x30BC /* eglCreateImageKHR attribute */
  89. #endif
  90. #ifndef EGL_KHR_gl_texture_cubemap_image
  91. #define EGL_KHR_gl_texture_cubemap_image 1
  92. #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_X_KHR 0x30B3 /* eglCreateImageKHR target */
  93. #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_X_KHR 0x30B4 /* eglCreateImageKHR target */
  94. #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Y_KHR 0x30B5 /* eglCreateImageKHR target */
  95. #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_KHR 0x30B6 /* eglCreateImageKHR target */
  96. #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Z_KHR 0x30B7 /* eglCreateImageKHR target */
  97. #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_KHR 0x30B8 /* eglCreateImageKHR target */
  98. #endif
  99. #ifndef EGL_KHR_gl_texture_3D_image
  100. #define EGL_KHR_gl_texture_3D_image 1
  101. #define EGL_GL_TEXTURE_3D_KHR 0x30B2 /* eglCreateImageKHR target */
  102. #define EGL_GL_TEXTURE_ZOFFSET_KHR 0x30BD /* eglCreateImageKHR attribute */
  103. #endif
  104. #ifndef EGL_KHR_gl_renderbuffer_image
  105. #define EGL_KHR_gl_renderbuffer_image 1
  106. #define EGL_GL_RENDERBUFFER_KHR 0x30B9 /* eglCreateImageKHR target */
  107. #endif
  108. #ifndef EGL_KHR_reusable_sync
  109. #define EGL_KHR_reusable_sync 1
  110. typedef void* EGLSyncKHR;
  111. typedef khronos_utime_nanoseconds_t EGLTimeKHR;
  112. #define EGL_SYNC_STATUS_KHR 0x30F1
  113. #define EGL_SIGNALED_KHR 0x30F2
  114. #define EGL_UNSIGNALED_KHR 0x30F3
  115. #define EGL_TIMEOUT_EXPIRED_KHR 0x30F5
  116. #define EGL_CONDITION_SATISFIED_KHR 0x30F6
  117. #define EGL_SYNC_TYPE_KHR 0x30F7
  118. #define EGL_SYNC_REUSABLE_KHR 0x30FA
  119. #define EGL_SYNC_FLUSH_COMMANDS_BIT_KHR 0x0001 /* eglClientWaitSyncKHR <flags> bitfield */
  120. #define EGL_FOREVER_KHR 0xFFFFFFFFFFFFFFFFull
  121. #define EGL_NO_SYNC_KHR ((EGLSyncKHR)0)
  122. #ifdef EGL_EGLEXT_PROTOTYPES
  123. EGLAPI EGLSyncKHR EGLAPIENTRY eglCreateSyncKHR(EGLDisplay dpy, EGLenum type, const EGLint *attrib_list);
  124. EGLAPI EGLBoolean EGLAPIENTRY eglDestroySyncKHR(EGLDisplay dpy, EGLSyncKHR sync);
  125. EGLAPI EGLint EGLAPIENTRY eglClientWaitSyncKHR(EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout);
  126. EGLAPI EGLBoolean EGLAPIENTRY eglSignalSyncKHR(EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode);
  127. EGLAPI EGLBoolean EGLAPIENTRY eglGetSyncAttribKHR(EGLDisplay dpy, EGLSyncKHR sync, EGLint attribute, EGLint *value);
  128. #endif /* EGL_EGLEXT_PROTOTYPES */
  129. typedef EGLSyncKHR (EGLAPIENTRYP PFNEGLCREATESYNCKHR) (EGLDisplay dpy, EGLenum type, const EGLint *attrib_list);
  130. typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSYNCKHR) (EGLDisplay dpy, EGLSyncKHR sync);
  131. typedef EGLint (EGLAPIENTRYP PFNEGLCLIENTWAITSYNCKHR) (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout);
  132. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSIGNALSYNCKHR) (EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode);
  133. typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCATTRIBKHR) (EGLDisplay dpy, EGLSyncKHR sync, EGLint attribute, EGLint *value);
  134. #endif
  135. #ifndef EGL_KHR_image_base
  136. #define EGL_KHR_image_base 1
  137. /* Most interfaces defined by EGL_KHR_image_pixmap above */
  138. #define EGL_IMAGE_PRESERVED_KHR 0x30D2 /* eglCreateImageKHR attribute */
  139. #endif
  140. #ifndef EGL_KHR_image_pixmap
  141. #define EGL_KHR_image_pixmap 1
  142. /* Interfaces defined by EGL_KHR_image above */
  143. #endif
  144. #ifndef EGL_IMG_context_priority
  145. #define EGL_IMG_context_priority 1
  146. #define EGL_CONTEXT_PRIORITY_LEVEL_IMG 0x3100
  147. #define EGL_CONTEXT_PRIORITY_HIGH_IMG 0x3101
  148. #define EGL_CONTEXT_PRIORITY_MEDIUM_IMG 0x3102
  149. #define EGL_CONTEXT_PRIORITY_LOW_IMG 0x3103
  150. #endif
  151. #ifdef __cplusplus
  152. }
  153. #endif
  154. #endif