1 // Defult use-case for exporting symbols
3 #define _COREGL_SYMBOL_NOT_DEFINED
4 #define _COREGL_SYMBOL(RET_TYPE, FUNC_NAME, PARAM_LIST) COREGL_API extern RET_TYPE FUNC_NAME PARAM_LIST;
6 #ifndef _COREGL_EXT_SYMBOL
7 #define _COREGL_EXT_SYMBOL_NOT_DEFINED
8 #define _COREGL_EXT_SYMBOL(RET_TYPE, FUNC_NAME, PARAM_LIST) _COREGL_SYMBOL(RET_TYPE, FUNC_NAME, PARAM_LIST)
10 #ifndef _COREGL_EXT_SYMBOL_ALIAS
11 #define _COREGL_EXT_SYMBOL_ALIAS_NOT_DEFINED
12 #define _COREGL_EXT_SYMBOL_ALIAS(FUNC_NAME, ALIAS_NAME)
14 #ifndef _COREGL_EXT_SYMBOL_FASTPATH_PASS
15 #define _COREGL_EXT_SYMBOL_FASTPATH_PASS_NOT_DEFINED
16 #define _COREGL_EXT_SYMBOL_FASTPATH_PASS(FUNC_NAME)
18 #ifndef _COREGL_EXT_SYMBOL_FASTPATH_BLOCK
19 #define _COREGL_EXT_SYMBOL_FASTPATH_BLOCK_NOT_DEFINED
20 #define _COREGL_EXT_SYMBOL_FASTPATH_BLOCK(FUNC_NAME)
25 _COREGL_SYMBOL(EGLint, eglGetError, (void))
26 _COREGL_SYMBOL(EGLDisplay, eglGetDisplay, (EGLNativeDisplayType display_id))
27 _COREGL_SYMBOL(EGLBoolean, eglInitialize, (EGLDisplay dpy, EGLint* major, EGLint *minor))
28 _COREGL_SYMBOL(EGLBoolean, eglTerminate, (EGLDisplay dpy))
29 _COREGL_SYMBOL(const char*, eglQueryString, (EGLDisplay dpy, EGLint name))
31 _COREGL_SYMBOL(EGLBoolean, eglGetConfigs, (EGLDisplay dpy, EGLConfig *configs, EGLint config_size, EGLint *num_config))
32 _COREGL_SYMBOL(EGLBoolean, eglChooseConfig, (EGLDisplay dpy, const EGLint* attrib_list, EGLConfig* configs, EGLint config_size, EGLint* num_config))
33 _COREGL_SYMBOL(EGLBoolean, eglGetConfigAttrib, (EGLDisplay dpy, EGLConfig config, EGLint attribute, EGLint *value))
35 _COREGL_SYMBOL(EGLSurface, eglCreateWindowSurface, (EGLDisplay dpy, EGLConfig config, EGLNativeWindowType win, const EGLint* attrib_list))
36 _COREGL_SYMBOL(EGLSurface, eglCreatePbufferSurface, (EGLDisplay dpy, EGLConfig config, const EGLint *attrib_list))
37 _COREGL_SYMBOL(EGLSurface, eglCreatePixmapSurface, (EGLDisplay dpy, EGLConfig config, EGLNativePixmapType pixmap, const EGLint* attrib_list))
38 _COREGL_SYMBOL(EGLBoolean, eglDestroySurface, (EGLDisplay dpy, EGLSurface surface))
39 _COREGL_SYMBOL(EGLBoolean, eglQuerySurface, (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint *value))
41 _COREGL_SYMBOL(EGLBoolean, eglBindAPI, (EGLenum api))
42 _COREGL_SYMBOL(EGLenum, eglQueryAPI, (void))
43 _COREGL_SYMBOL(EGLBoolean, eglWaitClient, (void))
44 _COREGL_SYMBOL(EGLBoolean, eglReleaseThread, (void))
45 _COREGL_SYMBOL(EGLSurface, eglCreatePbufferFromClientBuffer, (EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer, EGLConfig config, const EGLint *attrib_list))
47 _COREGL_SYMBOL(EGLBoolean, eglSurfaceAttrib, (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint value))
48 _COREGL_SYMBOL(EGLBoolean, eglBindTexImage, (EGLDisplay dpy, EGLSurface surface, EGLint buffer))
49 _COREGL_SYMBOL(EGLBoolean, eglReleaseTexImage, (EGLDisplay dpy, EGLSurface surface, EGLint buffer))
50 _COREGL_SYMBOL(EGLBoolean, eglSwapInterval, (EGLDisplay dpy, EGLint interval))
51 _COREGL_SYMBOL(EGLContext, eglCreateContext, (EGLDisplay dpy, EGLConfig config, EGLContext share_context, const EGLint* attrib_list))
52 _COREGL_SYMBOL(EGLBoolean, eglDestroyContext, (EGLDisplay dpy, EGLContext ctx))
53 _COREGL_SYMBOL(EGLBoolean, eglMakeCurrent, (EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLContext ctx))
54 _COREGL_SYMBOL(EGLContext, eglGetCurrentContext, (void))
55 _COREGL_SYMBOL(EGLSurface, eglGetCurrentSurface, (EGLint readdraw))
56 _COREGL_SYMBOL(EGLDisplay, eglGetCurrentDisplay, (void))
58 _COREGL_SYMBOL(EGLBoolean, eglQueryContext, (EGLDisplay dpy, EGLContext ctx, EGLint attribute, EGLint *value))
59 _COREGL_SYMBOL(EGLBoolean, eglWaitGL, (void))
60 _COREGL_SYMBOL(EGLBoolean, eglWaitNative, (EGLint engine))
61 _COREGL_SYMBOL(EGLBoolean, eglSwapBuffers, (EGLDisplay dpy, EGLSurface surface))
62 _COREGL_SYMBOL(EGLBoolean, eglCopyBuffers, (EGLDisplay dpy, EGLSurface surface, EGLNativePixmapType target))
64 _COREGL_SYMBOL(_eng_fn, eglGetProcAddress, (const char* procname))
68 _COREGL_EXT_SYMBOL(EGLImageKHR, eglCreateImageKHR, (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list))
69 _COREGL_EXT_SYMBOL(EGLBoolean, eglDestroyImageKHR, (EGLDisplay dpy, EGLImageKHR image))
71 _COREGL_EXT_SYMBOL(void*, eglMapImageSEC, (EGLDisplay dpy, EGLImageKHR image, EGLint device_type, EGLint access_option))
72 _COREGL_EXT_SYMBOL(EGLBoolean, eglUnmapImageSEC, (EGLDisplay dpy, EGLImageKHR image, EGLint device_type))
73 _COREGL_EXT_SYMBOL(EGLBoolean, eglGetImageAttribSEC, (EGLDisplay dpy, EGLImageKHR image, EGLint attribute, EGLint *value))
75 _COREGL_EXT_SYMBOL(EGLBoolean, eglLockSurfaceKHR, (EGLDisplay display, EGLSurface surface, const EGLint *attrib_list))
76 _COREGL_EXT_SYMBOL(EGLBoolean, eglUnlockSurfaceKHR, (EGLDisplay display, EGLSurface surface))
78 _COREGL_EXT_SYMBOL(EGLBoolean, eglSwapBuffersWithDamageEXT, (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects))
80 _COREGL_EXT_SYMBOL(EGLBoolean, eglSwapBuffersRegionEXT, (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects))
82 /* Fastpath Verified extensions */
83 //_COREGL_EXT_SYMBOL_FASTPATH_PASS(eglSwapBuffersRegionSEC)
84 _COREGL_EXT_SYMBOL_FASTPATH_PASS(eglCreateSyncKHR)
85 _COREGL_EXT_SYMBOL_FASTPATH_PASS(eglDestroySyncKHR)
86 _COREGL_EXT_SYMBOL_FASTPATH_PASS(eglClientWaitSyncKHR)
87 _COREGL_EXT_SYMBOL_FASTPATH_PASS(eglSignalSyncKHR)
88 _COREGL_EXT_SYMBOL_FASTPATH_PASS(eglGetSyncAttribKHR)
90 /* Fastpath Blocked extensions */
91 //_COREGL_EXT_SYMBOL_FASTPATH_BLOCK()
93 #ifdef _COREGL_EXT_SYMBOL_NOT_DEFINED
94 #undef _COREGL_EXT_SYMBOL_NOT_DEFINED
95 #undef _COREGL_EXT_SYMBOL
98 #ifdef _COREGL_SYMBOL_NOT_DEFINED
99 #undef _COREGL_SYMBOL_NOT_DEFINED
100 #undef _COREGL_SYMBOL
103 #ifdef _COREGL_EXT_SYMBOL_ALIAS_NOT_DEFINED
104 #undef _COREGL_EXT_SYMBOL_ALIAS_NOT_DEFINED
105 #undef _COREGL_EXT_SYMBOL_ALIAS
108 #ifdef _COREGL_EXT_SYMBOL_FASTPATH_PASS_NOT_DEFINED
109 #undef _COREGL_EXT_SYMBOL_FASTPATH_PASS_NOT_DEFINED
110 #undef _COREGL_EXT_SYMBOL_FASTPATH_PASS
113 #ifdef _COREGL_EXT_SYMBOL_FASTPATH_BLOCK_NOT_DEFINED
114 #undef _COREGL_EXT_SYMBOL_FASTPATH_BLOCK_NOT_DEFINED
115 #undef _COREGL_EXT_SYMBOL_FASTPATH_BLOCK