1 // GENERATED FILE - DO NOT EDIT. 2 // Generated by generate_loader.py using data from egl.xml and egl_angle_ext.xml. 3 // 4 // Copyright 2018 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 // egl_loader_autogen.h: 9 // Simple EGL function loader. 10 11 #ifndef UTIL_EGL_LOADER_AUTOGEN_H_ 12 #define UTIL_EGL_LOADER_AUTOGEN_H_ 13 14 #include "util/util_export.h" 15 16 #include <EGL/egl.h> 17 #include <EGL/eglext.h> 18 19 #define eglChooseConfig l_eglChooseConfig 20 #define eglCopyBuffers l_eglCopyBuffers 21 #define eglCreateContext l_eglCreateContext 22 #define eglCreatePbufferSurface l_eglCreatePbufferSurface 23 #define eglCreatePixmapSurface l_eglCreatePixmapSurface 24 #define eglCreateWindowSurface l_eglCreateWindowSurface 25 #define eglDestroyContext l_eglDestroyContext 26 #define eglDestroySurface l_eglDestroySurface 27 #define eglGetConfigAttrib l_eglGetConfigAttrib 28 #define eglGetConfigs l_eglGetConfigs 29 #define eglGetCurrentDisplay l_eglGetCurrentDisplay 30 #define eglGetCurrentSurface l_eglGetCurrentSurface 31 #define eglGetDisplay l_eglGetDisplay 32 #define eglGetError l_eglGetError 33 #define eglGetProcAddress l_eglGetProcAddress 34 #define eglInitialize l_eglInitialize 35 #define eglMakeCurrent l_eglMakeCurrent 36 #define eglQueryContext l_eglQueryContext 37 #define eglQueryString l_eglQueryString 38 #define eglQuerySurface l_eglQuerySurface 39 #define eglSwapBuffers l_eglSwapBuffers 40 #define eglTerminate l_eglTerminate 41 #define eglWaitGL l_eglWaitGL 42 #define eglWaitNative l_eglWaitNative 43 #define eglBindTexImage l_eglBindTexImage 44 #define eglReleaseTexImage l_eglReleaseTexImage 45 #define eglSurfaceAttrib l_eglSurfaceAttrib 46 #define eglSwapInterval l_eglSwapInterval 47 #define eglBindAPI l_eglBindAPI 48 #define eglQueryAPI l_eglQueryAPI 49 #define eglCreatePbufferFromClientBuffer l_eglCreatePbufferFromClientBuffer 50 #define eglReleaseThread l_eglReleaseThread 51 #define eglWaitClient l_eglWaitClient 52 #define eglGetCurrentContext l_eglGetCurrentContext 53 #define eglCreateSync l_eglCreateSync 54 #define eglDestroySync l_eglDestroySync 55 #define eglClientWaitSync l_eglClientWaitSync 56 #define eglGetSyncAttrib l_eglGetSyncAttrib 57 #define eglCreateImage l_eglCreateImage 58 #define eglDestroyImage l_eglDestroyImage 59 #define eglGetPlatformDisplay l_eglGetPlatformDisplay 60 #define eglCreatePlatformWindowSurface l_eglCreatePlatformWindowSurface 61 #define eglCreatePlatformPixmapSurface l_eglCreatePlatformPixmapSurface 62 #define eglWaitSync l_eglWaitSync 63 #define eglSetBlobCacheFuncsANDROID l_eglSetBlobCacheFuncsANDROID 64 #define eglCreateNativeClientBufferANDROID l_eglCreateNativeClientBufferANDROID 65 #define eglGetCompositorTimingANDROID l_eglGetCompositorTimingANDROID 66 #define eglGetCompositorTimingSupportedANDROID l_eglGetCompositorTimingSupportedANDROID 67 #define eglGetFrameTimestampSupportedANDROID l_eglGetFrameTimestampSupportedANDROID 68 #define eglGetFrameTimestampsANDROID l_eglGetFrameTimestampsANDROID 69 #define eglGetNextFrameIdANDROID l_eglGetNextFrameIdANDROID 70 #define eglGetNativeClientBufferANDROID l_eglGetNativeClientBufferANDROID 71 #define eglDupNativeFenceFDANDROID l_eglDupNativeFenceFDANDROID 72 #define eglPresentationTimeANDROID l_eglPresentationTimeANDROID 73 #define eglCreateDeviceANGLE l_eglCreateDeviceANGLE 74 #define eglReleaseDeviceANGLE l_eglReleaseDeviceANGLE 75 #define eglQueryDisplayAttribANGLE l_eglQueryDisplayAttribANGLE 76 #define eglQueryStringiANGLE l_eglQueryStringiANGLE 77 #define eglHandleGPUSwitchANGLE l_eglHandleGPUSwitchANGLE 78 #define eglReacquireHighPowerGPUANGLE l_eglReacquireHighPowerGPUANGLE 79 #define eglReleaseHighPowerGPUANGLE l_eglReleaseHighPowerGPUANGLE 80 #define eglProgramCacheGetAttribANGLE l_eglProgramCacheGetAttribANGLE 81 #define eglProgramCachePopulateANGLE l_eglProgramCachePopulateANGLE 82 #define eglProgramCacheQueryANGLE l_eglProgramCacheQueryANGLE 83 #define eglProgramCacheResizeANGLE l_eglProgramCacheResizeANGLE 84 #define eglQuerySurfacePointerANGLE l_eglQuerySurfacePointerANGLE 85 #define eglCreateStreamProducerD3DTextureANGLE l_eglCreateStreamProducerD3DTextureANGLE 86 #define eglStreamPostD3DTextureANGLE l_eglStreamPostD3DTextureANGLE 87 #define eglSwapBuffersWithFrameTokenANGLE l_eglSwapBuffersWithFrameTokenANGLE 88 #define eglGetMscRateANGLE l_eglGetMscRateANGLE 89 #define eglGetSyncValuesCHROMIUM l_eglGetSyncValuesCHROMIUM 90 #define eglQueryDeviceAttribEXT l_eglQueryDeviceAttribEXT 91 #define eglQueryDeviceStringEXT l_eglQueryDeviceStringEXT 92 #define eglQueryDisplayAttribEXT l_eglQueryDisplayAttribEXT 93 #define eglCreatePlatformPixmapSurfaceEXT l_eglCreatePlatformPixmapSurfaceEXT 94 #define eglCreatePlatformWindowSurfaceEXT l_eglCreatePlatformWindowSurfaceEXT 95 #define eglGetPlatformDisplayEXT l_eglGetPlatformDisplayEXT 96 #define eglDebugMessageControlKHR l_eglDebugMessageControlKHR 97 #define eglLabelObjectKHR l_eglLabelObjectKHR 98 #define eglQueryDebugKHR l_eglQueryDebugKHR 99 #define eglClientWaitSyncKHR l_eglClientWaitSyncKHR 100 #define eglCreateSyncKHR l_eglCreateSyncKHR 101 #define eglDestroySyncKHR l_eglDestroySyncKHR 102 #define eglGetSyncAttribKHR l_eglGetSyncAttribKHR 103 #define eglCreateImageKHR l_eglCreateImageKHR 104 #define eglDestroyImageKHR l_eglDestroyImageKHR 105 #define eglSignalSyncKHR l_eglSignalSyncKHR 106 #define eglCreateStreamKHR l_eglCreateStreamKHR 107 #define eglDestroyStreamKHR l_eglDestroyStreamKHR 108 #define eglQueryStreamKHR l_eglQueryStreamKHR 109 #define eglQueryStreamu64KHR l_eglQueryStreamu64KHR 110 #define eglStreamAttribKHR l_eglStreamAttribKHR 111 #define eglStreamConsumerAcquireKHR l_eglStreamConsumerAcquireKHR 112 #define eglStreamConsumerGLTextureExternalKHR l_eglStreamConsumerGLTextureExternalKHR 113 #define eglStreamConsumerReleaseKHR l_eglStreamConsumerReleaseKHR 114 #define eglSwapBuffersWithDamageKHR l_eglSwapBuffersWithDamageKHR 115 #define eglWaitSyncKHR l_eglWaitSyncKHR 116 #define eglPostSubBufferNV l_eglPostSubBufferNV 117 #define eglStreamConsumerGLTextureExternalAttribsNV l_eglStreamConsumerGLTextureExternalAttribsNV 118 ANGLE_UTIL_EXPORT extern PFNEGLCHOOSECONFIGPROC l_eglChooseConfig; 119 ANGLE_UTIL_EXPORT extern PFNEGLCOPYBUFFERSPROC l_eglCopyBuffers; 120 ANGLE_UTIL_EXPORT extern PFNEGLCREATECONTEXTPROC l_eglCreateContext; 121 ANGLE_UTIL_EXPORT extern PFNEGLCREATEPBUFFERSURFACEPROC l_eglCreatePbufferSurface; 122 ANGLE_UTIL_EXPORT extern PFNEGLCREATEPIXMAPSURFACEPROC l_eglCreatePixmapSurface; 123 ANGLE_UTIL_EXPORT extern PFNEGLCREATEWINDOWSURFACEPROC l_eglCreateWindowSurface; 124 ANGLE_UTIL_EXPORT extern PFNEGLDESTROYCONTEXTPROC l_eglDestroyContext; 125 ANGLE_UTIL_EXPORT extern PFNEGLDESTROYSURFACEPROC l_eglDestroySurface; 126 ANGLE_UTIL_EXPORT extern PFNEGLGETCONFIGATTRIBPROC l_eglGetConfigAttrib; 127 ANGLE_UTIL_EXPORT extern PFNEGLGETCONFIGSPROC l_eglGetConfigs; 128 ANGLE_UTIL_EXPORT extern PFNEGLGETCURRENTDISPLAYPROC l_eglGetCurrentDisplay; 129 ANGLE_UTIL_EXPORT extern PFNEGLGETCURRENTSURFACEPROC l_eglGetCurrentSurface; 130 ANGLE_UTIL_EXPORT extern PFNEGLGETDISPLAYPROC l_eglGetDisplay; 131 ANGLE_UTIL_EXPORT extern PFNEGLGETERRORPROC l_eglGetError; 132 ANGLE_UTIL_EXPORT extern PFNEGLGETPROCADDRESSPROC l_eglGetProcAddress; 133 ANGLE_UTIL_EXPORT extern PFNEGLINITIALIZEPROC l_eglInitialize; 134 ANGLE_UTIL_EXPORT extern PFNEGLMAKECURRENTPROC l_eglMakeCurrent; 135 ANGLE_UTIL_EXPORT extern PFNEGLQUERYCONTEXTPROC l_eglQueryContext; 136 ANGLE_UTIL_EXPORT extern PFNEGLQUERYSTRINGPROC l_eglQueryString; 137 ANGLE_UTIL_EXPORT extern PFNEGLQUERYSURFACEPROC l_eglQuerySurface; 138 ANGLE_UTIL_EXPORT extern PFNEGLSWAPBUFFERSPROC l_eglSwapBuffers; 139 ANGLE_UTIL_EXPORT extern PFNEGLTERMINATEPROC l_eglTerminate; 140 ANGLE_UTIL_EXPORT extern PFNEGLWAITGLPROC l_eglWaitGL; 141 ANGLE_UTIL_EXPORT extern PFNEGLWAITNATIVEPROC l_eglWaitNative; 142 ANGLE_UTIL_EXPORT extern PFNEGLBINDTEXIMAGEPROC l_eglBindTexImage; 143 ANGLE_UTIL_EXPORT extern PFNEGLRELEASETEXIMAGEPROC l_eglReleaseTexImage; 144 ANGLE_UTIL_EXPORT extern PFNEGLSURFACEATTRIBPROC l_eglSurfaceAttrib; 145 ANGLE_UTIL_EXPORT extern PFNEGLSWAPINTERVALPROC l_eglSwapInterval; 146 ANGLE_UTIL_EXPORT extern PFNEGLBINDAPIPROC l_eglBindAPI; 147 ANGLE_UTIL_EXPORT extern PFNEGLQUERYAPIPROC l_eglQueryAPI; 148 ANGLE_UTIL_EXPORT extern PFNEGLCREATEPBUFFERFROMCLIENTBUFFERPROC l_eglCreatePbufferFromClientBuffer; 149 ANGLE_UTIL_EXPORT extern PFNEGLRELEASETHREADPROC l_eglReleaseThread; 150 ANGLE_UTIL_EXPORT extern PFNEGLWAITCLIENTPROC l_eglWaitClient; 151 ANGLE_UTIL_EXPORT extern PFNEGLGETCURRENTCONTEXTPROC l_eglGetCurrentContext; 152 ANGLE_UTIL_EXPORT extern PFNEGLCREATESYNCPROC l_eglCreateSync; 153 ANGLE_UTIL_EXPORT extern PFNEGLDESTROYSYNCPROC l_eglDestroySync; 154 ANGLE_UTIL_EXPORT extern PFNEGLCLIENTWAITSYNCPROC l_eglClientWaitSync; 155 ANGLE_UTIL_EXPORT extern PFNEGLGETSYNCATTRIBPROC l_eglGetSyncAttrib; 156 ANGLE_UTIL_EXPORT extern PFNEGLCREATEIMAGEPROC l_eglCreateImage; 157 ANGLE_UTIL_EXPORT extern PFNEGLDESTROYIMAGEPROC l_eglDestroyImage; 158 ANGLE_UTIL_EXPORT extern PFNEGLGETPLATFORMDISPLAYPROC l_eglGetPlatformDisplay; 159 ANGLE_UTIL_EXPORT extern PFNEGLCREATEPLATFORMWINDOWSURFACEPROC l_eglCreatePlatformWindowSurface; 160 ANGLE_UTIL_EXPORT extern PFNEGLCREATEPLATFORMPIXMAPSURFACEPROC l_eglCreatePlatformPixmapSurface; 161 ANGLE_UTIL_EXPORT extern PFNEGLWAITSYNCPROC l_eglWaitSync; 162 ANGLE_UTIL_EXPORT extern PFNEGLSETBLOBCACHEFUNCSANDROIDPROC l_eglSetBlobCacheFuncsANDROID; 163 ANGLE_UTIL_EXPORT extern PFNEGLCREATENATIVECLIENTBUFFERANDROIDPROC 164 l_eglCreateNativeClientBufferANDROID; 165 ANGLE_UTIL_EXPORT extern PFNEGLGETCOMPOSITORTIMINGANDROIDPROC l_eglGetCompositorTimingANDROID; 166 ANGLE_UTIL_EXPORT extern PFNEGLGETCOMPOSITORTIMINGSUPPORTEDANDROIDPROC 167 l_eglGetCompositorTimingSupportedANDROID; 168 ANGLE_UTIL_EXPORT extern PFNEGLGETFRAMETIMESTAMPSUPPORTEDANDROIDPROC 169 l_eglGetFrameTimestampSupportedANDROID; 170 ANGLE_UTIL_EXPORT extern PFNEGLGETFRAMETIMESTAMPSANDROIDPROC l_eglGetFrameTimestampsANDROID; 171 ANGLE_UTIL_EXPORT extern PFNEGLGETNEXTFRAMEIDANDROIDPROC l_eglGetNextFrameIdANDROID; 172 ANGLE_UTIL_EXPORT extern PFNEGLGETNATIVECLIENTBUFFERANDROIDPROC l_eglGetNativeClientBufferANDROID; 173 ANGLE_UTIL_EXPORT extern PFNEGLDUPNATIVEFENCEFDANDROIDPROC l_eglDupNativeFenceFDANDROID; 174 ANGLE_UTIL_EXPORT extern PFNEGLPRESENTATIONTIMEANDROIDPROC l_eglPresentationTimeANDROID; 175 ANGLE_UTIL_EXPORT extern PFNEGLCREATEDEVICEANGLEPROC l_eglCreateDeviceANGLE; 176 ANGLE_UTIL_EXPORT extern PFNEGLRELEASEDEVICEANGLEPROC l_eglReleaseDeviceANGLE; 177 ANGLE_UTIL_EXPORT extern PFNEGLQUERYDISPLAYATTRIBANGLEPROC l_eglQueryDisplayAttribANGLE; 178 ANGLE_UTIL_EXPORT extern PFNEGLQUERYSTRINGIANGLEPROC l_eglQueryStringiANGLE; 179 ANGLE_UTIL_EXPORT extern PFNEGLHANDLEGPUSWITCHANGLEPROC l_eglHandleGPUSwitchANGLE; 180 ANGLE_UTIL_EXPORT extern PFNEGLREACQUIREHIGHPOWERGPUANGLEPROC l_eglReacquireHighPowerGPUANGLE; 181 ANGLE_UTIL_EXPORT extern PFNEGLRELEASEHIGHPOWERGPUANGLEPROC l_eglReleaseHighPowerGPUANGLE; 182 ANGLE_UTIL_EXPORT extern PFNEGLPROGRAMCACHEGETATTRIBANGLEPROC l_eglProgramCacheGetAttribANGLE; 183 ANGLE_UTIL_EXPORT extern PFNEGLPROGRAMCACHEPOPULATEANGLEPROC l_eglProgramCachePopulateANGLE; 184 ANGLE_UTIL_EXPORT extern PFNEGLPROGRAMCACHEQUERYANGLEPROC l_eglProgramCacheQueryANGLE; 185 ANGLE_UTIL_EXPORT extern PFNEGLPROGRAMCACHERESIZEANGLEPROC l_eglProgramCacheResizeANGLE; 186 ANGLE_UTIL_EXPORT extern PFNEGLQUERYSURFACEPOINTERANGLEPROC l_eglQuerySurfacePointerANGLE; 187 ANGLE_UTIL_EXPORT extern PFNEGLCREATESTREAMPRODUCERD3DTEXTUREANGLEPROC 188 l_eglCreateStreamProducerD3DTextureANGLE; 189 ANGLE_UTIL_EXPORT extern PFNEGLSTREAMPOSTD3DTEXTUREANGLEPROC l_eglStreamPostD3DTextureANGLE; 190 ANGLE_UTIL_EXPORT extern PFNEGLSWAPBUFFERSWITHFRAMETOKENANGLEPROC 191 l_eglSwapBuffersWithFrameTokenANGLE; 192 ANGLE_UTIL_EXPORT extern PFNEGLGETMSCRATEANGLEPROC l_eglGetMscRateANGLE; 193 ANGLE_UTIL_EXPORT extern PFNEGLGETSYNCVALUESCHROMIUMPROC l_eglGetSyncValuesCHROMIUM; 194 ANGLE_UTIL_EXPORT extern PFNEGLQUERYDEVICEATTRIBEXTPROC l_eglQueryDeviceAttribEXT; 195 ANGLE_UTIL_EXPORT extern PFNEGLQUERYDEVICESTRINGEXTPROC l_eglQueryDeviceStringEXT; 196 ANGLE_UTIL_EXPORT extern PFNEGLQUERYDISPLAYATTRIBEXTPROC l_eglQueryDisplayAttribEXT; 197 ANGLE_UTIL_EXPORT extern PFNEGLCREATEPLATFORMPIXMAPSURFACEEXTPROC 198 l_eglCreatePlatformPixmapSurfaceEXT; 199 ANGLE_UTIL_EXPORT extern PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC 200 l_eglCreatePlatformWindowSurfaceEXT; 201 ANGLE_UTIL_EXPORT extern PFNEGLGETPLATFORMDISPLAYEXTPROC l_eglGetPlatformDisplayEXT; 202 ANGLE_UTIL_EXPORT extern PFNEGLDEBUGMESSAGECONTROLKHRPROC l_eglDebugMessageControlKHR; 203 ANGLE_UTIL_EXPORT extern PFNEGLLABELOBJECTKHRPROC l_eglLabelObjectKHR; 204 ANGLE_UTIL_EXPORT extern PFNEGLQUERYDEBUGKHRPROC l_eglQueryDebugKHR; 205 ANGLE_UTIL_EXPORT extern PFNEGLCLIENTWAITSYNCKHRPROC l_eglClientWaitSyncKHR; 206 ANGLE_UTIL_EXPORT extern PFNEGLCREATESYNCKHRPROC l_eglCreateSyncKHR; 207 ANGLE_UTIL_EXPORT extern PFNEGLDESTROYSYNCKHRPROC l_eglDestroySyncKHR; 208 ANGLE_UTIL_EXPORT extern PFNEGLGETSYNCATTRIBKHRPROC l_eglGetSyncAttribKHR; 209 ANGLE_UTIL_EXPORT extern PFNEGLCREATEIMAGEKHRPROC l_eglCreateImageKHR; 210 ANGLE_UTIL_EXPORT extern PFNEGLDESTROYIMAGEKHRPROC l_eglDestroyImageKHR; 211 ANGLE_UTIL_EXPORT extern PFNEGLSIGNALSYNCKHRPROC l_eglSignalSyncKHR; 212 ANGLE_UTIL_EXPORT extern PFNEGLCREATESTREAMKHRPROC l_eglCreateStreamKHR; 213 ANGLE_UTIL_EXPORT extern PFNEGLDESTROYSTREAMKHRPROC l_eglDestroyStreamKHR; 214 ANGLE_UTIL_EXPORT extern PFNEGLQUERYSTREAMKHRPROC l_eglQueryStreamKHR; 215 ANGLE_UTIL_EXPORT extern PFNEGLQUERYSTREAMU64KHRPROC l_eglQueryStreamu64KHR; 216 ANGLE_UTIL_EXPORT extern PFNEGLSTREAMATTRIBKHRPROC l_eglStreamAttribKHR; 217 ANGLE_UTIL_EXPORT extern PFNEGLSTREAMCONSUMERACQUIREKHRPROC l_eglStreamConsumerAcquireKHR; 218 ANGLE_UTIL_EXPORT extern PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALKHRPROC 219 l_eglStreamConsumerGLTextureExternalKHR; 220 ANGLE_UTIL_EXPORT extern PFNEGLSTREAMCONSUMERRELEASEKHRPROC l_eglStreamConsumerReleaseKHR; 221 ANGLE_UTIL_EXPORT extern PFNEGLSWAPBUFFERSWITHDAMAGEKHRPROC l_eglSwapBuffersWithDamageKHR; 222 ANGLE_UTIL_EXPORT extern PFNEGLWAITSYNCKHRPROC l_eglWaitSyncKHR; 223 ANGLE_UTIL_EXPORT extern PFNEGLPOSTSUBBUFFERNVPROC l_eglPostSubBufferNV; 224 ANGLE_UTIL_EXPORT extern PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALATTRIBSNVPROC 225 l_eglStreamConsumerGLTextureExternalAttribsNV; 226 227 namespace angle 228 { 229 using GenericProc = void (*)(); 230 using LoadProc = GenericProc(KHRONOS_APIENTRY *)(const char *); 231 ANGLE_UTIL_EXPORT void LoadEGL(LoadProc loadProc); 232 } // namespace angle 233 234 #endif // UTIL_EGL_LOADER_AUTOGEN_H_ 235