1 // 2 // Copyright 2017 The ANGLE Project Authors. All rights reserved. 3 // Use of this source code is governed by a BSD-style license that can be 4 // found in the LICENSE file. 5 // 6 // getProcAddress loader table: 7 // Mapping from a string entry point name to function address. 8 // 9 10 #ifndef LIBGL_GLX_PROC_TABLE_H_ 11 #define LIBGL_GLX_PROC_TABLE_H_ 12 13 #include <X11/Xlib.h> 14 #include <X11/Xutil.h> 15 #include <angle_gl.h> 16 #include <stddef.h> 17 #include <utility> 18 19 using GLXPixmap = XID; 20 using GLXDrawable = XID; 21 using GLXPbuffer = XID; 22 using GLXContext = XID; 23 #include <GLX/glxext.h> 24 25 namespace glx 26 { 27 using ProcEntry = std::pair<const char *, __GLXextFuncPtr>; 28 29 extern const glx::ProcEntry g_procTable[]; 30 extern const size_t g_numProcs; 31 } // namespace glx 32 33 #endif // LIBGL_GLX_PROC_TABLE_H_ 34