1 // GENERATED FILE - DO NOT EDIT.
2 // Generated by generate_entry_points.py using data from egl.xml.
3 //
4 // Copyright 2020 The ANGLE Project Authors. All rights reserved.
5 // Use of this source code is governed by a BSD-style license that can be
6 // found in the LICENSE file.
7 //
8 // entry_points_egl_autogen.h:
9 //   Defines the EGL entry points.
10 
11 #ifndef LIBGLESV2_ENTRY_POINTS_EGL_AUTOGEN_H_
12 #define LIBGLESV2_ENTRY_POINTS_EGL_AUTOGEN_H_
13 
14 #include <EGL/egl.h>
15 #include <export.h>
16 
17 extern "C" {
18 
19 // EGL 1.0
20 ANGLE_EXPORT EGLBoolean EGLAPIENTRY EGL_ChooseConfig(EGLDisplay dpy,
21                                                      const EGLint *attrib_list,
22                                                      EGLConfig *configs,
23                                                      EGLint config_size,
24                                                      EGLint *num_config);
25 ANGLE_EXPORT EGLBoolean EGLAPIENTRY EGL_CopyBuffers(EGLDisplay dpy,
26                                                     EGLSurface surface,
27                                                     EGLNativePixmapType target);
28 ANGLE_EXPORT EGLContext EGLAPIENTRY EGL_CreateContext(EGLDisplay dpy,
29                                                       EGLConfig config,
30                                                       EGLContext share_context,
31                                                       const EGLint *attrib_list);
32 ANGLE_EXPORT EGLSurface EGLAPIENTRY EGL_CreatePbufferSurface(EGLDisplay dpy,
33                                                              EGLConfig config,
34                                                              const EGLint *attrib_list);
35 ANGLE_EXPORT EGLSurface EGLAPIENTRY EGL_CreatePixmapSurface(EGLDisplay dpy,
36                                                             EGLConfig config,
37                                                             EGLNativePixmapType pixmap,
38                                                             const EGLint *attrib_list);
39 ANGLE_EXPORT EGLSurface EGLAPIENTRY EGL_CreateWindowSurface(EGLDisplay dpy,
40                                                             EGLConfig config,
41                                                             EGLNativeWindowType win,
42                                                             const EGLint *attrib_list);
43 ANGLE_EXPORT EGLBoolean EGLAPIENTRY EGL_DestroyContext(EGLDisplay dpy, EGLContext ctx);
44 ANGLE_EXPORT EGLBoolean EGLAPIENTRY EGL_DestroySurface(EGLDisplay dpy, EGLSurface surface);
45 ANGLE_EXPORT EGLBoolean EGLAPIENTRY EGL_GetConfigAttrib(EGLDisplay dpy,
46                                                         EGLConfig config,
47                                                         EGLint attribute,
48                                                         EGLint *value);
49 ANGLE_EXPORT EGLBoolean EGLAPIENTRY EGL_GetConfigs(EGLDisplay dpy,
50                                                    EGLConfig *configs,
51                                                    EGLint config_size,
52                                                    EGLint *num_config);
53 ANGLE_EXPORT EGLDisplay EGLAPIENTRY EGL_GetCurrentDisplay();
54 ANGLE_EXPORT EGLSurface EGLAPIENTRY EGL_GetCurrentSurface(EGLint readdraw);
55 ANGLE_EXPORT EGLDisplay EGLAPIENTRY EGL_GetDisplay(EGLNativeDisplayType display_id);
56 ANGLE_EXPORT EGLint EGLAPIENTRY EGL_GetError();
57 ANGLE_EXPORT __eglMustCastToProperFunctionPointerType EGLAPIENTRY
58 EGL_GetProcAddress(const char *procname);
59 ANGLE_EXPORT EGLBoolean EGLAPIENTRY EGL_Initialize(EGLDisplay dpy, EGLint *major, EGLint *minor);
60 ANGLE_EXPORT EGLBoolean EGLAPIENTRY EGL_MakeCurrent(EGLDisplay dpy,
61                                                     EGLSurface draw,
62                                                     EGLSurface read,
63                                                     EGLContext ctx);
64 ANGLE_EXPORT EGLBoolean EGLAPIENTRY EGL_QueryContext(EGLDisplay dpy,
65                                                      EGLContext ctx,
66                                                      EGLint attribute,
67                                                      EGLint *value);
68 ANGLE_EXPORT const char *EGLAPIENTRY EGL_QueryString(EGLDisplay dpy, EGLint name);
69 ANGLE_EXPORT EGLBoolean EGLAPIENTRY EGL_QuerySurface(EGLDisplay dpy,
70                                                      EGLSurface surface,
71                                                      EGLint attribute,
72                                                      EGLint *value);
73 ANGLE_EXPORT EGLBoolean EGLAPIENTRY EGL_SwapBuffers(EGLDisplay dpy, EGLSurface surface);
74 ANGLE_EXPORT EGLBoolean EGLAPIENTRY EGL_Terminate(EGLDisplay dpy);
75 ANGLE_EXPORT EGLBoolean EGLAPIENTRY EGL_WaitGL();
76 ANGLE_EXPORT EGLBoolean EGLAPIENTRY EGL_WaitNative(EGLint engine);
77 
78 // EGL 1.1
79 ANGLE_EXPORT EGLBoolean EGLAPIENTRY EGL_BindTexImage(EGLDisplay dpy,
80                                                      EGLSurface surface,
81                                                      EGLint buffer);
82 ANGLE_EXPORT EGLBoolean EGLAPIENTRY EGL_ReleaseTexImage(EGLDisplay dpy,
83                                                         EGLSurface surface,
84                                                         EGLint buffer);
85 ANGLE_EXPORT EGLBoolean EGLAPIENTRY EGL_SurfaceAttrib(EGLDisplay dpy,
86                                                       EGLSurface surface,
87                                                       EGLint attribute,
88                                                       EGLint value);
89 ANGLE_EXPORT EGLBoolean EGLAPIENTRY EGL_SwapInterval(EGLDisplay dpy, EGLint interval);
90 
91 // EGL 1.2
92 ANGLE_EXPORT EGLBoolean EGLAPIENTRY EGL_BindAPI(EGLenum api);
93 ANGLE_EXPORT EGLSurface EGLAPIENTRY EGL_CreatePbufferFromClientBuffer(EGLDisplay dpy,
94                                                                       EGLenum buftype,
95                                                                       EGLClientBuffer buffer,
96                                                                       EGLConfig config,
97                                                                       const EGLint *attrib_list);
98 ANGLE_EXPORT EGLenum EGLAPIENTRY EGL_QueryAPI();
99 ANGLE_EXPORT EGLBoolean EGLAPIENTRY EGL_ReleaseThread();
100 ANGLE_EXPORT EGLBoolean EGLAPIENTRY EGL_WaitClient();
101 
102 // EGL 1.4
103 ANGLE_EXPORT EGLContext EGLAPIENTRY EGL_GetCurrentContext();
104 
105 // EGL 1.5
106 ANGLE_EXPORT EGLint EGLAPIENTRY EGL_ClientWaitSync(EGLDisplay dpy,
107                                                    EGLSync sync,
108                                                    EGLint flags,
109                                                    EGLTime timeout);
110 ANGLE_EXPORT EGLImage EGLAPIENTRY EGL_CreateImage(EGLDisplay dpy,
111                                                   EGLContext ctx,
112                                                   EGLenum target,
113                                                   EGLClientBuffer buffer,
114                                                   const EGLAttrib *attrib_list);
115 ANGLE_EXPORT EGLSurface EGLAPIENTRY EGL_CreatePlatformPixmapSurface(EGLDisplay dpy,
116                                                                     EGLConfig config,
117                                                                     void *native_pixmap,
118                                                                     const EGLAttrib *attrib_list);
119 ANGLE_EXPORT EGLSurface EGLAPIENTRY EGL_CreatePlatformWindowSurface(EGLDisplay dpy,
120                                                                     EGLConfig config,
121                                                                     void *native_window,
122                                                                     const EGLAttrib *attrib_list);
123 ANGLE_EXPORT EGLSync EGLAPIENTRY EGL_CreateSync(EGLDisplay dpy,
124                                                 EGLenum type,
125                                                 const EGLAttrib *attrib_list);
126 ANGLE_EXPORT EGLBoolean EGLAPIENTRY EGL_DestroyImage(EGLDisplay dpy, EGLImage image);
127 ANGLE_EXPORT EGLBoolean EGLAPIENTRY EGL_DestroySync(EGLDisplay dpy, EGLSync sync);
128 ANGLE_EXPORT EGLDisplay EGLAPIENTRY EGL_GetPlatformDisplay(EGLenum platform,
129                                                            void *native_display,
130                                                            const EGLAttrib *attrib_list);
131 ANGLE_EXPORT EGLBoolean EGLAPIENTRY EGL_GetSyncAttrib(EGLDisplay dpy,
132                                                       EGLSync sync,
133                                                       EGLint attribute,
134                                                       EGLAttrib *value);
135 ANGLE_EXPORT EGLBoolean EGLAPIENTRY EGL_WaitSync(EGLDisplay dpy, EGLSync sync, EGLint flags);
136 }  // extern "C"
137 
138 #endif  // LIBGLESV2_ENTRY_POINTS_EGL_AUTOGEN_H_
139