tizen 2.4 release
[framework/graphics/coregl.git] / src / headers / sym_egl.h
1 // Defult use-case for exporting symbols
2 #ifndef _COREGL_SYMBOL
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;
5 #endif
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)
9 #endif
10 #ifndef _COREGL_EXT_SYMBOL_ALIAS
11 #define _COREGL_EXT_SYMBOL_ALIAS_NOT_DEFINED
12 #define _COREGL_EXT_SYMBOL_ALIAS(FUNC_NAME, ALIAS_NAME)
13 #endif
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)
17 #endif
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)
21 #endif
22
23 // Standard EGL APIs
24
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))
30
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))
34
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))
40
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))
46
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))
57
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))
63
64 _COREGL_SYMBOL(_eng_fn, eglGetProcAddress, (const char* procname))
65
66
67 // Extensions
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))
70
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))
74
75 _COREGL_EXT_SYMBOL(EGLBoolean, eglLockSurfaceKHR, (EGLDisplay display, EGLSurface surface, const EGLint *attrib_list))
76 _COREGL_EXT_SYMBOL(EGLBoolean, eglUnlockSurfaceKHR, (EGLDisplay display, EGLSurface surface))
77
78 _COREGL_EXT_SYMBOL(EGLBoolean, eglSwapBuffersWithDamageEXT, (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects))
79
80 _COREGL_EXT_SYMBOL(EGLBoolean, eglSwapBuffersRegionEXT, (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects))
81
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)
89 _COREGL_EXT_SYMBOL_FASTPATH_PASS(eglWaitSyncKHR)
90 _COREGL_EXT_SYMBOL_FASTPATH_PASS(eglPostSubBufferNV)
91
92 /* Fastpath Blocked extensions */
93 //_COREGL_EXT_SYMBOL_FASTPATH_BLOCK()
94
95 #ifdef _COREGL_EXT_SYMBOL_NOT_DEFINED
96 #undef _COREGL_EXT_SYMBOL_NOT_DEFINED
97 #undef _COREGL_EXT_SYMBOL
98 #endif
99
100 #ifdef _COREGL_SYMBOL_NOT_DEFINED
101 #undef _COREGL_SYMBOL_NOT_DEFINED
102 #undef _COREGL_SYMBOL
103 #endif
104
105 #ifdef _COREGL_EXT_SYMBOL_ALIAS_NOT_DEFINED
106 #undef _COREGL_EXT_SYMBOL_ALIAS_NOT_DEFINED
107 #undef _COREGL_EXT_SYMBOL_ALIAS
108 #endif
109
110 #ifdef _COREGL_EXT_SYMBOL_FASTPATH_PASS_NOT_DEFINED
111 #undef _COREGL_EXT_SYMBOL_FASTPATH_PASS_NOT_DEFINED
112 #undef _COREGL_EXT_SYMBOL_FASTPATH_PASS
113 #endif
114
115 #ifdef _COREGL_EXT_SYMBOL_FASTPATH_BLOCK_NOT_DEFINED
116 #undef _COREGL_EXT_SYMBOL_FASTPATH_BLOCK_NOT_DEFINED
117 #undef _COREGL_EXT_SYMBOL_FASTPATH_BLOCK
118 #endif
119