35 #ifndef __khrplatform_h_
36 #define __khrplatform_h_
134 #if defined(_WIN32) && !defined(__SCITECH_SNAP__)
135 # define KHRONOS_APICALL __declspec(dllimport)
136 #elif defined (__SYMBIAN32__)
137 # define KHRONOS_APICALL IMPORT_C
139 # define KHRONOS_APICALL
148 #if defined(_WIN32) && !defined(_WIN32_WCE) && !defined(__SCITECH_SNAP__)
150 # define KHRONOS_APIENTRY __stdcall
152 # define KHRONOS_APIENTRY
160 #if defined (__ARMCC_2__)
161 #define KHRONOS_APIATTRIBUTES __softfp
163 #define KHRONOS_APIATTRIBUTES
169 #if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || defined(__GNUC__) || defined(__SCO__) || defined(__USLC__)
176 typedef int32_t khronos_int32_t;
177 typedef uint32_t khronos_uint32_t;
178 typedef int64_t khronos_int64_t;
179 typedef uint64_t khronos_uint64_t;
180 #define KHRONOS_SUPPORT_INT64 1
181 #define KHRONOS_SUPPORT_FLOAT 1
183 #elif defined(__VMS ) || defined(__sgi)
188 #include <inttypes.h>
189 typedef int32_t khronos_int32_t;
190 typedef uint32_t khronos_uint32_t;
191 typedef int64_t khronos_int64_t;
192 typedef uint64_t khronos_uint64_t;
193 #define KHRONOS_SUPPORT_INT64 1
194 #define KHRONOS_SUPPORT_FLOAT 1
196 #elif defined(_WIN32) && !defined(__SCITECH_SNAP__)
201 typedef __int32 khronos_int32_t;
202 typedef unsigned __int32 khronos_uint32_t;
203 typedef __int64 khronos_int64_t;
204 typedef unsigned __int64 khronos_uint64_t;
205 #define KHRONOS_SUPPORT_INT64 1
206 #define KHRONOS_SUPPORT_FLOAT 1
208 #elif defined(__sun__) || defined(__digital__)
213 typedef int khronos_int32_t;
214 typedef unsigned int khronos_uint32_t;
215 #if defined(__arch64__) || defined(_LP64)
216 typedef long int khronos_int64_t;
217 typedef unsigned long int khronos_uint64_t;
219 typedef long long int khronos_int64_t;
220 typedef unsigned long long int khronos_uint64_t;
222 #define KHRONOS_SUPPORT_INT64 1
223 #define KHRONOS_SUPPORT_FLOAT 1
230 typedef int khronos_int32_t;
231 typedef unsigned int khronos_uint32_t;
232 #define KHRONOS_SUPPORT_INT64 0
233 #define KHRONOS_SUPPORT_FLOAT 0
241 typedef int32_t khronos_int32_t;
242 typedef uint32_t khronos_uint32_t;
243 typedef int64_t khronos_int64_t;
244 typedef uint64_t khronos_uint64_t;
245 #define KHRONOS_SUPPORT_INT64 1
246 #define KHRONOS_SUPPORT_FLOAT 1
254 typedef signed char khronos_int8_t;
255 typedef unsigned char khronos_uint8_t;
256 typedef signed short int khronos_int16_t;
257 typedef unsigned short int khronos_uint16_t;
265 typedef signed long long int khronos_intptr_t;
266 typedef unsigned long long int khronos_uintptr_t;
267 typedef signed long long int khronos_ssize_t;
268 typedef unsigned long long int khronos_usize_t;
270 typedef signed long int khronos_intptr_t;
271 typedef unsigned long int khronos_uintptr_t;
272 typedef signed long int khronos_ssize_t;
273 typedef unsigned long int khronos_usize_t;
276 #if KHRONOS_SUPPORT_FLOAT
280 typedef float khronos_float_t;
283 #if KHRONOS_SUPPORT_INT64
293 typedef khronos_uint64_t khronos_utime_nanoseconds_t;
294 typedef khronos_int64_t khronos_stime_nanoseconds_t;
300 #ifndef KHRONOS_MAX_ENUM
301 #define KHRONOS_MAX_ENUM 0x7FFFFFFF
313 KHRONOS_BOOLEAN_ENUM_FORCE_SIZE = KHRONOS_MAX_ENUM
314 } khronos_boolean_enum_t;
319 #ifndef __eglplatform_h_
320 #define __eglplatform_h_
368 #define EGLAPI KHRONOS_APICALL
372 #define EGLAPIENTRY KHRONOS_APIENTRY
374 #define EGLAPIENTRYP EGLAPIENTRY*
388 #if defined(_WIN32) || defined(__VC32__) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__)
389 #ifndef WIN32_LEAN_AND_MEAN
390 #define WIN32_LEAN_AND_MEAN 1
396 typedef IUnknown * EGLNativeWindowType;
397 typedef int EGLNativeDisplayType;
398 typedef HBITMAP EGLNativePixmapType;
400 typedef HDC EGLNativeDisplayType;
401 typedef HBITMAP EGLNativePixmapType;
402 typedef HWND EGLNativeWindowType;
405 #elif defined(__WINSCW__) || defined(__SYMBIAN32__)
407 typedef int EGLNativeDisplayType;
408 typedef void *EGLNativeWindowType;
409 typedef void *EGLNativePixmapType;
411 #elif defined(WL_EGL_PLATFORM)
413 typedef struct wl_display *EGLNativeDisplayType;
414 typedef struct wl_egl_pixmap *EGLNativePixmapType;
415 typedef struct wl_egl_window *EGLNativeWindowType;
417 #elif defined(__GBM__)
419 typedef struct gbm_device *EGLNativeDisplayType;
420 typedef struct gbm_bo *EGLNativePixmapType;
421 typedef void *EGLNativeWindowType;
423 #elif defined(ANDROID)
425 struct ANativeWindow;
426 struct egl_native_pixmap_t;
428 typedef struct ANativeWindow *EGLNativeWindowType;
429 typedef struct egl_native_pixmap_t *EGLNativePixmapType;
430 typedef void *EGLNativeDisplayType;
432 #elif defined(MIR_EGL_PLATFORM)
434 #include <mir_toolkit/mir_client_library.h>
435 typedef MirEGLNativeDisplayType EGLNativeDisplayType;
436 typedef void *EGLNativePixmapType;
437 typedef MirEGLNativeWindowType EGLNativeWindowType;
439 #elif defined(__unix__)
441 #ifdef MESA_EGL_NO_X11_HEADERS
443 typedef void *EGLNativeDisplayType;
444 typedef khronos_uintptr_t EGLNativePixmapType;
445 typedef khronos_uintptr_t EGLNativeWindowType;
450 #include <X11/Xlib.h>
451 #include <X11/Xutil.h>
453 typedef Display *EGLNativeDisplayType;
454 typedef Pixmap EGLNativePixmapType;
455 typedef Window EGLNativeWindowType;
460 #error "Platform not recognized"
464 typedef EGLNativeDisplayType NativeDisplayType;
465 typedef EGLNativePixmapType NativePixmapType;
466 typedef EGLNativeWindowType NativeWindowType;
476 typedef khronos_int32_t EGLint;
523 typedef unsigned int EGLBoolean;
524 typedef unsigned int EGLenum;
525 typedef void *EGLConfig;
526 typedef void *EGLContext;
527 typedef void *EGLDisplay;
528 typedef void *EGLSurface;
529 typedef void *EGLClientBuffer;
532 #define EGL_VERSION_1_0 1
533 #define EGL_VERSION_1_1 1
534 #define EGL_VERSION_1_2 1
535 #define EGL_VERSION_1_3 1
536 #define EGL_VERSION_1_4 1
547 #define EGL_DEFAULT_DISPLAY ((EGLNativeDisplayType)0)
548 #define EGL_NO_CONTEXT ((EGLContext)0)
549 #define EGL_NO_DISPLAY ((EGLDisplay)0)
550 #define EGL_NO_SURFACE ((EGLSurface)0)
553 #define EGL_DONT_CARE ((EGLint)-1)
556 #define EGL_SUCCESS 0x3000
557 #define EGL_NOT_INITIALIZED 0x3001
558 #define EGL_BAD_ACCESS 0x3002
559 #define EGL_BAD_ALLOC 0x3003
560 #define EGL_BAD_ATTRIBUTE 0x3004
561 #define EGL_BAD_CONFIG 0x3005
562 #define EGL_BAD_CONTEXT 0x3006
563 #define EGL_BAD_CURRENT_SURFACE 0x3007
564 #define EGL_BAD_DISPLAY 0x3008
565 #define EGL_BAD_MATCH 0x3009
566 #define EGL_BAD_NATIVE_PIXMAP 0x300A
567 #define EGL_BAD_NATIVE_WINDOW 0x300B
568 #define EGL_BAD_PARAMETER 0x300C
569 #define EGL_BAD_SURFACE 0x300D
570 #define EGL_CONTEXT_LOST 0x300E
575 #define EGL_BUFFER_SIZE 0x3020
576 #define EGL_ALPHA_SIZE 0x3021
577 #define EGL_BLUE_SIZE 0x3022
578 #define EGL_GREEN_SIZE 0x3023
579 #define EGL_RED_SIZE 0x3024
580 #define EGL_DEPTH_SIZE 0x3025
581 #define EGL_STENCIL_SIZE 0x3026
582 #define EGL_CONFIG_CAVEAT 0x3027
583 #define EGL_CONFIG_ID 0x3028
584 #define EGL_LEVEL 0x3029
585 #define EGL_MAX_PBUFFER_HEIGHT 0x302A
586 #define EGL_MAX_PBUFFER_PIXELS 0x302B
587 #define EGL_MAX_PBUFFER_WIDTH 0x302C
588 #define EGL_NATIVE_RENDERABLE 0x302D
589 #define EGL_NATIVE_VISUAL_ID 0x302E
590 #define EGL_NATIVE_VISUAL_TYPE 0x302F
591 #define EGL_SAMPLES 0x3031
592 #define EGL_SAMPLE_BUFFERS 0x3032
593 #define EGL_SURFACE_TYPE 0x3033
594 #define EGL_TRANSPARENT_TYPE 0x3034
595 #define EGL_TRANSPARENT_BLUE_VALUE 0x3035
596 #define EGL_TRANSPARENT_GREEN_VALUE 0x3036
597 #define EGL_TRANSPARENT_RED_VALUE 0x3037
598 #define EGL_NONE 0x3038
599 #define EGL_BIND_TO_TEXTURE_RGB 0x3039
600 #define EGL_BIND_TO_TEXTURE_RGBA 0x303A
601 #define EGL_MIN_SWAP_INTERVAL 0x303B
602 #define EGL_MAX_SWAP_INTERVAL 0x303C
603 #define EGL_LUMINANCE_SIZE 0x303D
604 #define EGL_ALPHA_MASK_SIZE 0x303E
605 #define EGL_COLOR_BUFFER_TYPE 0x303F
606 #define EGL_RENDERABLE_TYPE 0x3040
607 #define EGL_MATCH_NATIVE_PIXMAP 0x3041
608 #define EGL_CONFORMANT 0x3042
613 #define EGL_SLOW_CONFIG 0x3050
614 #define EGL_NON_CONFORMANT_CONFIG 0x3051
615 #define EGL_TRANSPARENT_RGB 0x3052
616 #define EGL_RGB_BUFFER 0x308E
617 #define EGL_LUMINANCE_BUFFER 0x308F
620 #define EGL_NO_TEXTURE 0x305C
621 #define EGL_TEXTURE_RGB 0x305D
622 #define EGL_TEXTURE_RGBA 0x305E
623 #define EGL_TEXTURE_2D 0x305F
626 #define EGL_PBUFFER_BIT 0x0001
627 #define EGL_PIXMAP_BIT 0x0002
628 #define EGL_WINDOW_BIT 0x0004
629 #define EGL_VG_COLORSPACE_LINEAR_BIT 0x0020
630 #define EGL_VG_ALPHA_FORMAT_PRE_BIT 0x0040
631 #define EGL_MULTISAMPLE_RESOLVE_BOX_BIT 0x0200
632 #define EGL_SWAP_BEHAVIOR_PRESERVED_BIT 0x0400
634 #define EGL_OPENGL_ES_BIT 0x0001
635 #define EGL_OPENVG_BIT 0x0002
636 #define EGL_OPENGL_ES2_BIT 0x0004
637 #define EGL_OPENGL_BIT 0x0008
640 #define EGL_VENDOR 0x3053
641 #define EGL_VERSION 0x3054
642 #define EGL_EXTENSIONS 0x3055
643 #define EGL_CLIENT_APIS 0x308D
646 #define EGL_HEIGHT 0x3056
647 #define EGL_WIDTH 0x3057
648 #define EGL_LARGEST_PBUFFER 0x3058
649 #define EGL_TEXTURE_FORMAT 0x3080
650 #define EGL_TEXTURE_TARGET 0x3081
651 #define EGL_MIPMAP_TEXTURE 0x3082
652 #define EGL_MIPMAP_LEVEL 0x3083
653 #define EGL_RENDER_BUFFER 0x3086
654 #define EGL_VG_COLORSPACE 0x3087
655 #define EGL_VG_ALPHA_FORMAT 0x3088
656 #define EGL_HORIZONTAL_RESOLUTION 0x3090
657 #define EGL_VERTICAL_RESOLUTION 0x3091
658 #define EGL_PIXEL_ASPECT_RATIO 0x3092
659 #define EGL_SWAP_BEHAVIOR 0x3093
660 #define EGL_MULTISAMPLE_RESOLVE 0x3099
663 #define EGL_BACK_BUFFER 0x3084
664 #define EGL_SINGLE_BUFFER 0x3085
667 #define EGL_VG_COLORSPACE_sRGB 0x3089
668 #define EGL_VG_COLORSPACE_LINEAR 0x308A
671 #define EGL_VG_ALPHA_FORMAT_NONPRE 0x308B
672 #define EGL_VG_ALPHA_FORMAT_PRE 0x308C
677 #define EGL_DISPLAY_SCALING 10000
680 #define EGL_UNKNOWN ((EGLint)-1)
683 #define EGL_BUFFER_PRESERVED 0x3094
684 #define EGL_BUFFER_DESTROYED 0x3095
687 #define EGL_OPENVG_IMAGE 0x3096
690 #define EGL_CONTEXT_CLIENT_TYPE 0x3097
693 #define EGL_CONTEXT_CLIENT_VERSION 0x3098
696 #define EGL_MULTISAMPLE_RESOLVE_DEFAULT 0x309A
697 #define EGL_MULTISAMPLE_RESOLVE_BOX 0x309B
700 #define EGL_OPENGL_ES_API 0x30A0
701 #define EGL_OPENVG_API 0x30A1
702 #define EGL_OPENGL_API 0x30A2
705 #define EGL_DRAW 0x3059
706 #define EGL_READ 0x305A
709 #define EGL_CORE_NATIVE_ENGINE 0x305B
712 #define EGL_COLORSPACE EGL_VG_COLORSPACE
713 #define EGL_ALPHA_FORMAT EGL_VG_ALPHA_FORMAT
714 #define EGL_COLORSPACE_sRGB EGL_VG_COLORSPACE_sRGB
715 #define EGL_COLORSPACE_LINEAR EGL_VG_COLORSPACE_LINEAR
716 #define EGL_ALPHA_FORMAT_NONPRE EGL_VG_ALPHA_FORMAT_NONPRE
717 #define EGL_ALPHA_FORMAT_PRE EGL_VG_ALPHA_FORMAT_PRE
728 EGLAPI EGLint EGLAPIENTRY eglGetError(
void);
730 EGLAPI EGLDisplay EGLAPIENTRY eglGetDisplay(EGLNativeDisplayType display_id);
731 EGLAPI EGLBoolean EGLAPIENTRY eglInitialize(EGLDisplay dpy, EGLint *major, EGLint *minor);
732 EGLAPI EGLBoolean EGLAPIENTRY eglTerminate(EGLDisplay dpy);
734 EGLAPI
const char * EGLAPIENTRY eglQueryString(EGLDisplay dpy, EGLint name);
736 EGLAPI EGLBoolean EGLAPIENTRY eglGetConfigs(EGLDisplay dpy, EGLConfig *configs,
737 EGLint config_size, EGLint *num_config);
738 EGLAPI EGLBoolean EGLAPIENTRY eglChooseConfig(EGLDisplay dpy,
const EGLint *attrib_list,
739 EGLConfig *configs, EGLint config_size,
741 EGLAPI EGLBoolean EGLAPIENTRY eglGetConfigAttrib(EGLDisplay dpy, EGLConfig config,
742 EGLint attribute, EGLint *value);
744 EGLAPI EGLSurface EGLAPIENTRY eglCreateWindowSurface(EGLDisplay dpy, EGLConfig config,
745 EGLNativeWindowType win,
746 const EGLint *attrib_list);
747 EGLAPI EGLSurface EGLAPIENTRY eglCreatePbufferSurface(EGLDisplay dpy, EGLConfig config,
748 const EGLint *attrib_list);
749 EGLAPI EGLSurface EGLAPIENTRY eglCreatePixmapSurface(EGLDisplay dpy, EGLConfig config,
750 EGLNativePixmapType pixmap,
751 const EGLint *attrib_list);
752 EGLAPI EGLBoolean EGLAPIENTRY eglDestroySurface(EGLDisplay dpy, EGLSurface surface);
753 EGLAPI EGLBoolean EGLAPIENTRY eglQuerySurface(EGLDisplay dpy, EGLSurface surface,
754 EGLint attribute, EGLint *value);
756 EGLAPI EGLBoolean EGLAPIENTRY eglBindAPI(EGLenum api);
757 EGLAPI EGLenum EGLAPIENTRY eglQueryAPI(
void);
759 EGLAPI EGLBoolean EGLAPIENTRY eglWaitClient(
void);
761 EGLAPI EGLBoolean EGLAPIENTRY eglReleaseThread(
void);
763 EGLAPI EGLSurface EGLAPIENTRY eglCreatePbufferFromClientBuffer(
764 EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer,
765 EGLConfig config,
const EGLint *attrib_list);
767 EGLAPI EGLBoolean EGLAPIENTRY eglSurfaceAttrib(EGLDisplay dpy, EGLSurface surface,
768 EGLint attribute, EGLint value);
769 EGLAPI EGLBoolean EGLAPIENTRY eglBindTexImage(EGLDisplay dpy, EGLSurface surface, EGLint buffer);
770 EGLAPI EGLBoolean EGLAPIENTRY eglReleaseTexImage(EGLDisplay dpy, EGLSurface surface, EGLint buffer);
773 EGLAPI EGLBoolean EGLAPIENTRY eglSwapInterval(EGLDisplay dpy, EGLint interval);
776 EGLAPI EGLContext EGLAPIENTRY eglCreateContext(EGLDisplay dpy, EGLConfig config,
777 EGLContext share_context,
778 const EGLint *attrib_list);
779 EGLAPI EGLBoolean EGLAPIENTRY eglDestroyContext(EGLDisplay dpy, EGLContext ctx);
780 EGLAPI EGLBoolean EGLAPIENTRY eglMakeCurrent(EGLDisplay dpy, EGLSurface draw,
781 EGLSurface read, EGLContext ctx);
783 EGLAPI EGLContext EGLAPIENTRY eglGetCurrentContext(
void);
784 EGLAPI EGLSurface EGLAPIENTRY eglGetCurrentSurface(EGLint readdraw);
785 EGLAPI EGLDisplay EGLAPIENTRY eglGetCurrentDisplay(
void);
786 EGLAPI EGLBoolean EGLAPIENTRY eglQueryContext(EGLDisplay dpy, EGLContext ctx,
787 EGLint attribute, EGLint *value);
789 EGLAPI EGLBoolean EGLAPIENTRY eglWaitGL(
void);
790 EGLAPI EGLBoolean EGLAPIENTRY eglWaitNative(EGLint engine);
791 EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffers(EGLDisplay dpy, EGLSurface surface);
792 EGLAPI EGLBoolean EGLAPIENTRY eglCopyBuffers(EGLDisplay dpy, EGLSurface surface,
793 EGLNativePixmapType target);
798 typedef void(*__eglMustCastToProperFunctionPointerType)(
void);
801 EGLAPI __eglMustCastToProperFunctionPointerType EGLAPIENTRY
802 eglGetProcAddress(
const char *procname);
850 #define EGL_EGLEXT_VERSION 16
852 #ifndef EGL_KHR_config_attribs
853 #define EGL_KHR_config_attribs 1
854 #define EGL_CONFORMANT_KHR 0x3042
855 #define EGL_VG_COLORSPACE_LINEAR_BIT_KHR 0x0020
856 #define EGL_VG_ALPHA_FORMAT_PRE_BIT_KHR 0x0040
859 #ifndef EGL_KHR_lock_surface
860 #define EGL_KHR_lock_surface 1
861 #define EGL_READ_SURFACE_BIT_KHR 0x0001
862 #define EGL_WRITE_SURFACE_BIT_KHR 0x0002
863 #define EGL_LOCK_SURFACE_BIT_KHR 0x0080
864 #define EGL_OPTIMAL_FORMAT_BIT_KHR 0x0100
865 #define EGL_MATCH_FORMAT_KHR 0x3043
866 #define EGL_FORMAT_RGB_565_EXACT_KHR 0x30C0
867 #define EGL_FORMAT_RGB_565_KHR 0x30C1
868 #define EGL_FORMAT_RGBA_8888_EXACT_KHR 0x30C2
869 #define EGL_FORMAT_RGBA_8888_KHR 0x30C3
870 #define EGL_MAP_PRESERVE_PIXELS_KHR 0x30C4
871 #define EGL_LOCK_USAGE_HINT_KHR 0x30C5
872 #define EGL_BITMAP_POINTER_KHR 0x30C6
873 #define EGL_BITMAP_PITCH_KHR 0x30C7
874 #define EGL_BITMAP_ORIGIN_KHR 0x30C8
875 #define EGL_BITMAP_PIXEL_RED_OFFSET_KHR 0x30C9
876 #define EGL_BITMAP_PIXEL_GREEN_OFFSET_KHR 0x30CA
877 #define EGL_BITMAP_PIXEL_BLUE_OFFSET_KHR 0x30CB
878 #define EGL_BITMAP_PIXEL_ALPHA_OFFSET_KHR 0x30CC
879 #define EGL_BITMAP_PIXEL_LUMINANCE_OFFSET_KHR 0x30CD
880 #define EGL_LOWER_LEFT_KHR 0x30CE
881 #define EGL_UPPER_LEFT_KHR 0x30CF
882 #ifdef EGL_EGLEXT_PROTOTYPES
883 EGLAPI EGLBoolean EGLAPIENTRY eglLockSurfaceKHR(EGLDisplay display, EGLSurface surface,
const EGLint *attrib_list);
884 EGLAPI EGLBoolean EGLAPIENTRY eglUnlockSurfaceKHR(EGLDisplay display, EGLSurface surface);
886 typedef EGLBoolean(EGLAPIENTRYP PFNEGLLOCKSURFACEKHRPROC) (EGLDisplay display, EGLSurface surface,
const EGLint *attrib_list);
887 typedef EGLBoolean(EGLAPIENTRYP PFNEGLUNLOCKSURFACEKHRPROC) (EGLDisplay display, EGLSurface surface);
890 #ifndef EGL_KHR_image
891 #define EGL_KHR_image 1
892 #define EGL_NATIVE_PIXMAP_KHR 0x30B0
893 typedef void *EGLImageKHR;
894 #define EGL_NO_IMAGE_KHR ((EGLImageKHR)0)
895 #ifdef EGL_EGLEXT_PROTOTYPES
896 EGLAPI EGLImageKHR EGLAPIENTRY eglCreateImageKHR(EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer,
const EGLint *attrib_list);
897 EGLAPI EGLBoolean EGLAPIENTRY eglDestroyImageKHR(EGLDisplay dpy, EGLImageKHR image);
899 typedef EGLImageKHR(EGLAPIENTRYP PFNEGLCREATEIMAGEKHRPROC) (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer,
const EGLint *attrib_list);
900 typedef EGLBoolean(EGLAPIENTRYP PFNEGLDESTROYIMAGEKHRPROC) (EGLDisplay dpy, EGLImageKHR image);
903 #ifndef EGL_KHR_vg_parent_image
904 #define EGL_KHR_vg_parent_image 1
905 #define EGL_VG_PARENT_IMAGE_KHR 0x30BA
908 #ifndef EGL_KHR_gl_texture_2D_image
909 #define EGL_KHR_gl_texture_2D_image 1
910 #define EGL_GL_TEXTURE_2D_KHR 0x30B1
911 #define EGL_GL_TEXTURE_LEVEL_KHR 0x30BC
914 #ifndef EGL_KHR_gl_texture_cubemap_image
915 #define EGL_KHR_gl_texture_cubemap_image 1
916 #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_X_KHR 0x30B3
917 #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_X_KHR 0x30B4
918 #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Y_KHR 0x30B5
919 #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_KHR 0x30B6
920 #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Z_KHR 0x30B7
921 #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_KHR 0x30B8
924 #ifndef EGL_KHR_gl_texture_3D_image
925 #define EGL_KHR_gl_texture_3D_image 1
926 #define EGL_GL_TEXTURE_3D_KHR 0x30B2
927 #define EGL_GL_TEXTURE_ZOFFSET_KHR 0x30BD
930 #ifndef EGL_KHR_gl_renderbuffer_image
931 #define EGL_KHR_gl_renderbuffer_image 1
932 #define EGL_GL_RENDERBUFFER_KHR 0x30B9
935 #if KHRONOS_SUPPORT_INT64
936 #ifndef EGL_KHR_reusable_sync
937 #define EGL_KHR_reusable_sync 1
939 typedef void* EGLSyncKHR;
940 typedef khronos_utime_nanoseconds_t EGLTimeKHR;
942 #define EGL_SYNC_STATUS_KHR 0x30F1
943 #define EGL_SIGNALED_KHR 0x30F2
944 #define EGL_UNSIGNALED_KHR 0x30F3
945 #define EGL_TIMEOUT_EXPIRED_KHR 0x30F5
946 #define EGL_CONDITION_SATISFIED_KHR 0x30F6
947 #define EGL_SYNC_TYPE_KHR 0x30F7
948 #define EGL_SYNC_REUSABLE_KHR 0x30FA
949 #define EGL_SYNC_FLUSH_COMMANDS_BIT_KHR 0x0001
950 #define EGL_FOREVER_KHR 0xFFFFFFFFFFFFFFFFull
951 #define EGL_NO_SYNC_KHR ((EGLSyncKHR)0)
952 #ifdef EGL_EGLEXT_PROTOTYPES
953 EGLAPI EGLSyncKHR EGLAPIENTRY eglCreateSyncKHR(EGLDisplay dpy, EGLenum type,
const EGLint *attrib_list);
954 EGLAPI EGLBoolean EGLAPIENTRY eglDestroySyncKHR(EGLDisplay dpy, EGLSyncKHR sync);
955 EGLAPI EGLint EGLAPIENTRY eglClientWaitSyncKHR(EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout);
956 EGLAPI EGLBoolean EGLAPIENTRY eglSignalSyncKHR(EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode);
957 EGLAPI EGLBoolean EGLAPIENTRY eglGetSyncAttribKHR(EGLDisplay dpy, EGLSyncKHR sync, EGLint attribute, EGLint *value);
959 typedef EGLSyncKHR(EGLAPIENTRYP PFNEGLCREATESYNCKHRPROC) (EGLDisplay dpy, EGLenum type,
const EGLint *attrib_list);
960 typedef EGLBoolean(EGLAPIENTRYP PFNEGLDESTROYSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync);
961 typedef EGLint(EGLAPIENTRYP PFNEGLCLIENTWAITSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout);
962 typedef EGLBoolean(EGLAPIENTRYP PFNEGLSIGNALSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode);
963 typedef EGLBoolean(EGLAPIENTRYP PFNEGLGETSYNCATTRIBKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint attribute, EGLint *value);
967 #ifndef EGL_KHR_image_base
968 #define EGL_KHR_image_base 1
970 #define EGL_IMAGE_PRESERVED_KHR 0x30D2
973 #ifndef EGL_KHR_image_pixmap
974 #define EGL_KHR_image_pixmap 1
978 #ifndef EGL_IMG_context_priority
979 #define EGL_IMG_context_priority 1
980 #define EGL_CONTEXT_PRIORITY_LEVEL_IMG 0x3100
981 #define EGL_CONTEXT_PRIORITY_HIGH_IMG 0x3101
982 #define EGL_CONTEXT_PRIORITY_MEDIUM_IMG 0x3102
983 #define EGL_CONTEXT_PRIORITY_LOW_IMG 0x3103
986 #ifndef EGL_KHR_lock_surface2
987 #define EGL_KHR_lock_surface2 1
988 #define EGL_BITMAP_PIXEL_SIZE_KHR 0x3110
991 #ifndef EGL_NV_coverage_sample
992 #define EGL_NV_coverage_sample 1
993 #define EGL_COVERAGE_BUFFERS_NV 0x30E0
994 #define EGL_COVERAGE_SAMPLES_NV 0x30E1
997 #ifndef EGL_NV_depth_nonlinear
998 #define EGL_NV_depth_nonlinear 1
999 #define EGL_DEPTH_ENCODING_NV 0x30E2
1000 #define EGL_DEPTH_ENCODING_NONE_NV 0
1001 #define EGL_DEPTH_ENCODING_NONLINEAR_NV 0x30E3
1004 #if KHRONOS_SUPPORT_INT64
1006 #define EGL_NV_sync 1
1007 #define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_NV 0x30E6
1008 #define EGL_SYNC_STATUS_NV 0x30E7
1009 #define EGL_SIGNALED_NV 0x30E8
1010 #define EGL_UNSIGNALED_NV 0x30E9
1011 #define EGL_SYNC_FLUSH_COMMANDS_BIT_NV 0x0001
1012 #define EGL_FOREVER_NV 0xFFFFFFFFFFFFFFFFull
1013 #define EGL_ALREADY_SIGNALED_NV 0x30EA
1014 #define EGL_TIMEOUT_EXPIRED_NV 0x30EB
1015 #define EGL_CONDITION_SATISFIED_NV 0x30EC
1016 #define EGL_SYNC_TYPE_NV 0x30ED
1017 #define EGL_SYNC_CONDITION_NV 0x30EE
1018 #define EGL_SYNC_FENCE_NV 0x30EF
1019 #define EGL_NO_SYNC_NV ((EGLSyncNV)0)
1020 typedef void* EGLSyncNV;
1021 typedef khronos_utime_nanoseconds_t EGLTimeNV;
1022 #ifdef EGL_EGLEXT_PROTOTYPES
1023 EGLAPI EGLSyncNV EGLAPIENTRY eglCreateFenceSyncNV(EGLDisplay dpy, EGLenum condition,
const EGLint *attrib_list);
1024 EGLAPI EGLBoolean EGLAPIENTRY eglDestroySyncNV(EGLSyncNV sync);
1025 EGLAPI EGLBoolean EGLAPIENTRY eglFenceNV(EGLSyncNV sync);
1026 EGLAPI EGLint EGLAPIENTRY eglClientWaitSyncNV(EGLSyncNV sync, EGLint flags, EGLTimeNV timeout);
1027 EGLAPI EGLBoolean EGLAPIENTRY eglSignalSyncNV(EGLSyncNV sync, EGLenum mode);
1028 EGLAPI EGLBoolean EGLAPIENTRY eglGetSyncAttribNV(EGLSyncNV sync, EGLint attribute, EGLint *value);
1030 typedef EGLSyncNV(EGLAPIENTRYP PFNEGLCREATEFENCESYNCNVPROC) (EGLDisplay dpy, EGLenum condition,
const EGLint *attrib_list);
1031 typedef EGLBoolean(EGLAPIENTRYP PFNEGLDESTROYSYNCNVPROC) (EGLSyncNV sync);
1032 typedef EGLBoolean(EGLAPIENTRYP PFNEGLFENCENVPROC) (EGLSyncNV sync);
1033 typedef EGLint(EGLAPIENTRYP PFNEGLCLIENTWAITSYNCNVPROC) (EGLSyncNV sync, EGLint flags, EGLTimeNV timeout);
1034 typedef EGLBoolean(EGLAPIENTRYP PFNEGLSIGNALSYNCNVPROC) (EGLSyncNV sync, EGLenum mode);
1035 typedef EGLBoolean(EGLAPIENTRYP PFNEGLGETSYNCATTRIBNVPROC) (EGLSyncNV sync, EGLint attribute, EGLint *value);
1039 #if KHRONOS_SUPPORT_INT64
1040 #ifndef EGL_KHR_fence_sync
1041 #define EGL_KHR_fence_sync 1
1043 #define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_KHR 0x30F0
1044 #define EGL_SYNC_CONDITION_KHR 0x30F8
1045 #define EGL_SYNC_FENCE_KHR 0x30F9
1049 #ifndef EGL_HI_clientpixmap
1050 #define EGL_HI_clientpixmap 1
1053 #define EGL_CLIENT_PIXMAP_POINTER_HI 0x8F74
1058 struct EGLClientPixmapHI
1065 #ifdef EGL_EGLEXT_PROTOTYPES
1066 EGLAPI EGLSurface EGLAPIENTRY eglCreatePixmapSurfaceHI(EGLDisplay dpy, EGLConfig config,
struct EGLClientPixmapHI* pixmap);
1068 typedef EGLSurface(EGLAPIENTRYP PFNEGLCREATEPIXMAPSURFACEHIPROC) (EGLDisplay dpy, EGLConfig config,
struct EGLClientPixmapHI* pixmap);
1071 #ifndef EGL_HI_colorformats
1072 #define EGL_HI_colorformats 1
1074 #define EGL_COLOR_FORMAT_HI 0x8F70
1076 #define EGL_COLOR_RGB_HI 0x8F71
1077 #define EGL_COLOR_RGBA_HI 0x8F72
1078 #define EGL_COLOR_ARGB_HI 0x8F73
1081 #ifndef EGL_MESA_drm_image
1082 #define EGL_MESA_drm_image 1
1083 #define EGL_DRM_BUFFER_FORMAT_MESA 0x31D0
1084 #define EGL_DRM_BUFFER_USE_MESA 0x31D1
1085 #define EGL_DRM_BUFFER_FORMAT_ARGB32_MESA 0x31D2
1086 #define EGL_DRM_BUFFER_MESA 0x31D3
1087 #define EGL_DRM_BUFFER_STRIDE_MESA 0x31D4
1088 #define EGL_DRM_BUFFER_USE_SCANOUT_MESA 0x00000001
1089 #define EGL_DRM_BUFFER_USE_SHARE_MESA 0x00000002
1090 #ifdef EGL_EGLEXT_PROTOTYPES
1091 EGLAPI EGLImageKHR EGLAPIENTRY eglCreateDRMImageMESA(EGLDisplay dpy,
const EGLint *attrib_list);
1092 EGLAPI EGLBoolean EGLAPIENTRY eglExportDRMImageMESA(EGLDisplay dpy, EGLImageKHR image, EGLint *name, EGLint *handle, EGLint *stride);
1094 typedef EGLImageKHR(EGLAPIENTRYP PFNEGLCREATEDRMIMAGEMESAPROC) (EGLDisplay dpy,
const EGLint *attrib_list);
1095 typedef EGLBoolean(EGLAPIENTRYP PFNEGLEXPORTDRMIMAGEMESAPROC) (EGLDisplay dpy, EGLImageKHR image, EGLint *name, EGLint *handle, EGLint *stride);
1098 #ifndef EGL_NV_post_sub_buffer
1099 #define EGL_NV_post_sub_buffer 1
1100 #define EGL_POST_SUB_BUFFER_SUPPORTED_NV 0x30BE
1101 #ifdef EGL_EGLEXT_PROTOTYPES
1102 EGLAPI EGLBoolean EGLAPIENTRY eglPostSubBufferNV(EGLDisplay dpy, EGLSurface surface, EGLint x, EGLint y, EGLint width, EGLint height);
1104 typedef EGLBoolean(EGLAPIENTRYP PFNEGLPOSTSUBBUFFERNVPROC) (EGLDisplay dpy, EGLSurface surface, EGLint x, EGLint y, EGLint width, EGLint height);
1107 #ifndef EGL_ANGLE_query_surface_pointer
1108 #define EGL_ANGLE_query_surface_pointer 1
1109 #ifdef EGL_EGLEXT_PROTOTYPES
1110 EGLAPI EGLBoolean eglQuerySurfacePointerANGLE(EGLDisplay dpy, EGLSurface surface, EGLint attribute,
void **value);
1112 typedef EGLBoolean(EGLAPIENTRYP PFNEGLQUERYSURFACEPOINTERANGLEPROC) (EGLDisplay dpy, EGLSurface surface, EGLint attribute,
void **value);
1115 #ifndef EGL_ANGLE_surface_d3d_texture_2d_share_handle
1116 #define EGL_ANGLE_surface_d3d_texture_2d_share_handle 1
1117 #define EGL_D3D_TEXTURE_2D_SHARE_HANDLE_ANGLE 0x3200
1120 #ifndef EGL_NV_coverage_sample_resolve
1121 #define EGL_NV_coverage_sample_resolve 1
1122 #define EGL_COVERAGE_SAMPLE_RESOLVE_NV 0x3131
1123 #define EGL_COVERAGE_SAMPLE_RESOLVE_DEFAULT_NV 0x3132
1124 #define EGL_COVERAGE_SAMPLE_RESOLVE_NONE_NV 0x3133
1127 #if KHRONOS_SUPPORT_INT64
1128 #ifndef EGL_NV_system_time
1129 #define EGL_NV_system_time 1
1130 typedef khronos_utime_nanoseconds_t EGLuint64NV;
1131 #ifdef EGL_EGLEXT_PROTOTYPES
1132 EGLAPI EGLuint64NV EGLAPIENTRY eglGetSystemTimeFrequencyNV(
void);
1133 EGLAPI EGLuint64NV EGLAPIENTRY eglGetSystemTimeNV(
void);
1135 typedef EGLuint64NV(EGLAPIENTRYP PFNEGLGETSYSTEMTIMEFREQUENCYNVPROC) (
void);
1136 typedef EGLuint64NV(EGLAPIENTRYP PFNEGLGETSYSTEMTIMENVPROC) (
void);
1140 #if KHRONOS_SUPPORT_INT64
1141 #ifndef EGL_KHR_stream
1142 #define EGL_KHR_stream 1
1143 typedef void* EGLStreamKHR;
1144 typedef khronos_uint64_t EGLuint64KHR;
1145 #define EGL_NO_STREAM_KHR ((EGLStreamKHR)0)
1146 #define EGL_CONSUMER_LATENCY_USEC_KHR 0x3210
1147 #define EGL_PRODUCER_FRAME_KHR 0x3212
1148 #define EGL_CONSUMER_FRAME_KHR 0x3213
1149 #define EGL_STREAM_STATE_KHR 0x3214
1150 #define EGL_STREAM_STATE_CREATED_KHR 0x3215
1151 #define EGL_STREAM_STATE_CONNECTING_KHR 0x3216
1152 #define EGL_STREAM_STATE_EMPTY_KHR 0x3217
1153 #define EGL_STREAM_STATE_NEW_FRAME_AVAILABLE_KHR 0x3218
1154 #define EGL_STREAM_STATE_OLD_FRAME_AVAILABLE_KHR 0x3219
1155 #define EGL_STREAM_STATE_DISCONNECTED_KHR 0x321A
1156 #define EGL_BAD_STREAM_KHR 0x321B
1157 #define EGL_BAD_STATE_KHR 0x321C
1158 #ifdef EGL_EGLEXT_PROTOTYPES
1159 EGLAPI EGLStreamKHR EGLAPIENTRY eglCreateStreamKHR(EGLDisplay dpy,
const EGLint *attrib_list);
1160 EGLAPI EGLBoolean EGLAPIENTRY eglDestroyStreamKHR(EGLDisplay dpy, EGLStreamKHR stream);
1161 EGLAPI EGLBoolean EGLAPIENTRY eglStreamAttribKHR(EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint value);
1162 EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamKHR(EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint *value);
1163 EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamu64KHR(EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLuint64KHR *value);
1165 typedef EGLStreamKHR(EGLAPIENTRYP PFNEGLCREATESTREAMKHRPROC)(EGLDisplay dpy,
const EGLint *attrib_list);
1166 typedef EGLBoolean(EGLAPIENTRYP PFNEGLDESTROYSTREAMKHRPROC)(EGLDisplay dpy, EGLStreamKHR stream);
1167 typedef EGLBoolean(EGLAPIENTRYP PFNEGLSTREAMATTRIBKHRPROC)(EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint value);
1168 typedef EGLBoolean(EGLAPIENTRYP PFNEGLQUERYSTREAMKHRPROC)(EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint *value);
1169 typedef EGLBoolean(EGLAPIENTRYP PFNEGLQUERYSTREAMU64KHRPROC)(EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLuint64KHR *value);
1173 #ifdef EGL_KHR_stream
1174 #ifndef EGL_KHR_stream_consumer_gltexture
1175 #define EGL_KHR_stream_consumer_gltexture 1
1176 #define EGL_CONSUMER_ACQUIRE_TIMEOUT_USEC_KHR 0x321E
1177 #ifdef EGL_EGLEXT_PROTOTYPES
1178 EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerGLTextureExternalKHR(EGLDisplay dpy, EGLStreamKHR stream);
1179 EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerAcquireKHR(EGLDisplay dpy, EGLStreamKHR stream);
1180 EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerReleaseKHR(EGLDisplay dpy, EGLStreamKHR stream);
1182 typedef EGLBoolean(EGLAPIENTRYP PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALKHRPROC)(EGLDisplay dpy, EGLStreamKHR stream);
1183 typedef EGLBoolean(EGLAPIENTRYP PFNEGLSTREAMCONSUMERACQUIREKHRPROC)(EGLDisplay dpy, EGLStreamKHR stream);
1184 typedef EGLBoolean(EGLAPIENTRYP PFNEGLSTREAMCONSUMERRELEASEKHRPROC)(EGLDisplay dpy, EGLStreamKHR stream);
1188 #ifdef EGL_KHR_stream
1189 #ifndef EGL_KHR_stream_producer_eglsurface
1190 #define EGL_KHR_stream_producer_eglsurface 1
1191 #define EGL_STREAM_BIT_KHR 0x0800
1192 #ifdef EGL_EGLEXT_PROTOTYPES
1193 EGLAPI EGLSurface EGLAPIENTRY eglCreateStreamProducerSurfaceKHR(EGLDisplay dpy, EGLConfig config, EGLStreamKHR stream,
const EGLint *attrib_list);
1195 typedef EGLSurface(EGLAPIENTRYP PFNEGLCREATESTREAMPRODUCERSURFACEKHRPROC)(EGLDisplay dpy, EGLConfig config, EGLStreamKHR stream,
const EGLint *attrib_list);
1199 #ifdef EGL_KHR_stream
1200 #ifndef EGL_KHR_stream_producer_aldatalocator
1201 #define EGL_KHR_stream_producer_aldatalocator 1
1205 #ifdef EGL_KHR_stream
1206 #ifndef EGL_KHR_stream_fifo
1207 #define EGL_KHR_stream_fifo 1
1209 #define EGL_STREAM_FIFO_LENGTH_KHR 0x31FC
1210 #define EGL_STREAM_TIME_NOW_KHR 0x31FD
1211 #define EGL_STREAM_TIME_CONSUMER_KHR 0x31FE
1212 #define EGL_STREAM_TIME_PRODUCER_KHR 0x31FF
1213 #ifdef EGL_EGLEXT_PROTOTYPES
1214 EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamTimeKHR(EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLTimeKHR *value);
1216 typedef EGLBoolean(EGLAPIENTRYP PFNEGLQUERYSTREAMTIMEKHRPROC)(EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLTimeKHR *value);
1220 #ifndef EGL_EXT_create_context_robustness
1221 #define EGL_EXT_create_context_robustness 1
1222 #define EGL_CONTEXT_OPENGL_ROBUST_ACCESS_EXT 0x30BF
1223 #define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_EXT 0x3138
1224 #define EGL_NO_RESET_NOTIFICATION_EXT 0x31BE
1225 #define EGL_LOSE_CONTEXT_ON_RESET_EXT 0x31BF
1228 #ifndef EGL_ANGLE_d3d_share_handle_client_buffer
1229 #define EGL_ANGLE_d3d_share_handle_client_buffer 1
1233 #ifndef EGL_KHR_create_context
1234 #define EGL_KHR_create_context 1
1235 #define EGL_CONTEXT_MAJOR_VERSION_KHR EGL_CONTEXT_CLIENT_VERSION
1236 #define EGL_CONTEXT_MINOR_VERSION_KHR 0x30FB
1237 #define EGL_CONTEXT_FLAGS_KHR 0x30FC
1238 #define EGL_CONTEXT_OPENGL_PROFILE_MASK_KHR 0x30FD
1239 #define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_KHR 0x31BD
1240 #define EGL_NO_RESET_NOTIFICATION_KHR 0x31BE
1241 #define EGL_LOSE_CONTEXT_ON_RESET_KHR 0x31BF
1242 #define EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR 0x00000001
1243 #define EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE_BIT_KHR 0x00000002
1244 #define EGL_CONTEXT_OPENGL_ROBUST_ACCESS_BIT_KHR 0x00000004
1245 #define EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT_KHR 0x00000001
1246 #define EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT_KHR 0x00000002
1247 #define EGL_OPENGL_ES3_BIT_KHR 0x00000040
1250 #ifndef EGL_KHR_surfaceless_context
1251 #define EGL_KHR_surfaceless_context 1
1255 #ifdef EGL_KHR_stream
1256 #ifndef EGL_KHR_stream_cross_process_fd
1257 #define EGL_KHR_stream_cross_process_fd 1
1258 typedef int EGLNativeFileDescriptorKHR;
1259 #define EGL_NO_FILE_DESCRIPTOR_KHR ((EGLNativeFileDescriptorKHR)(-1))
1260 #ifdef EGL_EGLEXT_PROTOTYPES
1261 EGLAPI EGLNativeFileDescriptorKHR EGLAPIENTRY eglGetStreamFileDescriptorKHR(EGLDisplay dpy, EGLStreamKHR stream);
1262 EGLAPI EGLStreamKHR EGLAPIENTRY eglCreateStreamFromFileDescriptorKHR(EGLDisplay dpy, EGLNativeFileDescriptorKHR file_descriptor);
1264 typedef EGLNativeFileDescriptorKHR(EGLAPIENTRYP PFNEGLGETSTREAMFILEDESCRIPTORKHRPROC)(EGLDisplay dpy, EGLStreamKHR stream);
1265 typedef EGLStreamKHR(EGLAPIENTRYP PFNEGLCREATESTREAMFROMFILEDESCRIPTORKHRPROC)(EGLDisplay dpy, EGLNativeFileDescriptorKHR file_descriptor);
1269 #ifndef EGL_EXT_multiview_window
1270 #define EGL_EXT_multiview_window 1
1271 #define EGL_MULTIVIEW_VIEW_COUNT_EXT 0x3134
1274 #ifndef EGL_KHR_wait_sync
1275 #define EGL_KHR_wait_sync 1
1276 #ifdef EGL_EGLEXT_PROTOTYPES
1277 EGLAPI EGLint EGLAPIENTRY eglWaitSyncKHR(EGLDisplay dpy, EGLSyncKHR sync, EGLint flags);
1279 typedef EGLint(EGLAPIENTRYP PFNEGLWAITSYNCKHRPROC)(EGLDisplay dpy, EGLSyncKHR sync, EGLint flags);
1282 #ifndef EGL_NV_post_convert_rounding
1283 #define EGL_NV_post_convert_rounding 1
1287 #ifndef EGL_NV_native_query
1288 #define EGL_NV_native_query 1
1289 #ifdef EGL_EGLEXT_PROTOTYPES
1290 EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativeDisplayNV(EGLDisplay dpy, EGLNativeDisplayType* display_id);
1291 EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativeWindowNV(EGLDisplay dpy, EGLSurface surf, EGLNativeWindowType* window);
1292 EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativePixmapNV(EGLDisplay dpy, EGLSurface surf, EGLNativePixmapType* pixmap);
1294 typedef EGLBoolean(EGLAPIENTRYP PFNEGLQUERYNATIVEDISPLAYNVPROC)(EGLDisplay dpy, EGLNativeDisplayType *display_id);
1295 typedef EGLBoolean(EGLAPIENTRYP PFNEGLQUERYNATIVEWINDOWNVPROC)(EGLDisplay dpy, EGLSurface surf, EGLNativeWindowType *window);
1296 typedef EGLBoolean(EGLAPIENTRYP PFNEGLQUERYNATIVEPIXMAPNVPROC)(EGLDisplay dpy, EGLSurface surf, EGLNativePixmapType *pixmap);
1299 #ifndef EGL_NV_3dvision_surface
1300 #define EGL_NV_3dvision_surface 1
1301 #define EGL_AUTO_STEREO_NV 0x3136
1304 #ifndef EGL_ANDROID_framebuffer_target
1305 #define EGL_ANDROID_framebuffer_target 1
1306 #define EGL_FRAMEBUFFER_TARGET_ANDROID 0x3147
1309 #ifndef EGL_ANDROID_blob_cache
1310 #define EGL_ANDROID_blob_cache 1
1311 typedef khronos_ssize_t EGLsizeiANDROID;
1312 typedef void(*EGLSetBlobFuncANDROID) (
const void *key, EGLsizeiANDROID keySize,
const void *value, EGLsizeiANDROID valueSize);
1313 typedef EGLsizeiANDROID(*EGLGetBlobFuncANDROID) (
const void *key, EGLsizeiANDROID keySize,
void *value, EGLsizeiANDROID valueSize);
1314 #ifdef EGL_EGLEXT_PROTOTYPES
1315 EGLAPI
void EGLAPIENTRY eglSetBlobCacheFuncsANDROID(EGLDisplay dpy, EGLSetBlobFuncANDROID set, EGLGetBlobFuncANDROID
get);
1317 typedef void (EGLAPIENTRYP PFNEGLSETBLOBCACHEFUNCSANDROIDPROC)(EGLDisplay dpy, EGLSetBlobFuncANDROID set, EGLGetBlobFuncANDROID
get);
1320 #ifndef EGL_ANDROID_image_native_buffer
1321 #define EGL_ANDROID_image_native_buffer 1
1322 #define EGL_NATIVE_BUFFER_ANDROID 0x3140
1325 #ifndef EGL_ANDROID_native_fence_sync
1326 #define EGL_ANDROID_native_fence_sync 1
1327 #define EGL_SYNC_NATIVE_FENCE_ANDROID 0x3144
1328 #define EGL_SYNC_NATIVE_FENCE_FD_ANDROID 0x3145
1329 #define EGL_SYNC_NATIVE_FENCE_SIGNALED_ANDROID 0x3146
1330 #define EGL_NO_NATIVE_FENCE_FD_ANDROID -1
1331 #ifdef EGL_EGLEXT_PROTOTYPES
1332 EGLAPI EGLint EGLAPIENTRY eglDupNativeFenceFDANDROID(EGLDisplay dpy, EGLSyncKHR);
1334 typedef EGLint(EGLAPIENTRYP PFNEGLDUPNATIVEFENCEFDANDROIDPROC)(EGLDisplay dpy, EGLSyncKHR);
1337 #ifndef EGL_ANDROID_recordable
1338 #define EGL_ANDROID_recordable 1
1339 #define EGL_RECORDABLE_ANDROID 0x3142
1342 #ifndef EGL_EXT_buffer_age
1343 #define EGL_EXT_buffer_age 1
1344 #define EGL_BUFFER_AGE_EXT 0x313D
1347 #ifndef EGL_EXT_image_dma_buf_import
1348 #define EGL_EXT_image_dma_buf_import 1
1349 #define EGL_LINUX_DMA_BUF_EXT 0x3270
1350 #define EGL_LINUX_DRM_FOURCC_EXT 0x3271
1351 #define EGL_DMA_BUF_PLANE0_FD_EXT 0x3272
1352 #define EGL_DMA_BUF_PLANE0_OFFSET_EXT 0x3273
1353 #define EGL_DMA_BUF_PLANE0_PITCH_EXT 0x3274
1354 #define EGL_DMA_BUF_PLANE1_FD_EXT 0x3275
1355 #define EGL_DMA_BUF_PLANE1_OFFSET_EXT 0x3276
1356 #define EGL_DMA_BUF_PLANE1_PITCH_EXT 0x3277
1357 #define EGL_DMA_BUF_PLANE2_FD_EXT 0x3278
1358 #define EGL_DMA_BUF_PLANE2_OFFSET_EXT 0x3279
1359 #define EGL_DMA_BUF_PLANE2_PITCH_EXT 0x327A
1360 #define EGL_YUV_COLOR_SPACE_HINT_EXT 0x327B
1361 #define EGL_SAMPLE_RANGE_HINT_EXT 0x327C
1362 #define EGL_YUV_CHROMA_HORIZONTAL_SITING_HINT_EXT 0x327D
1363 #define EGL_YUV_CHROMA_VERTICAL_SITING_HINT_EXT 0x327E
1364 #define EGL_ITU_REC601_EXT 0x327F
1365 #define EGL_ITU_REC709_EXT 0x3280
1366 #define EGL_ITU_REC2020_EXT 0x3281
1367 #define EGL_YUV_FULL_RANGE_EXT 0x3282
1368 #define EGL_YUV_NARROW_RANGE_EXT 0x3283
1369 #define EGL_YUV_CHROMA_SITING_0_EXT 0x3284
1370 #define EGL_YUV_CHROMA_SITING_0_5_EXT 0x3285
1373 #ifndef EGL_ARM_pixmap_multisample_discard
1374 #define EGL_ARM_pixmap_multisample_discard 1
1375 #define EGL_DISCARD_SAMPLES_ARM 0x3286
1378 #ifndef EGL_EXT_swap_buffers_with_damage
1379 #define EGL_EXT_swap_buffers_with_damage 1
1380 #ifdef EGL_EGLEXT_PROTOTYPES
1381 EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersWithDamageEXT(EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
1383 typedef EGLBoolean(EGLAPIENTRYP PFNEGLSWAPBUFFERSWITHDAMAGEEXTPROC)(EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
typedef void(SDLCALL *SDL_AudioCallback)(void *userdata