|
1 /* |
|
2 * Copyright (c) 2009 Symbian Foundation Ltd |
|
3 * This component and the accompanying materials are made available |
|
4 * under the terms of the License "Eclipse Public License v1.0" |
|
5 * which accompanies this distribution, and is available |
|
6 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 * |
|
8 * Initial Contributors: |
|
9 * Symbian Foundation Ltd - initial contribution. |
|
10 * |
|
11 * Contributors: |
|
12 * |
|
13 * Description: |
|
14 * Declaration of EGL like interface . Basically every EGL API names but prefixed with do_ e.g. do_eglInitialize |
|
15 */ |
|
16 |
|
17 #ifndef EGLINTERNAL_H |
|
18 #define EGLINTERNAL_H |
|
19 |
|
20 #include <egl.h> |
|
21 |
|
22 |
|
23 /* |
|
24 * defines set of internal egl functiosn that are 1:1 with the published egl functions. |
|
25 * E.g. eglInitialize -> do_eglInitialize |
|
26 * |
|
27 * These do_XXX fucntions are called from the libegl.dll (which is a shim) to be processed here |
|
28 */ |
|
29 |
|
30 IMPORT_C EGLint do_eglGetError(void); |
|
31 IMPORT_C EGLDisplay do_eglGetDisplay(EGLNativeDisplayType display_id); |
|
32 IMPORT_C EGLBoolean do_eglInitialize(EGLDisplay dpy, EGLint *major, EGLint *minor); |
|
33 IMPORT_C EGLBoolean do_eglTerminate(EGLDisplay dpy); |
|
34 IMPORT_C const char* do_eglQueryString(EGLDisplay dpy, EGLint name); |
|
35 IMPORT_C EGLBoolean do_eglGetConfigs(EGLDisplay dpy, EGLConfig *configs,EGLint config_size, EGLint *num_config); |
|
36 IMPORT_C EGLBoolean do_eglChooseConfig(EGLDisplay dpy, const EGLint *attrib_list,EGLConfig *configs, EGLint config_size,EGLint *num_config); |
|
37 IMPORT_C EGLBoolean do_eglGetConfigAttrib(EGLDisplay dpy, EGLConfig config,EGLint attribute, EGLint *value); |
|
38 IMPORT_C EGLSurface do_eglCreateWindowSurface(EGLDisplay dpy, EGLConfig config,EGLNativeWindowType win,const EGLint *attrib_list); |
|
39 IMPORT_C EGLSurface do_eglCreatePbufferSurface(EGLDisplay dpy, EGLConfig config,const EGLint *attrib_list); |
|
40 IMPORT_C EGLSurface do_eglCreatePixmapSurface(EGLDisplay dpy, EGLConfig config,EGLNativePixmapType pixmap,const EGLint *attrib_list); |
|
41 IMPORT_C EGLBoolean do_eglDestroySurface(EGLDisplay dpy, EGLSurface surface); |
|
42 IMPORT_C EGLBoolean do_eglQuerySurface(EGLDisplay dpy, EGLSurface surface,EGLint attribute, EGLint *value); |
|
43 IMPORT_C EGLBoolean do_eglBindAPI(EGLenum api); |
|
44 IMPORT_C EGLenum do_eglQueryAPI(void); |
|
45 IMPORT_C EGLBoolean do_eglWaitClient(void); |
|
46 IMPORT_C EGLBoolean do_eglReleaseThread(void); |
|
47 IMPORT_C EGLSurface do_eglCreatePbufferFromClientBuffer(EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer,EGLConfig config, const EGLint *attrib_list); |
|
48 IMPORT_C EGLBoolean do_eglSurfaceAttrib(EGLDisplay dpy, EGLSurface surface,EGLint attribute, EGLint value); |
|
49 IMPORT_C EGLBoolean do_eglBindTexImage(EGLDisplay dpy, EGLSurface surface, EGLint buffer); |
|
50 IMPORT_C EGLBoolean do_eglReleaseTexImage(EGLDisplay dpy, EGLSurface surface, EGLint buffer); |
|
51 IMPORT_C EGLBoolean do_eglSwapInterval(EGLDisplay dpy, EGLint interval); |
|
52 IMPORT_C EGLContext do_eglCreateContext(EGLDisplay dpy, EGLConfig config,EGLContext share_context,const EGLint *attrib_list); |
|
53 IMPORT_C EGLBoolean do_eglDestroyContext(EGLDisplay dpy, EGLContext ctx); |
|
54 IMPORT_C EGLBoolean do_eglMakeCurrent(EGLDisplay dpy, EGLSurface draw,EGLSurface read, EGLContext ctx); |
|
55 IMPORT_C EGLContext do_eglGetCurrentContext(void); |
|
56 IMPORT_C EGLSurface do_eglGetCurrentSurface(EGLint readdraw); |
|
57 IMPORT_C EGLDisplay do_eglGetCurrentDisplay(void); |
|
58 IMPORT_C EGLBoolean do_eglQueryContext(EGLDisplay dpy, EGLContext ctx,EGLint attribute, EGLint *value); |
|
59 IMPORT_C EGLBoolean do_eglWaitGL(void); |
|
60 IMPORT_C EGLBoolean do_eglWaitNative(EGLint engine); |
|
61 IMPORT_C EGLBoolean do_eglSwapBuffers(EGLDisplay dpy, EGLSurface surface); |
|
62 IMPORT_C EGLBoolean do_eglCopyBuffers(EGLDisplay dpy, EGLSurface surface,EGLNativePixmapType target); |
|
63 IMPORT_C void (* EGLAPIENTRY do_eglGetProcAddress (const char *procname))(...); |
|
64 |
|
65 |
|
66 |
|
67 |
|
68 #endif |