···11+# SPDX-FileCopyrightText: 2020, Collabora, Ltd. and the Monado contributors
22+# SPDX-License-Identifier: CC0-1.0
33+44+#
55+# To install glad2 as a user on your system.
66+#
77+# git clone <glad-repo>
88+# git checkout glad2
99+# pip3 install --user .
1010+#
1111+1212+# command line (for the glad2 branch!)
1313+1414+glad --merge \
1515+ --api='gl:core=4.5,gles2=3.2,egl=1.4' \
1616+ --extensions=\
1717+GL_EXT_external_buffer,\
1818+GL_EXT_memory_object,\
1919+GL_EXT_memory_object_fd,\
2020+GL_EXT_memory_object_win32,\
2121+GL_EXT_YUV_target,\
2222+GL_EXT_sRGB,\
2323+GL_EXT_EGL_image_storage,\
2424+GL_OES_depth_texture,\
2525+GL_OES_rgb8_rgba8,\
2626+GL_OES_packed_depth_stencil,\
2727+GL_OES_EGL_image,\
2828+GL_OES_EGL_image_external,\
2929+GL_OES_EGL_image_external_essl3,\
3030+EGL_KHR_create_context,\
3131+EGL_KHR_gl_colorspace,\
3232+EGL_KHR_fence_sync,\
3333+EGL_KHR_reusable_sync,\
3434+EGL_KHR_wait_sync,\
3535+EGL_KHR_image,\
3636+EGL_KHR_image_base,\
3737+EGL_KHR_platform_android,\
3838+EGL_EXT_image_gl_colorspace,\
3939+EGL_EXT_image_dma_buf_import,\
4040+EGL_EXT_image_dma_buf_import_modifiers,\
4141+EGL_ANDROID_get_native_client_buffer,\
4242+EGL_ANDROID_image_native_buffer,\
4343+EGL_ANDROID_native_fence_sync,\
4444+EGL_ANDROID_front_buffer_auto_refresh,\
4545+EGL_IMG_context_priority,\
4646+ --out-path . c
+11-24
src/external/glad/include/EGL/eglplatform.h
···22#define __eglplatform_h_
3344/*
55-** Copyright (c) 2007-2016 The Khronos Group Inc.
66-**
77-** Permission is hereby granted, free of charge, to any person obtaining a
88-** copy of this software and/or associated documentation files (the
99-** "Materials"), to deal in the Materials without restriction, including
1010-** without limitation the rights to use, copy, modify, merge, publish,
1111-** distribute, sublicense, and/or sell copies of the Materials, and to
1212-** permit persons to whom the Materials are furnished to do so, subject to
1313-** the following conditions:
1414-**
1515-** The above copyright notice and this permission notice shall be included
1616-** in all copies or substantial portions of the Materials.
1717-**
1818-** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
1919-** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
2020-** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
2121-** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
2222-** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
2323-** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
2424-** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
55+** Copyright 2007-2020 The Khronos Group Inc.
66+** SPDX-License-Identifier: Apache-2.0
257*/
268279/* Platform-specific types and definitions for egl.h
2828- * $Revision: 30994 $ on $Date: 2015-04-30 13:36:48 -0700 (Thu, 30 Apr 2015) $
2910 *
3011 * Adopters may modify khrplatform.h and this file to suit their platform.
3112 * You are encouraged to submit all modifications to the Khronos group so that
3213 * they can be included in future versions of this file. Please submit changes
3333- * by sending them to the public Khronos Bugzilla (http://khronos.org/bugzilla)
3434- * by filing a bug against product "EGL" component "Registry".
1414+ * by filing an issue or pull request on the public Khronos EGL Registry, at
1515+ * https://www.github.com/KhronosGroup/EGL-Registry/
3516 */
36173718#include <KHR/khrplatform.h>
···6748 * implementations.
6849 */
69507070-#if defined(_WIN32) || defined(__VC32__) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__) /* Win32 and WinCE */
5151+#if defined(EGL_NO_PLATFORM_SPECIFIC_TYPES)
5252+5353+typedef void *EGLNativeDisplayType;
5454+typedef void *EGLNativePixmapType;
5555+typedef void *EGLNativeWindowType;
5656+5757+#elif defined(_WIN32) || defined(__VC32__) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__) /* Win32 and WinCE */
7158#ifndef WIN32_LEAN_AND_MEAN
7259#define WIN32_LEAN_AND_MEAN 1
7360#endif