ミラー

諏訪子 <suwako@076.moe>、2026-04-28 17:17
コミット 048335800eba4d30ddf709cfdfed04cfa1d57927 ・ファイルを見る

23個のファイル、+16142 -0

追加 .clangd
@@ -0,0 +1,13 @@
1+CompileFlags:
2+ Add:
3+ - -I./include
4+ - -I/usr/include
5+ - -I/usr/local/include
6+ - -I/usr/X11R6/include
7+ - -I/usr/X11R7/include
8+ - -L/usr/lib
9+ - -L/usr/local/lib
10+ - -L/usr/X11R6/lib
11+ - -L/usr/X11R7/lib
12+ - -std=c++11
13+ - -Wno-pragma-once-outside-header
追加 .gitignore
@@ -0,0 +1,5 @@
1+*.vcxproj.filters
2+glsltester
3+*.dylib
4+*.lib
5+*.dll
追加 build-unix.sh
@@ -0,0 +1,8 @@
1+#!/bin/sh
2+
3+cc main.c src/glad.c -o glsltester\
4+ -I./include -I/usr/include -I/usr/X11R6/include -I/usr/X11R7/include\
5+ -I/usr/local/include\
6+ -L/usr/lib -L/usr/X11R6/lib -L/usr/X11R7/lib -L/usr/local/lib\
7+ -lglfw -lm
8+./glsltester
@@ -0,0 +1,31 @@
1+
2+Microsoft Visual Studio Solution File, Format Version 12.00
3+# Visual Studio Version 17
4+VisualStudioVersion = 17.14.36301.6 d17.14
5+MinimumVisualStudioVersion = 10.0.40219.1
6+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "glsltester", "glsltester.vcxproj", "{7C44843B-8804-4668-9DAB-EC45D2AD9769}"
7+EndProject
8+Global
9+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+ Debug|x64 = Debug|x64
11+ Debug|x86 = Debug|x86
12+ Release|x64 = Release|x64
13+ Release|x86 = Release|x86
14+ EndGlobalSection
15+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
16+ {7C44843B-8804-4668-9DAB-EC45D2AD9769}.Debug|x64.ActiveCfg = Debug|x64
17+ {7C44843B-8804-4668-9DAB-EC45D2AD9769}.Debug|x64.Build.0 = Debug|x64
18+ {7C44843B-8804-4668-9DAB-EC45D2AD9769}.Debug|x86.ActiveCfg = Debug|Win32
19+ {7C44843B-8804-4668-9DAB-EC45D2AD9769}.Debug|x86.Build.0 = Debug|Win32
20+ {7C44843B-8804-4668-9DAB-EC45D2AD9769}.Release|x64.ActiveCfg = Release|x64
21+ {7C44843B-8804-4668-9DAB-EC45D2AD9769}.Release|x64.Build.0 = Release|x64
22+ {7C44843B-8804-4668-9DAB-EC45D2AD9769}.Release|x86.ActiveCfg = Release|Win32
23+ {7C44843B-8804-4668-9DAB-EC45D2AD9769}.Release|x86.Build.0 = Release|Win32
24+ EndGlobalSection
25+ GlobalSection(SolutionProperties) = preSolution
26+ HideSolutionNode = FALSE
27+ EndGlobalSection
28+ GlobalSection(ExtensibilityGlobals) = postSolution
29+ SolutionGuid = {E20DA608-9E1A-4C24-80CD-47C81F719198}
30+ EndGlobalSection
31+EndGlobal
@@ -0,0 +1,149 @@
1+<?xml version="1.0" encoding="utf-8"?>
2+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+ <ItemGroup Label="ProjectConfigurations">
4+ <ProjectConfiguration Include="Debug|Win32">
5+ <Configuration>Debug</Configuration>
6+ <Platform>Win32</Platform>
7+ </ProjectConfiguration>
8+ <ProjectConfiguration Include="Release|Win32">
9+ <Configuration>Release</Configuration>
10+ <Platform>Win32</Platform>
11+ </ProjectConfiguration>
12+ <ProjectConfiguration Include="Debug|x64">
13+ <Configuration>Debug</Configuration>
14+ <Platform>x64</Platform>
15+ </ProjectConfiguration>
16+ <ProjectConfiguration Include="Release|x64">
17+ <Configuration>Release</Configuration>
18+ <Platform>x64</Platform>
19+ </ProjectConfiguration>
20+ </ItemGroup>
21+ <PropertyGroup Label="Globals">
22+ <VCProjectVersion>17.0</VCProjectVersion>
23+ <Keyword>Win32Proj</Keyword>
24+ <ProjectGuid>{7c44843b-8804-4668-9dab-ec45d2ad9769}</ProjectGuid>
25+ <RootNamespace>glsltester</RootNamespace>
26+ <WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
27+ </PropertyGroup>
28+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
29+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
30+ <ConfigurationType>Application</ConfigurationType>
31+ <UseDebugLibraries>true</UseDebugLibraries>
32+ <PlatformToolset>v143</PlatformToolset>
33+ <CharacterSet>Unicode</CharacterSet>
34+ </PropertyGroup>
35+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
36+ <ConfigurationType>Application</ConfigurationType>
37+ <UseDebugLibraries>false</UseDebugLibraries>
38+ <PlatformToolset>v143</PlatformToolset>
39+ <WholeProgramOptimization>true</WholeProgramOptimization>
40+ <CharacterSet>Unicode</CharacterSet>
41+ </PropertyGroup>
42+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
43+ <ConfigurationType>Application</ConfigurationType>
44+ <UseDebugLibraries>true</UseDebugLibraries>
45+ <PlatformToolset>v143</PlatformToolset>
46+ <CharacterSet>Unicode</CharacterSet>
47+ </PropertyGroup>
48+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
49+ <ConfigurationType>Application</ConfigurationType>
50+ <UseDebugLibraries>false</UseDebugLibraries>
51+ <PlatformToolset>v143</PlatformToolset>
52+ <WholeProgramOptimization>true</WholeProgramOptimization>
53+ <CharacterSet>Unicode</CharacterSet>
54+ </PropertyGroup>
55+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
56+ <ImportGroup Label="ExtensionSettings">
57+ </ImportGroup>
58+ <ImportGroup Label="Shared">
59+ </ImportGroup>
60+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
61+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
62+ </ImportGroup>
63+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
64+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
65+ </ImportGroup>
66+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
67+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
68+ </ImportGroup>
69+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
70+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
71+ </ImportGroup>
72+ <PropertyGroup Label="UserMacros" />
73+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
74+ <ClCompile>
75+ <WarningLevel>Level3</WarningLevel>
76+ <SDLCheck>true</SDLCheck>
77+ <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
78+ <ConformanceMode>true</ConformanceMode>
79+ </ClCompile>
80+ <Link>
81+ <SubSystem>Console</SubSystem>
82+ <GenerateDebugInformation>true</GenerateDebugInformation>
83+ </Link>
84+ </ItemDefinitionGroup>
85+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
86+ <ClCompile>
87+ <WarningLevel>Level3</WarningLevel>
88+ <FunctionLevelLinking>true</FunctionLevelLinking>
89+ <IntrinsicFunctions>true</IntrinsicFunctions>
90+ <SDLCheck>true</SDLCheck>
91+ <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
92+ <ConformanceMode>true</ConformanceMode>
93+ </ClCompile>
94+ <Link>
95+ <SubSystem>Console</SubSystem>
96+ <GenerateDebugInformation>true</GenerateDebugInformation>
97+ </Link>
98+ </ItemDefinitionGroup>
99+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
100+ <ClCompile>
101+ <WarningLevel>Level3</WarningLevel>
102+ <SDLCheck>true</SDLCheck>
103+ <PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
104+ <ConformanceMode>true</ConformanceMode>
105+ <AdditionalIncludeDirectories>$(SolutionDir)include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
106+ <LanguageStandard>
107+ </LanguageStandard>
108+ <AdditionalOptions>/utf-8 %(AdditionalOptions)</AdditionalOptions>
109+ <LanguageStandard_C>Default</LanguageStandard_C>
110+ </ClCompile>
111+ <Link>
112+ <SubSystem>Console</SubSystem>
113+ <GenerateDebugInformation>true</GenerateDebugInformation>
114+ <AdditionalDependencies>glfw3.lib;opengl32.lib;%(AdditionalDependencies)</AdditionalDependencies>
115+ <AdditionalLibraryDirectories>$(SolutionDir)lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
116+ </Link>
117+ </ItemDefinitionGroup>
118+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
119+ <ClCompile>
120+ <WarningLevel>Level3</WarningLevel>
121+ <FunctionLevelLinking>true</FunctionLevelLinking>
122+ <IntrinsicFunctions>true</IntrinsicFunctions>
123+ <SDLCheck>true</SDLCheck>
124+ <PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
125+ <ConformanceMode>true</ConformanceMode>
126+ <AdditionalIncludeDirectories>$(SolutionDir)include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
127+ <LanguageStandard>stdcpp17</LanguageStandard>
128+ </ClCompile>
129+ <Link>
130+ <SubSystem>Console</SubSystem>
131+ <GenerateDebugInformation>true</GenerateDebugInformation>
132+ <AdditionalDependencies>glfw3.lib;opengl32.lib;%(AdditionalDependencies)</AdditionalDependencies>
133+ <AdditionalLibraryDirectories>$(SolutionDir)lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
134+ </Link>
135+ </ItemDefinitionGroup>
136+ <ItemGroup>
137+ <ClCompile Include="main.c" />
138+ <ClCompile Include="src\glad.c" />
139+ </ItemGroup>
140+ <ItemGroup>
141+ <None Include="shader\fragment.glsl" />
142+ <None Include="shader\fragment.mac.glsl" />
143+ <None Include="shader\vertex.glsl" />
144+ <None Include="shader\vertex.mac.glsl" />
145+ </ItemGroup>
146+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
147+ <ImportGroup Label="ExtensionTargets">
148+ </ImportGroup>
149+</Project>
@@ -0,0 +1,367 @@
1+// !$*UTF8*$!
2+{
3+ archiveVersion = 1;
4+ classes = {
5+ };
6+ objectVersion = 77;
7+ objects = {
8+
9+/* Begin PBXBuildFile section */
10+ 740F1FB42E2CFEE5007AF2F4 /* main.c in Sources */ = {isa = PBXBuildFile; fileRef = 740F1FB32E2CFEE5007AF2F4 /* main.c */; };
11+ 740F1FC42E2D001F007AF2F4 /* glad.c in Sources */ = {isa = PBXBuildFile; fileRef = 740F1FC22E2D001F007AF2F4 /* glad.c */; };
12+ 74A4CCE72E2ED32D00C17BC8 /* fragment.mac.glsl in CopyFiles */ = {isa = PBXBuildFile; fileRef = 74A4CCDF2E2D1E6300C17BC8 /* fragment.mac.glsl */; };
13+ 74A4CCE82E2ED32D00C17BC8 /* vertex.mac.glsl in CopyFiles */ = {isa = PBXBuildFile; fileRef = 74A4CCE12E2D1E6300C17BC8 /* vertex.mac.glsl */; };
14+/* End PBXBuildFile section */
15+
16+/* Begin PBXCopyFilesBuildPhase section */
17+ 740F1FAE2E2CFEE4007AF2F4 /* CopyFiles */ = {
18+ isa = PBXCopyFilesBuildPhase;
19+ buildActionMask = 12;
20+ dstPath = ./shader;
21+ dstSubfolderSpec = 7;
22+ files = (
23+ 74A4CCE72E2ED32D00C17BC8 /* fragment.mac.glsl in CopyFiles */,
24+ 74A4CCE82E2ED32D00C17BC8 /* vertex.mac.glsl in CopyFiles */,
25+ );
26+ runOnlyForDeploymentPostprocessing = 0;
27+ };
28+/* End PBXCopyFilesBuildPhase section */
29+
30+/* Begin PBXFileReference section */
31+ 740F1FB02E2CFEE4007AF2F4 /* glsltester */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = glsltester; sourceTree = BUILT_PRODUCTS_DIR; };
32+ 740F1FB32E2CFEE5007AF2F4 /* main.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = main.c; sourceTree = "<group>"; };
33+ 740F1FBA2E2D001F007AF2F4 /* glad.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = glad.h; sourceTree = "<group>"; };
34+ 740F1FBC2E2D001F007AF2F4 /* glfw3.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = glfw3.h; sourceTree = "<group>"; };
35+ 740F1FBD2E2D001F007AF2F4 /* glfw3native.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = glfw3native.h; sourceTree = "<group>"; };
36+ 740F1FBF2E2D001F007AF2F4 /* khrplatform.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = khrplatform.h; sourceTree = "<group>"; };
37+ 740F1FC22E2D001F007AF2F4 /* glad.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = glad.c; sourceTree = "<group>"; };
38+ 74A4CCDE2E2D1E6300C17BC8 /* fragment.glsl */ = {isa = PBXFileReference; lastKnownFileType = text; path = fragment.glsl; sourceTree = "<group>"; };
39+ 74A4CCDF2E2D1E6300C17BC8 /* fragment.mac.glsl */ = {isa = PBXFileReference; lastKnownFileType = text; path = fragment.mac.glsl; sourceTree = "<group>"; };
40+ 74A4CCE02E2D1E6300C17BC8 /* vertex.glsl */ = {isa = PBXFileReference; lastKnownFileType = text; path = vertex.glsl; sourceTree = "<group>"; };
41+ 74A4CCE12E2D1E6300C17BC8 /* vertex.mac.glsl */ = {isa = PBXFileReference; lastKnownFileType = text; path = vertex.mac.glsl; sourceTree = "<group>"; };
42+ 74D3E6DB2E2EDA0500C5B781 /* vector.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = vector.h; sourceTree = "<group>"; };
43+/* End PBXFileReference section */
44+
45+/* Begin PBXFrameworksBuildPhase section */
46+ 740F1FAD2E2CFEE4007AF2F4 /* Frameworks */ = {
47+ isa = PBXFrameworksBuildPhase;
48+ buildActionMask = 2147483647;
49+ files = (
50+ );
51+ runOnlyForDeploymentPostprocessing = 0;
52+ };
53+/* End PBXFrameworksBuildPhase section */
54+
55+/* Begin PBXGroup section */
56+ 740F1FA72E2CFEE4007AF2F4 = {
57+ isa = PBXGroup;
58+ children = (
59+ 740F1FB12E2CFEE4007AF2F4 /* Products */,
60+ 740F1FB32E2CFEE5007AF2F4 /* main.c */,
61+ );
62+ sourceTree = "<group>";
63+ };
64+ 740F1FB12E2CFEE4007AF2F4 /* Products */ = {
65+ isa = PBXGroup;
66+ children = (
67+ 74A4CCE22E2D1E6300C17BC8 /* shader */,
68+ 740F1FC12E2D001F007AF2F4 /* include */,
69+ 740F1FC32E2D001F007AF2F4 /* src */,
70+ 740F1FB02E2CFEE4007AF2F4 /* glsltester */,
71+ );
72+ name = Products;
73+ sourceTree = "<group>";
74+ };
75+ 740F1FBB2E2D001F007AF2F4 /* glad */ = {
76+ isa = PBXGroup;
77+ children = (
78+ 740F1FBA2E2D001F007AF2F4 /* glad.h */,
79+ );
80+ path = glad;
81+ sourceTree = "<group>";
82+ };
83+ 740F1FBE2E2D001F007AF2F4 /* GLFW */ = {
84+ isa = PBXGroup;
85+ children = (
86+ 740F1FBC2E2D001F007AF2F4 /* glfw3.h */,
87+ 740F1FBD2E2D001F007AF2F4 /* glfw3native.h */,
88+ );
89+ path = GLFW;
90+ sourceTree = "<group>";
91+ };
92+ 740F1FC02E2D001F007AF2F4 /* KHR */ = {
93+ isa = PBXGroup;
94+ children = (
95+ 740F1FBF2E2D001F007AF2F4 /* khrplatform.h */,
96+ );
97+ path = KHR;
98+ sourceTree = "<group>";
99+ };
100+ 740F1FC12E2D001F007AF2F4 /* include */ = {
101+ isa = PBXGroup;
102+ children = (
103+ 74D3E6DB2E2EDA0500C5B781 /* vector.h */,
104+ 740F1FBB2E2D001F007AF2F4 /* glad */,
105+ 740F1FBE2E2D001F007AF2F4 /* GLFW */,
106+ 740F1FC02E2D001F007AF2F4 /* KHR */,
107+ );
108+ path = include;
109+ sourceTree = "<group>";
110+ };
111+ 740F1FC32E2D001F007AF2F4 /* src */ = {
112+ isa = PBXGroup;
113+ children = (
114+ 740F1FC22E2D001F007AF2F4 /* glad.c */,
115+ );
116+ path = src;
117+ sourceTree = "<group>";
118+ };
119+ 74A4CCE22E2D1E6300C17BC8 /* shader */ = {
120+ isa = PBXGroup;
121+ children = (
122+ 74A4CCDE2E2D1E6300C17BC8 /* fragment.glsl */,
123+ 74A4CCDF2E2D1E6300C17BC8 /* fragment.mac.glsl */,
124+ 74A4CCE02E2D1E6300C17BC8 /* vertex.glsl */,
125+ 74A4CCE12E2D1E6300C17BC8 /* vertex.mac.glsl */,
126+ );
127+ path = shader;
128+ sourceTree = "<group>";
129+ };
130+/* End PBXGroup section */
131+
132+/* Begin PBXNativeTarget section */
133+ 740F1FAF2E2CFEE4007AF2F4 /* glsltester */ = {
134+ isa = PBXNativeTarget;
135+ buildConfigurationList = 740F1FB72E2CFEE5007AF2F4 /* Build configuration list for PBXNativeTarget "glsltester" */;
136+ buildPhases = (
137+ 740F1FAC2E2CFEE4007AF2F4 /* Sources */,
138+ 740F1FAD2E2CFEE4007AF2F4 /* Frameworks */,
139+ 740F1FAE2E2CFEE4007AF2F4 /* CopyFiles */,
140+ );
141+ buildRules = (
142+ );
143+ dependencies = (
144+ );
145+ name = glsltester;
146+ packageProductDependencies = (
147+ );
148+ productName = glsltester;
149+ productReference = 740F1FB02E2CFEE4007AF2F4 /* glsltester */;
150+ productType = "com.apple.product-type.tool";
151+ };
152+/* End PBXNativeTarget section */
153+
154+/* Begin PBXProject section */
155+ 740F1FA82E2CFEE4007AF2F4 /* Project object */ = {
156+ isa = PBXProject;
157+ attributes = {
158+ BuildIndependentTargetsInParallel = 1;
159+ LastUpgradeCheck = 1640;
160+ TargetAttributes = {
161+ 740F1FAF2E2CFEE4007AF2F4 = {
162+ CreatedOnToolsVersion = 16.4;
163+ };
164+ };
165+ };
166+ buildConfigurationList = 740F1FAB2E2CFEE4007AF2F4 /* Build configuration list for PBXProject "glsltester" */;
167+ developmentRegion = en;
168+ hasScannedForEncodings = 0;
169+ knownRegions = (
170+ en,
171+ Base,
172+ );
173+ mainGroup = 740F1FA72E2CFEE4007AF2F4;
174+ minimizedProjectReferenceProxies = 1;
175+ preferredProjectObjectVersion = 77;
176+ productRefGroup = 740F1FB12E2CFEE4007AF2F4 /* Products */;
177+ projectDirPath = "";
178+ projectRoot = "";
179+ targets = (
180+ 740F1FAF2E2CFEE4007AF2F4 /* glsltester */,
181+ );
182+ };
183+/* End PBXProject section */
184+
185+/* Begin PBXSourcesBuildPhase section */
186+ 740F1FAC2E2CFEE4007AF2F4 /* Sources */ = {
187+ isa = PBXSourcesBuildPhase;
188+ buildActionMask = 2147483647;
189+ files = (
190+ 740F1FB42E2CFEE5007AF2F4 /* main.c in Sources */,
191+ 740F1FC42E2D001F007AF2F4 /* glad.c in Sources */,
192+ );
193+ runOnlyForDeploymentPostprocessing = 0;
194+ };
195+/* End PBXSourcesBuildPhase section */
196+
197+/* Begin XCBuildConfiguration section */
198+ 740F1FB52E2CFEE5007AF2F4 /* Debug */ = {
199+ isa = XCBuildConfiguration;
200+ buildSettings = {
201+ ALWAYS_SEARCH_USER_PATHS = NO;
202+ ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
203+ CLANG_ANALYZER_NONNULL = YES;
204+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
205+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
206+ CLANG_ENABLE_MODULES = YES;
207+ CLANG_ENABLE_OBJC_ARC = YES;
208+ CLANG_ENABLE_OBJC_WEAK = YES;
209+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
210+ CLANG_WARN_BOOL_CONVERSION = YES;
211+ CLANG_WARN_COMMA = YES;
212+ CLANG_WARN_CONSTANT_CONVERSION = YES;
213+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
214+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
215+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
216+ CLANG_WARN_EMPTY_BODY = YES;
217+ CLANG_WARN_ENUM_CONVERSION = YES;
218+ CLANG_WARN_INFINITE_RECURSION = YES;
219+ CLANG_WARN_INT_CONVERSION = YES;
220+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
221+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
222+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
223+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
224+ CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
225+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
226+ CLANG_WARN_STRICT_PROTOTYPES = YES;
227+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
228+ CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
229+ CLANG_WARN_UNREACHABLE_CODE = YES;
230+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
231+ COPY_PHASE_STRIP = NO;
232+ DEBUG_INFORMATION_FORMAT = dwarf;
233+ ENABLE_STRICT_OBJC_MSGSEND = YES;
234+ ENABLE_TESTABILITY = YES;
235+ ENABLE_USER_SCRIPT_SANDBOXING = YES;
236+ GCC_C_LANGUAGE_STANDARD = gnu17;
237+ GCC_DYNAMIC_NO_PIC = NO;
238+ GCC_NO_COMMON_BLOCKS = YES;
239+ GCC_OPTIMIZATION_LEVEL = 0;
240+ GCC_PREPROCESSOR_DEFINITIONS = (
241+ "DEBUG=1",
242+ "$(inherited)",
243+ );
244+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
245+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
246+ GCC_WARN_UNDECLARED_SELECTOR = YES;
247+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
248+ GCC_WARN_UNUSED_FUNCTION = YES;
249+ GCC_WARN_UNUSED_VARIABLE = YES;
250+ LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
251+ MACOSX_DEPLOYMENT_TARGET = 15.5;
252+ MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
253+ MTL_FAST_MATH = YES;
254+ ONLY_ACTIVE_ARCH = YES;
255+ SDKROOT = macosx;
256+ };
257+ name = Debug;
258+ };
259+ 740F1FB62E2CFEE5007AF2F4 /* Release */ = {
260+ isa = XCBuildConfiguration;
261+ buildSettings = {
262+ ALWAYS_SEARCH_USER_PATHS = NO;
263+ ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
264+ CLANG_ANALYZER_NONNULL = YES;
265+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
266+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
267+ CLANG_ENABLE_MODULES = YES;
268+ CLANG_ENABLE_OBJC_ARC = YES;
269+ CLANG_ENABLE_OBJC_WEAK = YES;
270+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
271+ CLANG_WARN_BOOL_CONVERSION = YES;
272+ CLANG_WARN_COMMA = YES;
273+ CLANG_WARN_CONSTANT_CONVERSION = YES;
274+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
275+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
276+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
277+ CLANG_WARN_EMPTY_BODY = YES;
278+ CLANG_WARN_ENUM_CONVERSION = YES;
279+ CLANG_WARN_INFINITE_RECURSION = YES;
280+ CLANG_WARN_INT_CONVERSION = YES;
281+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
282+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
283+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
284+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
285+ CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
286+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
287+ CLANG_WARN_STRICT_PROTOTYPES = YES;
288+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
289+ CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
290+ CLANG_WARN_UNREACHABLE_CODE = YES;
291+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
292+ COPY_PHASE_STRIP = NO;
293+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
294+ ENABLE_NS_ASSERTIONS = NO;
295+ ENABLE_STRICT_OBJC_MSGSEND = YES;
296+ ENABLE_USER_SCRIPT_SANDBOXING = YES;
297+ GCC_C_LANGUAGE_STANDARD = gnu17;
298+ GCC_NO_COMMON_BLOCKS = YES;
299+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
300+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
301+ GCC_WARN_UNDECLARED_SELECTOR = YES;
302+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
303+ GCC_WARN_UNUSED_FUNCTION = YES;
304+ GCC_WARN_UNUSED_VARIABLE = YES;
305+ LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
306+ MACOSX_DEPLOYMENT_TARGET = 15.5;
307+ MTL_ENABLE_DEBUG_INFO = NO;
308+ MTL_FAST_MATH = YES;
309+ SDKROOT = macosx;
310+ };
311+ name = Release;
312+ };
313+ 740F1FB82E2CFEE5007AF2F4 /* Debug */ = {
314+ isa = XCBuildConfiguration;
315+ buildSettings = {
316+ CODE_SIGN_STYLE = Automatic;
317+ LIBRARY_SEARCH_PATHS = /usr/local/lib;
318+ MACOSX_DEPLOYMENT_TARGET = 11.5;
319+ OTHER_CFLAGS = (
320+ "-I./include",
321+ "-L./lib",
322+ );
323+ OTHER_LDFLAGS = "-lglfw";
324+ PRODUCT_NAME = "$(TARGET_NAME)";
325+ };
326+ name = Debug;
327+ };
328+ 740F1FB92E2CFEE5007AF2F4 /* Release */ = {
329+ isa = XCBuildConfiguration;
330+ buildSettings = {
331+ CODE_SIGN_STYLE = Automatic;
332+ LIBRARY_SEARCH_PATHS = /usr/local/lib;
333+ MACOSX_DEPLOYMENT_TARGET = 11.5;
334+ OTHER_CFLAGS = (
335+ "-I./include",
336+ "-L./lib",
337+ );
338+ OTHER_LDFLAGS = "-lglfw";
339+ PRODUCT_NAME = "$(TARGET_NAME)";
340+ };
341+ name = Release;
342+ };
343+/* End XCBuildConfiguration section */
344+
345+/* Begin XCConfigurationList section */
346+ 740F1FAB2E2CFEE4007AF2F4 /* Build configuration list for PBXProject "glsltester" */ = {
347+ isa = XCConfigurationList;
348+ buildConfigurations = (
349+ 740F1FB52E2CFEE5007AF2F4 /* Debug */,
350+ 740F1FB62E2CFEE5007AF2F4 /* Release */,
351+ );
352+ defaultConfigurationIsVisible = 0;
353+ defaultConfigurationName = Release;
354+ };
355+ 740F1FB72E2CFEE5007AF2F4 /* Build configuration list for PBXNativeTarget "glsltester" */ = {
356+ isa = XCConfigurationList;
357+ buildConfigurations = (
358+ 740F1FB82E2CFEE5007AF2F4 /* Debug */,
359+ 740F1FB92E2CFEE5007AF2F4 /* Release */,
360+ );
361+ defaultConfigurationIsVisible = 0;
362+ defaultConfigurationName = Release;
363+ };
364+/* End XCConfigurationList section */
365+ };
366+ rootObject = 740F1FA82E2CFEE4007AF2F4 /* Project object */;
367+}
@@ -0,0 +1,7 @@
1+<?xml version="1.0" encoding="UTF-8"?>
2+<Workspace
3+ version = "1.0">
4+ <FileRef
5+ location = "self:">
6+ </FileRef>
7+</Workspace>
@@ -0,0 +1,5 @@
1+<?xml version="1.0" encoding="UTF-8"?>
2+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+<plist version="1.0">
4+<dict/>
5+</plist>
@@ -0,0 +1,14 @@
1+<?xml version="1.0" encoding="UTF-8"?>
2+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+<plist version="1.0">
4+<dict>
5+ <key>BuildLocationStyle</key>
6+ <string>UseAppPreferences</string>
7+ <key>CustomBuildLocationType</key>
8+ <string>RelativeToDerivedData</string>
9+ <key>DerivedDataLocationStyle</key>
10+ <string>Default</string>
11+ <key>ShowSharedSchemesAutomaticallyEnabled</key>
12+ <true/>
13+</dict>
14+</plist>
@@ -0,0 +1,14 @@
1+<?xml version="1.0" encoding="UTF-8"?>
2+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+<plist version="1.0">
4+<dict>
5+ <key>SchemeUserState</key>
6+ <dict>
7+ <key>glsltester.xcscheme_^#shared#^_</key>
8+ <dict>
9+ <key>orderHint</key>
10+ <integer>0</integer>
11+ </dict>
12+ </dict>
13+</dict>
14+</plist>

長いので途中までです

@@ -0,0 +1,6547 @@
1+/*************************************************************************
2+ * GLFW 3.4 - www.glfw.org
3+ * A library for OpenGL, window and input
4+ *------------------------------------------------------------------------
5+ * Copyright (c) 2002-2006 Marcus Geelnard
6+ * Copyright (c) 2006-2019 Camilla Löwy <elmindreda@glfw.org>
7+ *
8+ * This software is provided 'as-is', without any express or implied
9+ * warranty. In no event will the authors be held liable for any damages
10+ * arising from the use of this software.
11+ *
12+ * Permission is granted to anyone to use this software for any purpose,
13+ * including commercial applications, and to alter it and redistribute it
14+ * freely, subject to the following restrictions:
15+ *
16+ * 1. The origin of this software must not be misrepresented; you must not
17+ * claim that you wrote the original software. If you use this software
18+ * in a product, an acknowledgment in the product documentation would
19+ * be appreciated but is not required.
20+ *
21+ * 2. Altered source versions must be plainly marked as such, and must not
22+ * be misrepresented as being the original software.
23+ *
24+ * 3. This notice may not be removed or altered from any source
25+ * distribution.
26+ *
27+ *************************************************************************/
28+
29+#ifndef _glfw3_h_
30+#define _glfw3_h_
31+
32+#ifdef __cplusplus
33+extern "C" {
34+#endif
35+
36+
37+/*************************************************************************
38+ * Doxygen documentation
39+ *************************************************************************/
40+
41+/*! @file glfw3.h
42+ * @brief The header of the GLFW 3 API.
43+ *
44+ * This is the header file of the GLFW 3 API. It defines all its types and
45+ * declares all its functions.
46+ *
47+ * For more information about how to use this file, see @ref build_include.
48+ */
49+/*! @defgroup context Context reference
50+ * @brief Functions and types related to OpenGL and OpenGL ES contexts.
51+ *
52+ * This is the reference documentation for OpenGL and OpenGL ES context related
53+ * functions. For more task-oriented information, see the @ref context_guide.
54+ */
55+/*! @defgroup vulkan Vulkan support reference
56+ * @brief Functions and types related to Vulkan.
57+ *
58+ * This is the reference documentation for Vulkan related functions and types.
59+ * For more task-oriented information, see the @ref vulkan_guide.
60+ */
61+/*! @defgroup init Initialization, version and error reference
62+ * @brief Functions and types related to initialization and error handling.
63+ *
64+ * This is the reference documentation for initialization and termination of
65+ * the library, version management and error handling. For more task-oriented
66+ * information, see the @ref intro_guide.
67+ */
68+/*! @defgroup input Input reference
69+ * @brief Functions and types related to input handling.
70+ *
71+ * This is the reference documentation for input related functions and types.
72+ * For more task-oriented information, see the @ref input_guide.
73+ */
74+/*! @defgroup monitor Monitor reference
75+ * @brief Functions and types related to monitors.
76+ *
77+ * This is the reference documentation for monitor related functions and types.
78+ * For more task-oriented information, see the @ref monitor_guide.
79+ */
80+/*! @defgroup window Window reference
81+ * @brief Functions and types related to windows.
82+ *
83+ * This is the reference documentation for window related functions and types,
84+ * including creation, deletion and event polling. For more task-oriented
85+ * information, see the @ref window_guide.
86+ */
87+
88+
89+/*************************************************************************
90+ * Compiler- and platform-specific preprocessor work
91+ *************************************************************************/
92+
93+/* If we are we on Windows, we want a single define for it.
94+ */
95+#if !defined(_WIN32) && (defined(__WIN32__) || defined(WIN32) || defined(__MINGW32__))
96+ #define _WIN32
97+#endif /* _WIN32 */
98+
99+/* Include because most Windows GLU headers need wchar_t and
100+ * the macOS OpenGL header blocks the definition of ptrdiff_t by glext.h.
101+ * Include it unconditionally to avoid surprising side-effects.
102+ */
103+#include <stddef.h>
104+
105+/* Include because it is needed by Vulkan and related functions.
106+ * Include it unconditionally to avoid surprising side-effects.
107+ */
108+#include <stdint.h>
109+
110+#if defined(GLFW_INCLUDE_VULKAN)
111+ #include <vulkan/vulkan.h>
112+#endif /* Vulkan header */
113+
114+/* The Vulkan header may have indirectly included windows.h (because of
115+ * VK_USE_PLATFORM_WIN32_KHR) so we offer our replacement symbols after it.
116+ */
117+
118+/* It is customary to use APIENTRY for OpenGL function pointer declarations on
119+ * all platforms. Additionally, the Windows OpenGL header needs APIENTRY.
120+ */
121+#if !defined(APIENTRY)
122+ #if defined(_WIN32)
123+ #define APIENTRY __stdcall
124+ #else
125+ #define APIENTRY
126+ #endif
127+ #define GLFW_APIENTRY_DEFINED
128+#endif /* APIENTRY */
129+
130+/* Some Windows OpenGL headers need this.
131+ */
132+#if !defined(WINGDIAPI) && defined(_WIN32)
133+ #define WINGDIAPI __declspec(dllimport)
134+ #define GLFW_WINGDIAPI_DEFINED
135+#endif /* WINGDIAPI */
136+
137+/* Some Windows GLU headers need this.
138+ */
139+#if !defined(CALLBACK) && defined(_WIN32)
140+ #define CALLBACK __stdcall
141+ #define GLFW_CALLBACK_DEFINED
142+#endif /* CALLBACK */
143+
144+/* Include the chosen OpenGL or OpenGL ES headers.
145+ */
146+#if defined(GLFW_INCLUDE_ES1)
147+
148+ #include <GLES/gl.h>
149+ #if defined(GLFW_INCLUDE_GLEXT)
150+ #include <GLES/glext.h>
151+ #endif
152+
153+#elif defined(GLFW_INCLUDE_ES2)
154+
155+ #include <GLES2/gl2.h>
156+ #if defined(GLFW_INCLUDE_GLEXT)
157+ #include <GLES2/gl2ext.h>
158+ #endif
159+
160+#elif defined(GLFW_INCLUDE_ES3)
161+
162+ #include <GLES3/gl3.h>
163+ #if defined(GLFW_INCLUDE_GLEXT)
164+ #include <GLES2/gl2ext.h>
165+ #endif
166+
167+#elif defined(GLFW_INCLUDE_ES31)
168+
169+ #include <GLES3/gl31.h>
170+ #if defined(GLFW_INCLUDE_GLEXT)
171+ #include <GLES2/gl2ext.h>
172+ #endif
173+
174+#elif defined(GLFW_INCLUDE_ES32)
175+
176+ #include <GLES3/gl32.h>
177+ #if defined(GLFW_INCLUDE_GLEXT)
178+ #include <GLES2/gl2ext.h>
179+ #endif
180+
181+#elif defined(GLFW_INCLUDE_GLCOREARB)
182+
183+ #if defined(__APPLE__)
184+
185+ #include <OpenGL/gl3.h>
186+ #if defined(GLFW_INCLUDE_GLEXT)
187+ #include <OpenGL/gl3ext.h>
188+ #endif /*GLFW_INCLUDE_GLEXT*/
189+
190+ #else /*__APPLE__*/
191+
192+ #include <GL/glcorearb.h>
193+ #if defined(GLFW_INCLUDE_GLEXT)
194+ #include <GL/glext.h>
195+ #endif
196+
197+ #endif /*__APPLE__*/
198+
199+#elif defined(GLFW_INCLUDE_GLU)
200+
201+ #if defined(__APPLE__)
202+
203+ #if defined(GLFW_INCLUDE_GLU)
204+ #include <OpenGL/glu.h>
205+ #endif
206+
207+ #else /*__APPLE__*/
208+
209+ #if defined(GLFW_INCLUDE_GLU)
210+ #include <GL/glu.h>
211+ #endif
212+
213+ #endif /*__APPLE__*/
214+
215+#elif !defined(GLFW_INCLUDE_NONE) && \
216+ !defined(__gl_h_) && \
217+ !defined(__gles1_gl_h_) && \
218+ !defined(__gles2_gl2_h_) && \
219+ !defined(__gles2_gl3_h_) && \
220+ !defined(__gles2_gl31_h_) && \
221+ !defined(__gles2_gl32_h_) && \
222+ !defined(__gl_glcorearb_h_) && \
223+ !defined(__gl2_h_) /*legacy*/ && \
224+ !defined(__gl3_h_) /*legacy*/ && \
225+ !defined(__gl31_h_) /*legacy*/ && \
226+ !defined(__gl32_h_) /*legacy*/ && \
227+ !defined(__glcorearb_h_) /*legacy*/ && \
228+ !defined(__GL_H__) /*non-standard*/ && \
229+ !defined(__gltypes_h_) /*non-standard*/ && \
230+ !defined(__glee_h_) /*non-standard*/
231+
232+ #if defined(__APPLE__)
233+
234+ #if !defined(GLFW_INCLUDE_GLEXT)
235+ #define GL_GLEXT_LEGACY
236+ #endif
237+ #include <OpenGL/gl.h>
238+
239+ #else /*__APPLE__*/
240+
241+ #include <GL/gl.h>
242+ #if defined(GLFW_INCLUDE_GLEXT)
243+ #include <GL/glext.h>
244+ #endif
245+
246+ #endif /*__APPLE__*/
247+
248+#endif /* OpenGL and OpenGL ES headers */
249+
250+#if defined(GLFW_DLL) && defined(_GLFW_BUILD_DLL)
251+ /* GLFW_DLL must be defined by applications that are linking against the DLL
252+ * version of the GLFW library. _GLFW_BUILD_DLL is defined by the GLFW
253+ * configuration header when compiling the DLL version of the library.
254+ */
255+ #error "You must not have both GLFW_DLL and _GLFW_BUILD_DLL defined"
256+#endif
257+
258+/* GLFWAPI is used to declare public API functions for export
259+ * from the DLL / shared library / dynamic library.
260+ */
261+#if defined(_WIN32) && defined(_GLFW_BUILD_DLL)
262+ /* We are building GLFW as a Win32 DLL */
263+ #define GLFWAPI __declspec(dllexport)
264+#elif defined(_WIN32) && defined(GLFW_DLL)
265+ /* We are calling a GLFW Win32 DLL */
266+ #define GLFWAPI __declspec(dllimport)
267+#elif defined(__GNUC__) && defined(_GLFW_BUILD_DLL)
268+ /* We are building GLFW as a Unix shared library */
269+ #define GLFWAPI __attribute__((visibility("default")))
270+#else
271+ #define GLFWAPI
272+#endif
273+
274+
275+/*************************************************************************
276+ * GLFW API tokens
277+ *************************************************************************/
278+
279+/*! @name GLFW version macros
280+ * @{ */
281+/*! @brief The major version number of the GLFW header.
282+ *
283+ * The major version number of the GLFW header. This is incremented when the
284+ * API is changed in non-compatible ways.
285+ * @ingroup init
286+ */
287+#define GLFW_VERSION_MAJOR 3
288+/*! @brief The minor version number of the GLFW header.
289+ *
290+ * The minor version number of the GLFW header. This is incremented when
291+ * features are added to the API but it remains backward-compatible.
292+ * @ingroup init
293+ */
294+#define GLFW_VERSION_MINOR 4
295+/*! @brief The revision number of the GLFW header.
296+ *
297+ * The revision number of the GLFW header. This is incremented when a bug fix
298+ * release is made that does not contain any API changes.
299+ * @ingroup init
300+ */
301+#define GLFW_VERSION_REVISION 0
302+/*! @} */
303+
304+/*! @brief One.
305+ *
306+ * This is only semantic sugar for the number 1. You can instead use `1` or
307+ * `true` or `_True` or `GL_TRUE` or `VK_TRUE` or anything else that is equal
308+ * to one.
309+ *
310+ * @ingroup init
311+ */
312+#define GLFW_TRUE 1
313+/*! @brief Zero.
314+ *
315+ * This is only semantic sugar for the number 0. You can instead use `0` or
316+ * `false` or `_False` or `GL_FALSE` or `VK_FALSE` or anything else that is
317+ * equal to zero.
318+ *
319+ * @ingroup init
320+ */
321+#define GLFW_FALSE 0
322+
323+/*! @name Key and button actions
324+ * @{ */
325+/*! @brief The key or mouse button was released.
326+ *
327+ * The key or mouse button was released.
328+ *
329+ * @ingroup input
330+ */
331+#define GLFW_RELEASE 0
332+/*! @brief The key or mouse button was pressed.
333+ *
334+ * The key or mouse button was pressed.
335+ *
336+ * @ingroup input
337+ */
338+#define GLFW_PRESS 1
339+/*! @brief The key was held down until it repeated.
340+ *
341+ * The key was held down until it repeated.
342+ *
343+ * @ingroup input
344+ */
345+#define GLFW_REPEAT 2
346+/*! @} */
347+
348+/*! @defgroup hat_state Joystick hat states
349+ * @brief Joystick hat states.
350+ *
351+ * See [joystick hat input](@ref joystick_hat) for how these are used.
352+ *
353+ * @ingroup input
354+ * @{ */
355+#define GLFW_HAT_CENTERED 0
356+#define GLFW_HAT_UP 1
357+#define GLFW_HAT_RIGHT 2
358+#define GLFW_HAT_DOWN 4
359+#define GLFW_HAT_LEFT 8
360+#define GLFW_HAT_RIGHT_UP (GLFW_HAT_RIGHT | GLFW_HAT_UP)
361+#define GLFW_HAT_RIGHT_DOWN (GLFW_HAT_RIGHT | GLFW_HAT_DOWN)
362+#define GLFW_HAT_LEFT_UP (GLFW_HAT_LEFT | GLFW_HAT_UP)
363+#define GLFW_HAT_LEFT_DOWN (GLFW_HAT_LEFT | GLFW_HAT_DOWN)
364+
365+/*! @ingroup input
366+ */
367+#define GLFW_KEY_UNKNOWN -1
368+
369+/*! @} */
370+
371+/*! @defgroup keys Keyboard key tokens
372+ * @brief Keyboard key tokens.
373+ *
374+ * See [key input](@ref input_key) for how these are used.
375+ *
376+ * These key codes are inspired by the _USB HID Usage Tables v1.12_ (p. 53-60),
377+ * but re-arranged to map to 7-bit ASCII for printable keys (function keys are
378+ * put in the 256+ range).
379+ *
380+ * The naming of the key codes follow these rules:
381+ * - The US keyboard layout is used
382+ * - Names of printable alphanumeric characters are used (e.g. "A", "R",
383+ * "3", etc.)
384+ * - For non-alphanumeric characters, Unicode:ish names are used (e.g.
385+ * "COMMA", "LEFT_SQUARE_BRACKET", etc.). Note that some names do not
386+ * correspond to the Unicode standard (usually for brevity)
387+ * - Keys that lack a clear US mapping are named "WORLD_x"
388+ * - For non-printable keys, custom names are used (e.g. "F4",
389+ * "BACKSPACE", etc.)
390+ *
391+ * @ingroup input
392+ * @{
393+ */
394+
395+/* Printable keys */
396+#define GLFW_KEY_SPACE 32
397+#define GLFW_KEY_APOSTROPHE 39 /* ' */
398+#define GLFW_KEY_COMMA 44 /* , */
399+#define GLFW_KEY_MINUS 45 /* - */
400+#define GLFW_KEY_PERIOD 46 /* . */
401+#define GLFW_KEY_SLASH 47 /* / */
402+#define GLFW_KEY_0 48
403+#define GLFW_KEY_1 49
404+#define GLFW_KEY_2 50
405+#define GLFW_KEY_3 51
406+#define GLFW_KEY_4 52
407+#define GLFW_KEY_5 53
408+#define GLFW_KEY_6 54
409+#define GLFW_KEY_7 55
410+#define GLFW_KEY_8 56
411+#define GLFW_KEY_9 57
412+#define GLFW_KEY_SEMICOLON 59 /* ; */
413+#define GLFW_KEY_EQUAL 61 /* = */
414+#define GLFW_KEY_A 65
415+#define GLFW_KEY_B 66
416+#define GLFW_KEY_C 67
417+#define GLFW_KEY_D 68
418+#define GLFW_KEY_E 69
419+#define GLFW_KEY_F 70
420+#define GLFW_KEY_G 71
421+#define GLFW_KEY_H 72
422+#define GLFW_KEY_I 73
423+#define GLFW_KEY_J 74
424+#define GLFW_KEY_K 75
425+#define GLFW_KEY_L 76
426+#define GLFW_KEY_M 77
427+#define GLFW_KEY_N 78
428+#define GLFW_KEY_O 79
429+#define GLFW_KEY_P 80
430+#define GLFW_KEY_Q 81
431+#define GLFW_KEY_R 82
432+#define GLFW_KEY_S 83
433+#define GLFW_KEY_T 84
434+#define GLFW_KEY_U 85
435+#define GLFW_KEY_V 86
436+#define GLFW_KEY_W 87
437+#define GLFW_KEY_X 88
438+#define GLFW_KEY_Y 89
439+#define GLFW_KEY_Z 90
440+#define GLFW_KEY_LEFT_BRACKET 91 /* [ */
441+#define GLFW_KEY_BACKSLASH 92 /* \ */
442+#define GLFW_KEY_RIGHT_BRACKET 93 /* ] */
443+#define GLFW_KEY_GRAVE_ACCENT 96 /* ` */
444+#define GLFW_KEY_WORLD_1 161 /* non-US #1 */
445+#define GLFW_KEY_WORLD_2 162 /* non-US #2 */
446+
447+/* Function keys */
448+#define GLFW_KEY_ESCAPE 256
449+#define GLFW_KEY_ENTER 257
450+#define GLFW_KEY_TAB 258
451+#define GLFW_KEY_BACKSPACE 259
452+#define GLFW_KEY_INSERT 260
453+#define GLFW_KEY_DELETE 261
454+#define GLFW_KEY_RIGHT 262
455+#define GLFW_KEY_LEFT 263
456+#define GLFW_KEY_DOWN 264
457+#define GLFW_KEY_UP 265
458+#define GLFW_KEY_PAGE_UP 266
459+#define GLFW_KEY_PAGE_DOWN 267
460+#define GLFW_KEY_HOME 268
461+#define GLFW_KEY_END 269
462+#define GLFW_KEY_CAPS_LOCK 280
463+#define GLFW_KEY_SCROLL_LOCK 281
464+#define GLFW_KEY_NUM_LOCK 282
465+#define GLFW_KEY_PRINT_SCREEN 283
466+#define GLFW_KEY_PAUSE 284
467+#define GLFW_KEY_F1 290
468+#define GLFW_KEY_F2 291
469+#define GLFW_KEY_F3 292
470+#define GLFW_KEY_F4 293
471+#define GLFW_KEY_F5 294
472+#define GLFW_KEY_F6 295
473+#define GLFW_KEY_F7 296
474+#define GLFW_KEY_F8 297
475+#define GLFW_KEY_F9 298
476+#define GLFW_KEY_F10 299
477+#define GLFW_KEY_F11 300
478+#define GLFW_KEY_F12 301
479+#define GLFW_KEY_F13 302
480+#define GLFW_KEY_F14 303
481+#define GLFW_KEY_F15 304
482+#define GLFW_KEY_F16 305
483+#define GLFW_KEY_F17 306
484+#define GLFW_KEY_F18 307
485+#define GLFW_KEY_F19 308
486+#define GLFW_KEY_F20 309
487+#define GLFW_KEY_F21 310
488+#define GLFW_KEY_F22 311
489+#define GLFW_KEY_F23 312
490+#define GLFW_KEY_F24 313
491+#define GLFW_KEY_F25 314
492+#define GLFW_KEY_KP_0 320
493+#define GLFW_KEY_KP_1 321
494+#define GLFW_KEY_KP_2 322
495+#define GLFW_KEY_KP_3 323
496+#define GLFW_KEY_KP_4 324
497+#define GLFW_KEY_KP_5 325
498+#define GLFW_KEY_KP_6 326
499+#define GLFW_KEY_KP_7 327
500+#define GLFW_KEY_KP_8 328
501+#define GLFW_KEY_KP_9 329
502+#define GLFW_KEY_KP_DECIMAL 330
503+#define GLFW_KEY_KP_DIVIDE 331
504+#define GLFW_KEY_KP_MULTIPLY 332
505+#define GLFW_KEY_KP_SUBTRACT 333
506+#define GLFW_KEY_KP_ADD 334
507+#define GLFW_KEY_KP_ENTER 335
508+#define GLFW_KEY_KP_EQUAL 336
509+#define GLFW_KEY_LEFT_SHIFT 340
510+#define GLFW_KEY_LEFT_CONTROL 341
511+#define GLFW_KEY_LEFT_ALT 342
512+#define GLFW_KEY_LEFT_SUPER 343
513+#define GLFW_KEY_RIGHT_SHIFT 344
514+#define GLFW_KEY_RIGHT_CONTROL 345
515+#define GLFW_KEY_RIGHT_ALT 346
516+#define GLFW_KEY_RIGHT_SUPER 347
517+#define GLFW_KEY_MENU 348
518+
519+#define GLFW_KEY_LAST GLFW_KEY_MENU
520+
521+/*! @} */
522+
523+/*! @defgroup mods Modifier key flags
524+ * @brief Modifier key flags.
525+ *
526+ * See [key input](@ref input_key) for how these are used.
527+ *
528+ * @ingroup input
529+ * @{ */
530+
531+/*! @brief If this bit is set one or more Shift keys were held down.
532+ *
533+ * If this bit is set one or more Shift keys were held down.
534+ */
535+#define GLFW_MOD_SHIFT 0x0001
536+/*! @brief If this bit is set one or more Control keys were held down.
537+ *
538+ * If this bit is set one or more Control keys were held down.
539+ */
540+#define GLFW_MOD_CONTROL 0x0002
541+/*! @brief If this bit is set one or more Alt keys were held down.
542+ *
543+ * If this bit is set one or more Alt keys were held down.
544+ */
545+#define GLFW_MOD_ALT 0x0004
546+/*! @brief If this bit is set one or more Super keys were held down.
547+ *
548+ * If this bit is set one or more Super keys were held down.
549+ */
550+#define GLFW_MOD_SUPER 0x0008
551+/*! @brief If this bit is set the Caps Lock key is enabled.
552+ *
553+ * If this bit is set the Caps Lock key is enabled and the @ref
554+ * GLFW_LOCK_KEY_MODS input mode is set.
555+ */
556+#define GLFW_MOD_CAPS_LOCK 0x0010
557+/*! @brief If this bit is set the Num Lock key is enabled.
558+ *
559+ * If this bit is set the Num Lock key is enabled and the @ref
560+ * GLFW_LOCK_KEY_MODS input mode is set.
561+ */
562+#define GLFW_MOD_NUM_LOCK 0x0020
563+
564+/*! @} */
565+
566+/*! @defgroup buttons Mouse buttons
567+ * @brief Mouse button IDs.
568+ *
569+ * See [mouse button input](@ref input_mouse_button) for how these are used.
570+ *
571+ * @ingroup input
572+ * @{ */
573+#define GLFW_MOUSE_BUTTON_1 0
574+#define GLFW_MOUSE_BUTTON_2 1
575+#define GLFW_MOUSE_BUTTON_3 2
576+#define GLFW_MOUSE_BUTTON_4 3
577+#define GLFW_MOUSE_BUTTON_5 4
578+#define GLFW_MOUSE_BUTTON_6 5
579+#define GLFW_MOUSE_BUTTON_7 6
580+#define GLFW_MOUSE_BUTTON_8 7
581+#define GLFW_MOUSE_BUTTON_LAST GLFW_MOUSE_BUTTON_8
582+#define GLFW_MOUSE_BUTTON_LEFT GLFW_MOUSE_BUTTON_1
583+#define GLFW_MOUSE_BUTTON_RIGHT GLFW_MOUSE_BUTTON_2
584+#define GLFW_MOUSE_BUTTON_MIDDLE GLFW_MOUSE_BUTTON_3
585+/*! @} */
586+
587+/*! @defgroup joysticks Joysticks
588+ * @brief Joystick IDs.
589+ *
590+ * See [joystick input](@ref joystick) for how these are used.
591+ *
592+ * @ingroup input
593+ * @{ */
594+#define GLFW_JOYSTICK_1 0
595+#define GLFW_JOYSTICK_2 1
596+#define GLFW_JOYSTICK_3 2
597+#define GLFW_JOYSTICK_4 3
598+#define GLFW_JOYSTICK_5 4
599+#define GLFW_JOYSTICK_6 5
600+#define GLFW_JOYSTICK_7 6
601+#define GLFW_JOYSTICK_8 7
602+#define GLFW_JOYSTICK_9 8
603+#define GLFW_JOYSTICK_10 9
604+#define GLFW_JOYSTICK_11 10
605+#define GLFW_JOYSTICK_12 11
606+#define GLFW_JOYSTICK_13 12
607+#define GLFW_JOYSTICK_14 13
608+#define GLFW_JOYSTICK_15 14
609+#define GLFW_JOYSTICK_16 15
610+#define GLFW_JOYSTICK_LAST GLFW_JOYSTICK_16
611+/*! @} */
612+
613+/*! @defgroup gamepad_buttons Gamepad buttons
614+ * @brief Gamepad buttons.
615+ *
616+ * See @ref gamepad for how these are used.
617+ *
618+ * @ingroup input
619+ * @{ */
620+#define GLFW_GAMEPAD_BUTTON_A 0
621+#define GLFW_GAMEPAD_BUTTON_B 1
622+#define GLFW_GAMEPAD_BUTTON_X 2
623+#define GLFW_GAMEPAD_BUTTON_Y 3
624+#define GLFW_GAMEPAD_BUTTON_LEFT_BUMPER 4
625+#define GLFW_GAMEPAD_BUTTON_RIGHT_BUMPER 5
626+#define GLFW_GAMEPAD_BUTTON_BACK 6
627+#define GLFW_GAMEPAD_BUTTON_START 7
628+#define GLFW_GAMEPAD_BUTTON_GUIDE 8
629+#define GLFW_GAMEPAD_BUTTON_LEFT_THUMB 9
630+#define GLFW_GAMEPAD_BUTTON_RIGHT_THUMB 10
631+#define GLFW_GAMEPAD_BUTTON_DPAD_UP 11
632+#define GLFW_GAMEPAD_BUTTON_DPAD_RIGHT 12
633+#define GLFW_GAMEPAD_BUTTON_DPAD_DOWN 13
634+#define GLFW_GAMEPAD_BUTTON_DPAD_LEFT 14
635+#define GLFW_GAMEPAD_BUTTON_LAST GLFW_GAMEPAD_BUTTON_DPAD_LEFT
636+
637+#define GLFW_GAMEPAD_BUTTON_CROSS GLFW_GAMEPAD_BUTTON_A
638+#define GLFW_GAMEPAD_BUTTON_CIRCLE GLFW_GAMEPAD_BUTTON_B
639+#define GLFW_GAMEPAD_BUTTON_SQUARE GLFW_GAMEPAD_BUTTON_X
640+#define GLFW_GAMEPAD_BUTTON_TRIANGLE GLFW_GAMEPAD_BUTTON_Y
641+/*! @} */
642+
643+/*! @defgroup gamepad_axes Gamepad axes
644+ * @brief Gamepad axes.
645+ *
646+ * See @ref gamepad for how these are used.
647+ *
648+ * @ingroup input
649+ * @{ */
650+#define GLFW_GAMEPAD_AXIS_LEFT_X 0
651+#define GLFW_GAMEPAD_AXIS_LEFT_Y 1
652+#define GLFW_GAMEPAD_AXIS_RIGHT_X 2
653+#define GLFW_GAMEPAD_AXIS_RIGHT_Y 3
654+#define GLFW_GAMEPAD_AXIS_LEFT_TRIGGER 4
655+#define GLFW_GAMEPAD_AXIS_RIGHT_TRIGGER 5
656+#define GLFW_GAMEPAD_AXIS_LAST GLFW_GAMEPAD_AXIS_RIGHT_TRIGGER
657+/*! @} */
658+
659+/*! @defgroup errors Error codes
660+ * @brief Error codes.
661+ *
662+ * See [error handling](@ref error_handling) for how these are used.
663+ *
664+ * @ingroup init
665+ * @{ */
666+/*! @brief No error has occurred.
667+ *
668+ * No error has occurred.
669+ *
670+ * @analysis Yay.
671+ */
672+#define GLFW_NO_ERROR 0
673+/*! @brief GLFW has not been initialized.
674+ *
675+ * This occurs if a GLFW function was called that must not be called unless the
676+ * library is [initialized](@ref intro_init).
677+ *
678+ * @analysis Application programmer error. Initialize GLFW before calling any
679+ * function that requires initialization.
680+ */
681+#define GLFW_NOT_INITIALIZED 0x00010001
682+/*! @brief No context is current for this thread.
683+ *
684+ * This occurs if a GLFW function was called that needs and operates on the
685+ * current OpenGL or OpenGL ES context but no context is current on the calling
686+ * thread. One such function is @ref glfwSwapInterval.
687+ *
688+ * @analysis Application programmer error. Ensure a context is current before
689+ * calling functions that require a current context.
690+ */
691+#define GLFW_NO_CURRENT_CONTEXT 0x00010002
692+/*! @brief One of the arguments to the function was an invalid enum value.
693+ *
694+ * One of the arguments to the function was an invalid enum value, for example
695+ * requesting @ref GLFW_RED_BITS with @ref glfwGetWindowAttrib.
696+ *
697+ * @analysis Application programmer error. Fix the offending call.
698+ */
699+#define GLFW_INVALID_ENUM 0x00010003
700+/*! @brief One of the arguments to the function was an invalid value.
701+ *
702+ * One of the arguments to the function was an invalid value, for example
703+ * requesting a non-existent OpenGL or OpenGL ES version like 2.7.
704+ *
705+ * Requesting a valid but unavailable OpenGL or OpenGL ES version will instead
706+ * result in a @ref GLFW_VERSION_UNAVAILABLE error.
707+ *
708+ * @analysis Application programmer error. Fix the offending call.
709+ */
710+#define GLFW_INVALID_VALUE 0x00010004
711+/*! @brief A memory allocation failed.
712+ *
713+ * A memory allocation failed.
714+ *
715+ * @analysis A bug in GLFW or the underlying operating system. Report the bug
716+ * to our [issue tracker](https://github.com/glfw/glfw/issues).
717+ */
718+#define GLFW_OUT_OF_MEMORY 0x00010005
719+/*! @brief GLFW could not find support for the requested API on the system.
720+ *
721+ * GLFW could not find support for the requested API on the system.
722+ *
723+ * @analysis The installed graphics driver does not support the requested
724+ * API, or does not support it via the chosen context creation API.
725+ * Below are a few examples.
726+ *
727+ * @par
728+ * Some pre-installed Windows graphics drivers do not support OpenGL. AMD only
729+ * supports OpenGL ES via EGL, while Nvidia and Intel only support it via
730+ * a WGL or GLX extension. macOS does not provide OpenGL ES at all. The Mesa
731+ * EGL, OpenGL and OpenGL ES libraries do not interface with the Nvidia binary
732+ * driver. Older graphics drivers do not support Vulkan.
733+ */
734+#define GLFW_API_UNAVAILABLE 0x00010006
735+/*! @brief The requested OpenGL or OpenGL ES version is not available.
736+ *
737+ * The requested OpenGL or OpenGL ES version (including any requested context
738+ * or framebuffer hints) is not available on this machine.
739+ *
740+ * @analysis The machine does not support your requirements. If your
741+ * application is sufficiently flexible, downgrade your requirements and try
742+ * again. Otherwise, inform the user that their machine does not match your
743+ * requirements.
744+ *
745+ * @par
746+ * Future invalid OpenGL and OpenGL ES versions, for example OpenGL 4.8 if 5.0
747+ * comes out before the 4.x series gets that far, also fail with this error and
748+ * not @ref GLFW_INVALID_VALUE, because GLFW cannot know what future versions
749+ * will exist.
750+ */
751+#define GLFW_VERSION_UNAVAILABLE 0x00010007
752+/*! @brief A platform-specific error occurred that does not match any of the
753+ * more specific categories.
754+ *
755+ * A platform-specific error occurred that does not match any of the more
756+ * specific categories.
757+ *
758+ * @analysis A bug or configuration error in GLFW, the underlying operating
759+ * system or its drivers, or a lack of required resources. Report the issue to
760+ * our [issue tracker](https://github.com/glfw/glfw/issues).
761+ */
762+#define GLFW_PLATFORM_ERROR 0x00010008
763+/*! @brief The requested format is not supported or available.
764+ *
765+ * If emitted during window creation, the requested pixel format is not
766+ * supported.
767+ *
768+ * If emitted when querying the clipboard, the contents of the clipboard could
769+ * not be converted to the requested format.
770+ *
771+ * @analysis If emitted during window creation, one or more
772+ * [hard constraints](@ref window_hints_hard) did not match any of the
773+ * available pixel formats. If your application is sufficiently flexible,
774+ * downgrade your requirements and try again. Otherwise, inform the user that
775+ * their machine does not match your requirements.
776+ *
777+ * @par
778+ * If emitted when querying the clipboard, ignore the error or report it to
779+ * the user, as appropriate.
780+ */
781+#define GLFW_FORMAT_UNAVAILABLE 0x00010009
782+/*! @brief The specified window does not have an OpenGL or OpenGL ES context.
783+ *
784+ * A window that does not have an OpenGL or OpenGL ES context was passed to
785+ * a function that requires it to have one.
786+ *
787+ * @analysis Application programmer error. Fix the offending call.
788+ */
789+#define GLFW_NO_WINDOW_CONTEXT 0x0001000A
790+/*! @brief The specified cursor shape is not available.
791+ *
792+ * The specified standard cursor shape is not available, either because the
793+ * current platform cursor theme does not provide it or because it is not
794+ * available on the platform.
795+ *
796+ * @analysis Platform or system settings limitation. Pick another
797+ * [standard cursor shape](@ref shapes) or create a
798+ * [custom cursor](@ref cursor_custom).
799+ */
800+#define GLFW_CURSOR_UNAVAILABLE 0x0001000B
801+/*! @brief The requested feature is not provided by the platform.
802+ *
803+ * The requested feature is not provided by the platform, so GLFW is unable to
804+ * implement it. The documentation for each function notes if it could emit
805+ * this error.
806+ *
807+ * @analysis Platform or platform version limitation. The error can be ignored
808+ * unless the feature is critical to the application.
809+ *
810+ * @par
811+ * A function call that emits this error has no effect other than the error and
812+ * updating any existing out parameters.
813+ */
814+#define GLFW_FEATURE_UNAVAILABLE 0x0001000C
815+/*! @brief The requested feature is not implemented for the platform.
816+ *
817+ * The requested feature has not yet been implemented in GLFW for this platform.
818+ *
819+ * @analysis An incomplete implementation of GLFW for this platform, hopefully
820+ * fixed in a future release. The error can be ignored unless the feature is
821+ * critical to the application.
822+ *
823+ * @par
824+ * A function call that emits this error has no effect other than the error and
825+ * updating any existing out parameters.
826+ */
827+#define GLFW_FEATURE_UNIMPLEMENTED 0x0001000D
828+/*! @brief Platform unavailable or no matching platform was found.
829+ *
830+ * If emitted during initialization, no matching platform was found. If the @ref
831+ * GLFW_PLATFORM init hint was set to `GLFW_ANY_PLATFORM`, GLFW could not detect any of
832+ * the platforms supported by this library binary, except for the Null platform. If the
833+ * init hint was set to a specific platform, it is either not supported by this library
834+ * binary or GLFW was not able to detect it.
835+ *
836+ * If emitted by a native access function, GLFW was initialized for a different platform
837+ * than the function is for.
838+ *
839+ * @analysis Failure to detect any platform usually only happens on non-macOS Unix
840+ * systems, either when no window system is running or the program was run from
841+ * a terminal that does not have the necessary environment variables. Fall back to
842+ * a different platform if possible or notify the user that no usable platform was
843+ * detected.
844+ *
845+ * Failure to detect a specific platform may have the same cause as above or be because
846+ * support for that platform was not compiled in. Call @ref glfwPlatformSupported to
847+ * check whether a specific platform is supported by a library binary.
848+ */
849+#define GLFW_PLATFORM_UNAVAILABLE 0x0001000E
850+/*! @} */
851+
852+/*! @addtogroup window
853+ * @{ */
854+/*! @brief Input focus window hint and attribute
855+ *
856+ * Input focus [window hint](@ref GLFW_FOCUSED_hint) or
857+ * [window attribute](@ref GLFW_FOCUSED_attrib).
858+ */
859+#define GLFW_FOCUSED 0x00020001
860+/*! @brief Window iconification window attribute
861+ *
862+ * Window iconification [window attribute](@ref GLFW_ICONIFIED_attrib).
863+ */
864+#define GLFW_ICONIFIED 0x00020002
865+/*! @brief Window resize-ability window hint and attribute
866+ *
867+ * Window resize-ability [window hint](@ref GLFW_RESIZABLE_hint) and
868+ * [window attribute](@ref GLFW_RESIZABLE_attrib).
869+ */
870+#define GLFW_RESIZABLE 0x00020003
871+/*! @brief Window visibility window hint and attribute
872+ *
873+ * Window visibility [window hint](@ref GLFW_VISIBLE_hint) and
874+ * [window attribute](@ref GLFW_VISIBLE_attrib).
875+ */
876+#define GLFW_VISIBLE 0x00020004
877+/*! @brief Window decoration window hint and attribute
878+ *
879+ * Window decoration [window hint](@ref GLFW_DECORATED_hint) and
880+ * [window attribute](@ref GLFW_DECORATED_attrib).
881+ */
882+#define GLFW_DECORATED 0x00020005
883+/*! @brief Window auto-iconification window hint and attribute
884+ *
885+ * Window auto-iconification [window hint](@ref GLFW_AUTO_ICONIFY_hint) and
886+ * [window attribute](@ref GLFW_AUTO_ICONIFY_attrib).
887+ */
888+#define GLFW_AUTO_ICONIFY 0x00020006
889+/*! @brief Window decoration window hint and attribute
890+ *
891+ * Window decoration [window hint](@ref GLFW_FLOATING_hint) and
892+ * [window attribute](@ref GLFW_FLOATING_attrib).
893+ */
894+#define GLFW_FLOATING 0x00020007
895+/*! @brief Window maximization window hint and attribute
896+ *
897+ * Window maximization [window hint](@ref GLFW_MAXIMIZED_hint) and
898+ * [window attribute](@ref GLFW_MAXIMIZED_attrib).
899+ */
900+#define GLFW_MAXIMIZED 0x00020008
901+/*! @brief Cursor centering window hint
902+ *
903+ * Cursor centering [window hint](@ref GLFW_CENTER_CURSOR_hint).
904+ */
905+#define GLFW_CENTER_CURSOR 0x00020009
906+/*! @brief Window framebuffer transparency hint and attribute
907+ *
908+ * Window framebuffer transparency
909+ * [window hint](@ref GLFW_TRANSPARENT_FRAMEBUFFER_hint) and
910+ * [window attribute](@ref GLFW_TRANSPARENT_FRAMEBUFFER_attrib).
911+ */
912+#define GLFW_TRANSPARENT_FRAMEBUFFER 0x0002000A
913+/*! @brief Mouse cursor hover window attribute.
914+ *
915+ * Mouse cursor hover [window attribute](@ref GLFW_HOVERED_attrib).
916+ */
917+#define GLFW_HOVERED 0x0002000B
918+/*! @brief Input focus on calling show window hint and attribute
919+ *
920+ * Input focus [window hint](@ref GLFW_FOCUS_ON_SHOW_hint) or
921+ * [window attribute](@ref GLFW_FOCUS_ON_SHOW_attrib).
922+ */
923+#define GLFW_FOCUS_ON_SHOW 0x0002000C
924+
925+/*! @brief Mouse input transparency window hint and attribute
926+ *
927+ * Mouse input transparency [window hint](@ref GLFW_MOUSE_PASSTHROUGH_hint) or
928+ * [window attribute](@ref GLFW_MOUSE_PASSTHROUGH_attrib).
929+ */
930+#define GLFW_MOUSE_PASSTHROUGH 0x0002000D
931+
932+/*! @brief Initial position x-coordinate window hint.
933+ *
934+ * Initial position x-coordinate [window hint](@ref GLFW_POSITION_X).
935+ */
936+#define GLFW_POSITION_X 0x0002000E
937+
938+/*! @brief Initial position y-coordinate window hint.
939+ *
940+ * Initial position y-coordinate [window hint](@ref GLFW_POSITION_Y).
941+ */
942+#define GLFW_POSITION_Y 0x0002000F
943+
944+/*! @brief Framebuffer bit depth hint.
945+ *
946+ * Framebuffer bit depth [hint](@ref GLFW_RED_BITS).
947+ */
948+#define GLFW_RED_BITS 0x00021001
949+/*! @brief Framebuffer bit depth hint.
950+ *
951+ * Framebuffer bit depth [hint](@ref GLFW_GREEN_BITS).
952+ */
953+#define GLFW_GREEN_BITS 0x00021002
954+/*! @brief Framebuffer bit depth hint.
955+ *
956+ * Framebuffer bit depth [hint](@ref GLFW_BLUE_BITS).
957+ */
958+#define GLFW_BLUE_BITS 0x00021003
959+/*! @brief Framebuffer bit depth hint.
960+ *
961+ * Framebuffer bit depth [hint](@ref GLFW_ALPHA_BITS).
962+ */
963+#define GLFW_ALPHA_BITS 0x00021004
964+/*! @brief Framebuffer bit depth hint.
965+ *
966+ * Framebuffer bit depth [hint](@ref GLFW_DEPTH_BITS).
967+ */
968+#define GLFW_DEPTH_BITS 0x00021005
969+/*! @brief Framebuffer bit depth hint.
970+ *
971+ * Framebuffer bit depth [hint](@ref GLFW_STENCIL_BITS).
972+ */
973+#define GLFW_STENCIL_BITS 0x00021006
974+/*! @brief Framebuffer bit depth hint.
975+ *
976+ * Framebuffer bit depth [hint](@ref GLFW_ACCUM_RED_BITS).
977+ */
978+#define GLFW_ACCUM_RED_BITS 0x00021007
979+/*! @brief Framebuffer bit depth hint.
980+ *
981+ * Framebuffer bit depth [hint](@ref GLFW_ACCUM_GREEN_BITS).
982+ */
983+#define GLFW_ACCUM_GREEN_BITS 0x00021008
984+/*! @brief Framebuffer bit depth hint.
985+ *
986+ * Framebuffer bit depth [hint](@ref GLFW_ACCUM_BLUE_BITS).
987+ */
988+#define GLFW_ACCUM_BLUE_BITS 0x00021009
989+/*! @brief Framebuffer bit depth hint.
990+ *
991+ * Framebuffer bit depth [hint](@ref GLFW_ACCUM_ALPHA_BITS).
992+ */
993+#define GLFW_ACCUM_ALPHA_BITS 0x0002100A
994+/*! @brief Framebuffer auxiliary buffer hint.
995+ *
996+ * Framebuffer auxiliary buffer [hint](@ref GLFW_AUX_BUFFERS).
997+ */
998+#define GLFW_AUX_BUFFERS 0x0002100B
999+/*! @brief OpenGL stereoscopic rendering hint.
1000+ *
1001+ * OpenGL stereoscopic rendering [hint](@ref GLFW_STEREO).
1002+ */
1003+#define GLFW_STEREO 0x0002100C
1004+/*! @brief Framebuffer MSAA samples hint.
1005+ *
1006+ * Framebuffer MSAA samples [hint](@ref GLFW_SAMPLES).
1007+ */
1008+#define GLFW_SAMPLES 0x0002100D
1009+/*! @brief Framebuffer sRGB hint.
1010+ *
1011+ * Framebuffer sRGB [hint](@ref GLFW_SRGB_CAPABLE).
1012+ */
1013+#define GLFW_SRGB_CAPABLE 0x0002100E
1014+/*! @brief Monitor refresh rate hint.
1015+ *
1016+ * Monitor refresh rate [hint](@ref GLFW_REFRESH_RATE).
1017+ */
1018+#define GLFW_REFRESH_RATE 0x0002100F
1019+/*! @brief Framebuffer double buffering hint and attribute.
1020+ *
1021+ * Framebuffer double buffering [hint](@ref GLFW_DOUBLEBUFFER_hint) and
1022+ * [attribute](@ref GLFW_DOUBLEBUFFER_attrib).
1023+ */
1024+#define GLFW_DOUBLEBUFFER 0x00021010
1025+
1026+/*! @brief Context client API hint and attribute.
1027+ *
1028+ * Context client API [hint](@ref GLFW_CLIENT_API_hint) and
1029+ * [attribute](@ref GLFW_CLIENT_API_attrib).
1030+ */
1031+#define GLFW_CLIENT_API 0x00022001
1032+/*! @brief Context client API major version hint and attribute.
1033+ *
1034+ * Context client API major version [hint](@ref GLFW_CONTEXT_VERSION_MAJOR_hint)
1035+ * and [attribute](@ref GLFW_CONTEXT_VERSION_MAJOR_attrib).
1036+ */
1037+#define GLFW_CONTEXT_VERSION_MAJOR 0x00022002
1038+/*! @brief Context client API minor version hint and attribute.
1039+ *
1040+ * Context client API minor version [hint](@ref GLFW_CONTEXT_VERSION_MINOR_hint)
1041+ * and [attribute](@ref GLFW_CONTEXT_VERSION_MINOR_attrib).
1042+ */
1043+#define GLFW_CONTEXT_VERSION_MINOR 0x00022003
1044+/*! @brief Context client API revision number attribute.
1045+ *
1046+ * Context client API revision number
1047+ * [attribute](@ref GLFW_CONTEXT_REVISION_attrib).
1048+ */
1049+#define GLFW_CONTEXT_REVISION 0x00022004
1050+/*! @brief Context robustness hint and attribute.
1051+ *
1052+ * Context client API revision number [hint](@ref GLFW_CONTEXT_ROBUSTNESS_hint)
1053+ * and [attribute](@ref GLFW_CONTEXT_ROBUSTNESS_attrib).
1054+ */
1055+#define GLFW_CONTEXT_ROBUSTNESS 0x00022005
1056+/*! @brief OpenGL forward-compatibility hint and attribute.
1057+ *
1058+ * OpenGL forward-compatibility [hint](@ref GLFW_OPENGL_FORWARD_COMPAT_hint)
1059+ * and [attribute](@ref GLFW_OPENGL_FORWARD_COMPAT_attrib).
1060+ */
1061+#define GLFW_OPENGL_FORWARD_COMPAT 0x00022006
1062+/*! @brief Debug mode context hint and attribute.
1063+ *
1064+ * Debug mode context [hint](@ref GLFW_CONTEXT_DEBUG_hint) and
1065+ * [attribute](@ref GLFW_CONTEXT_DEBUG_attrib).
1066+ */
1067+#define GLFW_CONTEXT_DEBUG 0x00022007
1068+/*! @brief Legacy name for compatibility.
1069+ *
1070+ * This is an alias for compatibility with earlier versions.
1071+ */
1072+#define GLFW_OPENGL_DEBUG_CONTEXT GLFW_CONTEXT_DEBUG
1073+/*! @brief OpenGL profile hint and attribute.
1074+ *
1075+ * OpenGL profile [hint](@ref GLFW_OPENGL_PROFILE_hint) and
1076+ * [attribute](@ref GLFW_OPENGL_PROFILE_attrib).
1077+ */
1078+#define GLFW_OPENGL_PROFILE 0x00022008
1079+/*! @brief Context flush-on-release hint and attribute.
1080+ *
1081+ * Context flush-on-release [hint](@ref GLFW_CONTEXT_RELEASE_BEHAVIOR_hint) and
1082+ * [attribute](@ref GLFW_CONTEXT_RELEASE_BEHAVIOR_attrib).
1083+ */
1084+#define GLFW_CONTEXT_RELEASE_BEHAVIOR 0x00022009
1085+/*! @brief Context error suppression hint and attribute.
1086+ *
1087+ * Context error suppression [hint](@ref GLFW_CONTEXT_NO_ERROR_hint) and
1088+ * [attribute](@ref GLFW_CONTEXT_NO_ERROR_attrib).
1089+ */
1090+#define GLFW_CONTEXT_NO_ERROR 0x0002200A
1091+/*! @brief Context creation API hint and attribute.
1092+ *
1093+ * Context creation API [hint](@ref GLFW_CONTEXT_CREATION_API_hint) and
1094+ * [attribute](@ref GLFW_CONTEXT_CREATION_API_attrib).
1095+ */
1096+#define GLFW_CONTEXT_CREATION_API 0x0002200B
1097+/*! @brief Window content area scaling window
1098+ * [window hint](@ref GLFW_SCALE_TO_MONITOR).
1099+ */
1100+#define GLFW_SCALE_TO_MONITOR 0x0002200C
1101+/*! @brief Window framebuffer scaling
1102+ * [window hint](@ref GLFW_SCALE_FRAMEBUFFER_hint).
1103+ */
1104+#define GLFW_SCALE_FRAMEBUFFER 0x0002200D
1105+/*! @brief Legacy name for compatibility.
1106+ *
1107+ * This is an alias for the
1108+ * [GLFW_SCALE_FRAMEBUFFER](@ref GLFW_SCALE_FRAMEBUFFER_hint) window hint for
1109+ * compatibility with earlier versions.
1110+ */
1111+#define GLFW_COCOA_RETINA_FRAMEBUFFER 0x00023001
1112+/*! @brief macOS specific
1113+ * [window hint](@ref GLFW_COCOA_FRAME_NAME_hint).
1114+ */
1115+#define GLFW_COCOA_FRAME_NAME 0x00023002
1116+/*! @brief macOS specific
1117+ * [window hint](@ref GLFW_COCOA_GRAPHICS_SWITCHING_hint).
1118+ */
1119+#define GLFW_COCOA_GRAPHICS_SWITCHING 0x00023003
1120+/*! @brief X11 specific
1121+ * [window hint](@ref GLFW_X11_CLASS_NAME_hint).
1122+ */
1123+#define GLFW_X11_CLASS_NAME 0x00024001
1124+/*! @brief X11 specific
1125+ * [window hint](@ref GLFW_X11_CLASS_NAME_hint).
1126+ */
1127+#define GLFW_X11_INSTANCE_NAME 0x00024002
1128+#define GLFW_WIN32_KEYBOARD_MENU 0x00025001
1129+/*! @brief Win32 specific [window hint](@ref GLFW_WIN32_SHOWDEFAULT_hint).
1130+ */
1131+#define GLFW_WIN32_SHOWDEFAULT 0x00025002
1132+/*! @brief Wayland specific
1133+ * [window hint](@ref GLFW_WAYLAND_APP_ID_hint).
1134+ *
1135+ * Allows specification of the Wayland app_id.
1136+ */
1137+#define GLFW_WAYLAND_APP_ID 0x00026001
1138+/*! @} */
1139+
1140+#define GLFW_NO_API 0
1141+#define GLFW_OPENGL_API 0x00030001
1142+#define GLFW_OPENGL_ES_API 0x00030002
1143+
1144+#define GLFW_NO_ROBUSTNESS 0
1145+#define GLFW_NO_RESET_NOTIFICATION 0x00031001
1146+#define GLFW_LOSE_CONTEXT_ON_RESET 0x00031002
1147+
1148+#define GLFW_OPENGL_ANY_PROFILE 0
1149+#define GLFW_OPENGL_CORE_PROFILE 0x00032001
1150+#define GLFW_OPENGL_COMPAT_PROFILE 0x00032002
1151+
1152+#define GLFW_CURSOR 0x00033001
1153+#define GLFW_STICKY_KEYS 0x00033002
1154+#define GLFW_STICKY_MOUSE_BUTTONS 0x00033003
1155+#define GLFW_LOCK_KEY_MODS 0x00033004
1156+#define GLFW_RAW_MOUSE_MOTION 0x00033005
1157+
1158+#define GLFW_CURSOR_NORMAL 0x00034001
1159+#define GLFW_CURSOR_HIDDEN 0x00034002
1160+#define GLFW_CURSOR_DISABLED 0x00034003
1161+#define GLFW_CURSOR_CAPTURED 0x00034004
1162+
1163+#define GLFW_ANY_RELEASE_BEHAVIOR 0
1164+#define GLFW_RELEASE_BEHAVIOR_FLUSH 0x00035001
1165+#define GLFW_RELEASE_BEHAVIOR_NONE 0x00035002
1166+
1167+#define GLFW_NATIVE_CONTEXT_API 0x00036001
1168+#define GLFW_EGL_CONTEXT_API 0x00036002
1169+#define GLFW_OSMESA_CONTEXT_API 0x00036003
1170+
1171+#define GLFW_ANGLE_PLATFORM_TYPE_NONE 0x00037001
1172+#define GLFW_ANGLE_PLATFORM_TYPE_OPENGL 0x00037002
1173+#define GLFW_ANGLE_PLATFORM_TYPE_OPENGLES 0x00037003
1174+#define GLFW_ANGLE_PLATFORM_TYPE_D3D9 0x00037004
1175+#define GLFW_ANGLE_PLATFORM_TYPE_D3D11 0x00037005
1176+#define GLFW_ANGLE_PLATFORM_TYPE_VULKAN 0x00037007
1177+#define GLFW_ANGLE_PLATFORM_TYPE_METAL 0x00037008
1178+
1179+#define GLFW_WAYLAND_PREFER_LIBDECOR 0x00038001
1180+#define GLFW_WAYLAND_DISABLE_LIBDECOR 0x00038002
1181+
1182+#define GLFW_ANY_POSITION 0x80000000
1183+
1184+/*! @defgroup shapes Standard cursor shapes
1185+ * @brief Standard system cursor shapes.
1186+ *
1187+ * These are the [standard cursor shapes](@ref cursor_standard) that can be
1188+ * requested from the platform (window system).
1189+ *
1190+ * @ingroup input
1191+ * @{ */
1192+
1193+/*! @brief The regular arrow cursor shape.
1194+ *
1195+ * The regular arrow cursor shape.
1196+ */
1197+#define GLFW_ARROW_CURSOR 0x00036001
1198+/*! @brief The text input I-beam cursor shape.
1199+ *
1200+ * The text input I-beam cursor shape.
1201+ */
1202+#define GLFW_IBEAM_CURSOR 0x00036002
1203+/*! @brief The crosshair cursor shape.
1204+ *
1205+ * The crosshair cursor shape.
1206+ */
1207+#define GLFW_CROSSHAIR_CURSOR 0x00036003
1208+/*! @brief The pointing hand cursor shape.
1209+ *
1210+ * The pointing hand cursor shape.
1211+ */
1212+#define GLFW_POINTING_HAND_CURSOR 0x00036004
1213+/*! @brief The horizontal resize/move arrow shape.
1214+ *
1215+ * The horizontal resize/move arrow shape. This is usually a horizontal
1216+ * double-headed arrow.
1217+ */
1218+#define GLFW_RESIZE_EW_CURSOR 0x00036005
1219+/*! @brief The vertical resize/move arrow shape.
1220+ *
1221+ * The vertical resize/move shape. This is usually a vertical double-headed
1222+ * arrow.
1223+ */
1224+#define GLFW_RESIZE_NS_CURSOR 0x00036006
1225+/*! @brief The top-left to bottom-right diagonal resize/move arrow shape.
1226+ *
1227+ * The top-left to bottom-right diagonal resize/move shape. This is usually
1228+ * a diagonal double-headed arrow.
1229+ *
1230+ * @note @macos This shape is provided by a private system API and may fail
1231+ * with @ref GLFW_CURSOR_UNAVAILABLE in the future.
1232+ *
1233+ * @note @wayland This shape is provided by a newer standard not supported by
1234+ * all cursor themes.
1235+ *
1236+ * @note @x11 This shape is provided by a newer standard not supported by all
1237+ * cursor themes.
1238+ */
1239+#define GLFW_RESIZE_NWSE_CURSOR 0x00036007
1240+/*! @brief The top-right to bottom-left diagonal resize/move arrow shape.
1241+ *
1242+ * The top-right to bottom-left diagonal resize/move shape. This is usually
1243+ * a diagonal double-headed arrow.
1244+ *
1245+ * @note @macos This shape is provided by a private system API and may fail
1246+ * with @ref GLFW_CURSOR_UNAVAILABLE in the future.
1247+ *
1248+ * @note @wayland This shape is provided by a newer standard not supported by
1249+ * all cursor themes.
1250+ *
1251+ * @note @x11 This shape is provided by a newer standard not supported by all
1252+ * cursor themes.
1253+ */
1254+#define GLFW_RESIZE_NESW_CURSOR 0x00036008
1255+/*! @brief The omni-directional resize/move cursor shape.
1256+ *
1257+ * The omni-directional resize cursor/move shape. This is usually either
1258+ * a combined horizontal and vertical double-headed arrow or a grabbing hand.
1259+ */
1260+#define GLFW_RESIZE_ALL_CURSOR 0x00036009
1261+/*! @brief The operation-not-allowed shape.
1262+ *
1263+ * The operation-not-allowed shape. This is usually a circle with a diagonal
1264+ * line through it.
1265+ *
1266+ * @note @wayland This shape is provided by a newer standard not supported by
1267+ * all cursor themes.
1268+ *
1269+ * @note @x11 This shape is provided by a newer standard not supported by all
1270+ * cursor themes.
1271+ */
1272+#define GLFW_NOT_ALLOWED_CURSOR 0x0003600A
1273+/*! @brief Legacy name for compatibility.
1274+ *
1275+ * This is an alias for compatibility with earlier versions.
1276+ */
1277+#define GLFW_HRESIZE_CURSOR GLFW_RESIZE_EW_CURSOR
1278+/*! @brief Legacy name for compatibility.
1279+ *
1280+ * This is an alias for compatibility with earlier versions.
1281+ */
1282+#define GLFW_VRESIZE_CURSOR GLFW_RESIZE_NS_CURSOR
1283+/*! @brief Legacy name for compatibility.
1284+ *
1285+ * This is an alias for compatibility with earlier versions.
1286+ */
1287+#define GLFW_HAND_CURSOR GLFW_POINTING_HAND_CURSOR
1288+/*! @} */
1289+
1290+#define GLFW_CONNECTED 0x00040001
1291+#define GLFW_DISCONNECTED 0x00040002
1292+
1293+/*! @addtogroup init
1294+ * @{ */
1295+/*! @brief Joystick hat buttons init hint.
1296+ *
1297+ * Joystick hat buttons [init hint](@ref GLFW_JOYSTICK_HAT_BUTTONS).
1298+ */
1299+#define GLFW_JOYSTICK_HAT_BUTTONS 0x00050001
1300+/*! @brief ANGLE rendering backend init hint.
1301+ *
1302+ * ANGLE rendering backend [init hint](@ref GLFW_ANGLE_PLATFORM_TYPE_hint).
1303+ */
1304+#define GLFW_ANGLE_PLATFORM_TYPE 0x00050002
1305+/*! @brief Platform selection init hint.
1306+ *
1307+ * Platform selection [init hint](@ref GLFW_PLATFORM).
1308+ */
1309+#define GLFW_PLATFORM 0x00050003
1310+/*! @brief macOS specific init hint.
1311+ *
1312+ * macOS specific [init hint](@ref GLFW_COCOA_CHDIR_RESOURCES_hint).
1313+ */
1314+#define GLFW_COCOA_CHDIR_RESOURCES 0x00051001
1315+/*! @brief macOS specific init hint.
1316+ *
1317+ * macOS specific [init hint](@ref GLFW_COCOA_MENUBAR_hint).
1318+ */
1319+#define GLFW_COCOA_MENUBAR 0x00051002
1320+/*! @brief X11 specific init hint.
1321+ *
1322+ * X11 specific [init hint](@ref GLFW_X11_XCB_VULKAN_SURFACE_hint).
1323+ */
1324+#define GLFW_X11_XCB_VULKAN_SURFACE 0x00052001
1325+/*! @brief Wayland specific init hint.
1326+ *
1327+ * Wayland specific [init hint](@ref GLFW_WAYLAND_LIBDECOR_hint).
1328+ */
1329+#define GLFW_WAYLAND_LIBDECOR 0x00053001
1330+/*! @} */
1331+
1332+/*! @addtogroup init
1333+ * @{ */
1334+/*! @brief Hint value that enables automatic platform selection.
1335+ *
1336+ * Hint value for @ref GLFW_PLATFORM that enables automatic platform selection.
1337+ */
1338+#define GLFW_ANY_PLATFORM 0x00060000
1339+#define GLFW_PLATFORM_WIN32 0x00060001
1340+#define GLFW_PLATFORM_COCOA 0x00060002
1341+#define GLFW_PLATFORM_WAYLAND 0x00060003
1342+#define GLFW_PLATFORM_X11 0x00060004
1343+#define GLFW_PLATFORM_NULL 0x00060005
1344+/*! @} */
1345+
1346+#define GLFW_DONT_CARE -1
1347+
1348+
1349+/*************************************************************************
1350+ * GLFW API types
1351+ *************************************************************************/
1352+
1353+/*! @brief Client API function pointer type.
1354+ *
1355+ * Generic function pointer used for returning client API function pointers
1356+ * without forcing a cast from a regular pointer.
1357+ *
1358+ * @sa @ref context_glext
1359+ * @sa @ref glfwGetProcAddress
1360+ *
1361+ * @since Added in version 3.0.
1362+ *
1363+ * @ingroup context
1364+ */
1365+typedef void (*GLFWglproc)(void);
1366+
1367+/*! @brief Vulkan API function pointer type.
1368+ *
1369+ * Generic function pointer used for returning Vulkan API function pointers
1370+ * without forcing a cast from a regular pointer.
1371+ *
1372+ * @sa @ref vulkan_proc
1373+ * @sa @ref glfwGetInstanceProcAddress
1374+ *
1375+ * @since Added in version 3.2.
1376+ *
1377+ * @ingroup vulkan
1378+ */
1379+typedef void (*GLFWvkproc)(void);
1380+
1381+/*! @brief Opaque monitor object.
1382+ *
1383+ * Opaque monitor object.
1384+ *
1385+ * @see @ref monitor_object
1386+ *
1387+ * @since Added in version 3.0.
1388+ *
1389+ * @ingroup monitor
1390+ */
1391+typedef struct GLFWmonitor GLFWmonitor;
1392+
1393+/*! @brief Opaque window object.
1394+ *
1395+ * Opaque window object.
1396+ *
1397+ * @see @ref window_object
1398+ *
1399+ * @since Added in version 3.0.
1400+ *
1401+ * @ingroup window
1402+ */
1403+typedef struct GLFWwindow GLFWwindow;
1404+
1405+/*! @brief Opaque cursor object.
1406+ *
1407+ * Opaque cursor object.
1408+ *
1409+ * @see @ref cursor_object
1410+ *
1411+ * @since Added in version 3.1.
1412+ *
1413+ * @ingroup input
1414+ */
1415+typedef struct GLFWcursor GLFWcursor;
1416+
1417+/*! @brief The function pointer type for memory allocation callbacks.
1418+ *
1419+ * This is the function pointer type for memory allocation callbacks. A memory
1420+ * allocation callback function has the following signature:
1421+ * @code
1422+ * void* function_name(size_t size, void* user)
1423+ * @endcode
1424+ *
1425+ * This function must return either a memory block at least `size` bytes long,
1426+ * or `NULL` if allocation failed. Note that not all parts of GLFW handle allocation
1427+ * failures gracefully yet.
1428+ *
1429+ * This function must support being called during @ref glfwInit but before the library is
1430+ * flagged as initialized, as well as during @ref glfwTerminate after the library is no
1431+ * longer flagged as initialized.
1432+ *
1433+ * Any memory allocated via this function will be deallocated via the same allocator
1434+ * during library termination or earlier.
1435+ *
1436+ * Any memory allocated via this function must be suitably aligned for any object type.
1437+ * If you are using C99 or earlier, this alignment is platform-dependent but will be the
1438+ * same as what `malloc` provides. If you are using C11 or later, this is the value of
1439+ * `alignof(max_align_t)`.
1440+ *
1441+ * The size will always be greater than zero. Allocations of size zero are filtered out
1442+ * before reaching the custom allocator.
1443+ *
1444+ * If this function returns `NULL`, GLFW will emit @ref GLFW_OUT_OF_MEMORY.
1445+ *
1446+ * This function must not call any GLFW function.
1447+ *
1448+ * @param[in] size The minimum size, in bytes, of the memory block.
1449+ * @param[in] user The user-defined pointer from the allocator.
1450+ * @return The address of the newly allocated memory block, or `NULL` if an
1451+ * error occurred.
1452+ *
1453+ * @pointer_lifetime The returned memory block must be valid at least until it
1454+ * is deallocated.
1455+ *
1456+ * @reentrancy This function should not call any GLFW function.
1457+ *
1458+ * @thread_safety This function must support being called from any thread that calls GLFW
1459+ * functions.
1460+ *
1461+ * @sa @ref init_allocator
1462+ * @sa @ref GLFWallocator
1463+ *
1464+ * @since Added in version 3.4.
1465+ *
1466+ * @ingroup init
1467+ */
1468+typedef void* (* GLFWallocatefun)(size_t size, void* user);
1469+
1470+/*! @brief The function pointer type for memory reallocation callbacks.
1471+ *
1472+ * This is the function pointer type for memory reallocation callbacks.
1473+ * A memory reallocation callback function has the following signature:
1474+ * @code
1475+ * void* function_name(void* block, size_t size, void* user)
1476+ * @endcode
1477+ *
1478+ * This function must return a memory block at least `size` bytes long, or
1479+ * `NULL` if allocation failed. Note that not all parts of GLFW handle allocation
1480+ * failures gracefully yet.
1481+ *
1482+ * This function must support being called during @ref glfwInit but before the library is
1483+ * flagged as initialized, as well as during @ref glfwTerminate after the library is no
1484+ * longer flagged as initialized.
1485+ *
1486+ * Any memory allocated via this function will be deallocated via the same allocator
1487+ * during library termination or earlier.
1488+ *
1489+ * Any memory allocated via this function must be suitably aligned for any object type.
1490+ * If you are using C99 or earlier, this alignment is platform-dependent but will be the
1491+ * same as what `realloc` provides. If you are using C11 or later, this is the value of
1492+ * `alignof(max_align_t)`.
1493+ *
1494+ * The block address will never be `NULL` and the size will always be greater than zero.
1495+ * Reallocations of a block to size zero are converted into deallocations before reaching
1496+ * the custom allocator. Reallocations of `NULL` to a non-zero size are converted into
1497+ * regular allocations before reaching the custom allocator.
1498+ *
1499+ * If this function returns `NULL`, GLFW will emit @ref GLFW_OUT_OF_MEMORY.
1500+ *
1501+ * This function must not call any GLFW function.
1502+ *
1503+ * @param[in] block The address of the memory block to reallocate.
1504+ * @param[in] size The new minimum size, in bytes, of the memory block.
1505+ * @param[in] user The user-defined pointer from the allocator.
1506+ * @return The address of the newly allocated or resized memory block, or
1507+ * `NULL` if an error occurred.
1508+ *
1509+ * @pointer_lifetime The returned memory block must be valid at least until it
1510+ * is deallocated.
1511+ *
1512+ * @reentrancy This function should not call any GLFW function.
1513+ *
1514+ * @thread_safety This function must support being called from any thread that calls GLFW
1515+ * functions.
1516+ *
1517+ * @sa @ref init_allocator
1518+ * @sa @ref GLFWallocator
1519+ *
1520+ * @since Added in version 3.4.
1521+ *
1522+ * @ingroup init
1523+ */
1524+typedef void* (* GLFWreallocatefun)(void* block, size_t size, void* user);
1525+
1526+/*! @brief The function pointer type for memory deallocation callbacks.
1527+ *
1528+ * This is the function pointer type for memory deallocation callbacks.
1529+ * A memory deallocation callback function has the following signature:
1530+ * @code
1531+ * void function_name(void* block, void* user)
1532+ * @endcode
1533+ *
1534+ * This function may deallocate the specified memory block. This memory block
1535+ * will have been allocated with the same allocator.
1536+ *
1537+ * This function must support being called during @ref glfwInit but before the library is
1538+ * flagged as initialized, as well as during @ref glfwTerminate after the library is no
1539+ * longer flagged as initialized.
1540+ *
1541+ * The block address will never be `NULL`. Deallocations of `NULL` are filtered out
1542+ * before reaching the custom allocator.
1543+ *
1544+ * If this function returns `NULL`, GLFW will emit @ref GLFW_OUT_OF_MEMORY.
1545+ *
1546+ * This function must not call any GLFW function.
1547+ *
1548+ * @param[in] block The address of the memory block to deallocate.
1549+ * @param[in] user The user-defined pointer from the allocator.
1550+ *
1551+ * @pointer_lifetime The specified memory block will not be accessed by GLFW
1552+ * after this function is called.
1553+ *
1554+ * @reentrancy This function should not call any GLFW function.
1555+ *
1556+ * @thread_safety This function must support being called from any thread that calls GLFW
1557+ * functions.
1558+ *
1559+ * @sa @ref init_allocator
1560+ * @sa @ref GLFWallocator
1561+ *
1562+ * @since Added in version 3.4.
1563+ *
1564+ * @ingroup init
1565+ */
1566+typedef void (* GLFWdeallocatefun)(void* block, void* user);
1567+
1568+/*! @brief The function pointer type for error callbacks.
1569+ *
1570+ * This is the function pointer type for error callbacks. An error callback
1571+ * function has the following signature:
1572+ * @code
1573+ * void callback_name(int error_code, const char* description)
1574+ * @endcode
1575+ *
1576+ * @param[in] error_code An [error code](@ref errors). Future releases may add
1577+ * more error codes.
1578+ * @param[in] description A UTF-8 encoded string describing the error.
1579+ *
1580+ * @pointer_lifetime The error description string is valid until the callback
1581+ * function returns.
1582+ *
1583+ * @sa @ref error_handling
1584+ * @sa @ref glfwSetErrorCallback
1585+ *
1586+ * @since Added in version 3.0.
1587+ *
1588+ * @ingroup init
1589+ */
1590+typedef void (* GLFWerrorfun)(int error_code, const char* description);
1591+
1592+/*! @brief The function pointer type for window position callbacks.
1593+ *
1594+ * This is the function pointer type for window position callbacks. A window
1595+ * position callback function has the following signature:
1596+ * @code
1597+ * void callback_name(GLFWwindow* window, int xpos, int ypos)
1598+ * @endcode
1599+ *
1600+ * @param[in] window The window that was moved.
1601+ * @param[in] xpos The new x-coordinate, in screen coordinates, of the
1602+ * upper-left corner of the content area of the window.
1603+ * @param[in] ypos The new y-coordinate, in screen coordinates, of the
1604+ * upper-left corner of the content area of the window.
1605+ *
1606+ * @sa @ref window_pos
1607+ * @sa @ref glfwSetWindowPosCallback
1608+ *
1609+ * @since Added in version 3.0.
1610+ *
1611+ * @ingroup window
1612+ */
1613+typedef void (* GLFWwindowposfun)(GLFWwindow* window, int xpos, int ypos);
1614+
1615+/*! @brief The function pointer type for window size callbacks.
1616+ *
1617+ * This is the function pointer type for window size callbacks. A window size
1618+ * callback function has the following signature:
1619+ * @code
1620+ * void callback_name(GLFWwindow* window, int width, int height)
1621+ * @endcode
1622+ *
1623+ * @param[in] window The window that was resized.
1624+ * @param[in] width The new width, in screen coordinates, of the window.
1625+ * @param[in] height The new height, in screen coordinates, of the window.
1626+ *
1627+ * @sa @ref window_size
1628+ * @sa @ref glfwSetWindowSizeCallback
1629+ *
1630+ * @since Added in version 1.0.
1631+ * @glfw3 Added window handle parameter.
1632+ *
1633+ * @ingroup window
1634+ */
1635+typedef void (* GLFWwindowsizefun)(GLFWwindow* window, int width, int height);
1636+
1637+/*! @brief The function pointer type for window close callbacks.
1638+ *
1639+ * This is the function pointer type for window close callbacks. A window
1640+ * close callback function has the following signature:
1641+ * @code
1642+ * void function_name(GLFWwindow* window)
1643+ * @endcode
1644+ *
1645+ * @param[in] window The window that the user attempted to close.
1646+ *
1647+ * @sa @ref window_close
1648+ * @sa @ref glfwSetWindowCloseCallback
1649+ *
1650+ * @since Added in version 2.5.
1651+ * @glfw3 Added window handle parameter.
1652+ *
1653+ * @ingroup window
1654+ */
1655+typedef void (* GLFWwindowclosefun)(GLFWwindow* window);
1656+
1657+/*! @brief The function pointer type for window content refresh callbacks.
1658+ *
1659+ * This is the function pointer type for window content refresh callbacks.
1660+ * A window content refresh callback function has the following signature:
1661+ * @code
1662+ * void function_name(GLFWwindow* window);
1663+ * @endcode
1664+ *
1665+ * @param[in] window The window whose content needs to be refreshed.
1666+ *
1667+ * @sa @ref window_refresh
1668+ * @sa @ref glfwSetWindowRefreshCallback
1669+ *
1670+ * @since Added in version 2.5.
1671+ * @glfw3 Added window handle parameter.
1672+ *
1673+ * @ingroup window
1674+ */
1675+typedef void (* GLFWwindowrefreshfun)(GLFWwindow* window);
1676+
1677+/*! @brief The function pointer type for window focus callbacks.
1678+ *
1679+ * This is the function pointer type for window focus callbacks. A window
1680+ * focus callback function has the following signature:
1681+ * @code
1682+ * void function_name(GLFWwindow* window, int focused)
1683+ * @endcode
1684+ *
1685+ * @param[in] window The window that gained or lost input focus.
1686+ * @param[in] focused `GLFW_TRUE` if the window was given input focus, or
1687+ * `GLFW_FALSE` if it lost it.
1688+ *
1689+ * @sa @ref window_focus
1690+ * @sa @ref glfwSetWindowFocusCallback
1691+ *
1692+ * @since Added in version 3.0.
1693+ *
1694+ * @ingroup window
1695+ */
1696+typedef void (* GLFWwindowfocusfun)(GLFWwindow* window, int focused);
1697+
1698+/*! @brief The function pointer type for window iconify callbacks.
1699+ *
1700+ * This is the function pointer type for window iconify callbacks. A window
1701+ * iconify callback function has the following signature:
1702+ * @code
1703+ * void function_name(GLFWwindow* window, int iconified)
1704+ * @endcode
1705+ *
1706+ * @param[in] window The window that was iconified or restored.
1707+ * @param[in] iconified `GLFW_TRUE` if the window was iconified, or
1708+ * `GLFW_FALSE` if it was restored.
1709+ *
1710+ * @sa @ref window_iconify
1711+ * @sa @ref glfwSetWindowIconifyCallback
1712+ *
1713+ * @since Added in version 3.0.
1714+ *
1715+ * @ingroup window
1716+ */
1717+typedef void (* GLFWwindowiconifyfun)(GLFWwindow* window, int iconified);
1718+
1719+/*! @brief The function pointer type for window maximize callbacks.
1720+ *
1721+ * This is the function pointer type for window maximize callbacks. A window
1722+ * maximize callback function has the following signature:
1723+ * @code
1724+ * void function_name(GLFWwindow* window, int maximized)
1725+ * @endcode
1726+ *
1727+ * @param[in] window The window that was maximized or restored.
1728+ * @param[in] maximized `GLFW_TRUE` if the window was maximized, or
1729+ * `GLFW_FALSE` if it was restored.
1730+ *
1731+ * @sa @ref window_maximize
1732+ * @sa glfwSetWindowMaximizeCallback
1733+ *
1734+ * @since Added in version 3.3.
1735+ *
1736+ * @ingroup window
1737+ */
1738+typedef void (* GLFWwindowmaximizefun)(GLFWwindow* window, int maximized);
1739+
1740+/*! @brief The function pointer type for framebuffer size callbacks.
1741+ *
1742+ * This is the function pointer type for framebuffer size callbacks.
1743+ * A framebuffer size callback function has the following signature:
1744+ * @code
1745+ * void function_name(GLFWwindow* window, int width, int height)
1746+ * @endcode
1747+ *
1748+ * @param[in] window The window whose framebuffer was resized.
1749+ * @param[in] width The new width, in pixels, of the framebuffer.
1750+ * @param[in] height The new height, in pixels, of the framebuffer.
1751+ *
1752+ * @sa @ref window_fbsize
1753+ * @sa @ref glfwSetFramebufferSizeCallback
1754+ *
1755+ * @since Added in version 3.0.
1756+ *
1757+ * @ingroup window
1758+ */
1759+typedef void (* GLFWframebuffersizefun)(GLFWwindow* window, int width, int height);
1760+
1761+/*! @brief The function pointer type for window content scale callbacks.
1762+ *
1763+ * This is the function pointer type for window content scale callbacks.
1764+ * A window content scale callback function has the following signature:
1765+ * @code
1766+ * void function_name(GLFWwindow* window, float xscale, float yscale)
1767+ * @endcode
1768+ *
1769+ * @param[in] window The window whose content scale changed.
1770+ * @param[in] xscale The new x-axis content scale of the window.
1771+ * @param[in] yscale The new y-axis content scale of the window.
1772+ *
1773+ * @sa @ref window_scale
1774+ * @sa @ref glfwSetWindowContentScaleCallback
1775+ *
1776+ * @since Added in version 3.3.
1777+ *
1778+ * @ingroup window
1779+ */
1780+typedef void (* GLFWwindowcontentscalefun)(GLFWwindow* window, float xscale, float yscale);
1781+
1782+/*! @brief The function pointer type for mouse button callbacks.
1783+ *
1784+ * This is the function pointer type for mouse button callback functions.
1785+ * A mouse button callback function has the following signature:
1786+ * @code
1787+ * void function_name(GLFWwindow* window, int button, int action, int mods)
1788+ * @endcode
1789+ *
1790+ * @param[in] window The window that received the event.
1791+ * @param[in] button The [mouse button](@ref buttons) that was pressed or
1792+ * released.
1793+ * @param[in] action One of `GLFW_PRESS` or `GLFW_RELEASE`. Future releases
1794+ * may add more actions.
1795+ * @param[in] mods Bit field describing which [modifier keys](@ref mods) were
1796+ * held down.
1797+ *
1798+ * @sa @ref input_mouse_button
1799+ * @sa @ref glfwSetMouseButtonCallback
1800+ *
1801+ * @since Added in version 1.0.
1802+ * @glfw3 Added window handle and modifier mask parameters.
1803+ *
1804+ * @ingroup input
1805+ */
1806+typedef void (* GLFWmousebuttonfun)(GLFWwindow* window, int button, int action, int mods);
1807+
1808+/*! @brief The function pointer type for cursor position callbacks.
1809+ *
1810+ * This is the function pointer type for cursor position callbacks. A cursor
1811+ * position callback function has the following signature:
1812+ * @code
1813+ * void function_name(GLFWwindow* window, double xpos, double ypos);
1814+ * @endcode
1815+ *
1816+ * @param[in] window The window that received the event.
1817+ * @param[in] xpos The new cursor x-coordinate, relative to the left edge of
1818+ * the content area.
1819+ * @param[in] ypos The new cursor y-coordinate, relative to the top edge of the
1820+ * content area.
1821+ *
1822+ * @sa @ref cursor_pos
1823+ * @sa @ref glfwSetCursorPosCallback
1824+ *
1825+ * @since Added in version 3.0. Replaces `GLFWmouseposfun`.
1826+ *
1827+ * @ingroup input
1828+ */
1829+typedef void (* GLFWcursorposfun)(GLFWwindow* window, double xpos, double ypos);
1830+
1831+/*! @brief The function pointer type for cursor enter/leave callbacks.
1832+ *
1833+ * This is the function pointer type for cursor enter/leave callbacks.
1834+ * A cursor enter/leave callback function has the following signature:
1835+ * @code
1836+ * void function_name(GLFWwindow* window, int entered)
1837+ * @endcode
1838+ *
1839+ * @param[in] window The window that received the event.
1840+ * @param[in] entered `GLFW_TRUE` if the cursor entered the window's content
1841+ * area, or `GLFW_FALSE` if it left it.
1842+ *
1843+ * @sa @ref cursor_enter
1844+ * @sa @ref glfwSetCursorEnterCallback
1845+ *
1846+ * @since Added in version 3.0.
1847+ *
1848+ * @ingroup input
1849+ */
1850+typedef void (* GLFWcursorenterfun)(GLFWwindow* window, int entered);
1851+
1852+/*! @brief The function pointer type for scroll callbacks.
1853+ *
1854+ * This is the function pointer type for scroll callbacks. A scroll callback
1855+ * function has the following signature:
1856+ * @code
1857+ * void function_name(GLFWwindow* window, double xoffset, double yoffset)
1858+ * @endcode
1859+ *
1860+ * @param[in] window The window that received the event.
1861+ * @param[in] xoffset The scroll offset along the x-axis.
1862+ * @param[in] yoffset The scroll offset along the y-axis.
1863+ *
1864+ * @sa @ref scrolling
1865+ * @sa @ref glfwSetScrollCallback
1866+ *
1867+ * @since Added in version 3.0. Replaces `GLFWmousewheelfun`.
1868+ *
1869+ * @ingroup input
1870+ */
1871+typedef void (* GLFWscrollfun)(GLFWwindow* window, double xoffset, double yoffset);
1872+
1873+/*! @brief The function pointer type for keyboard key callbacks.
1874+ *
1875+ * This is the function pointer type for keyboard key callbacks. A keyboard
1876+ * key callback function has the following signature:
1877+ * @code
1878+ * void function_name(GLFWwindow* window, int key, int scancode, int action, int mods)
1879+ * @endcode
1880+ *
1881+ * @param[in] window The window that received the event.
1882+ * @param[in] key The [keyboard key](@ref keys) that was pressed or released.
1883+ * @param[in] scancode The platform-specific scancode of the key.
1884+ * @param[in] action `GLFW_PRESS`, `GLFW_RELEASE` or `GLFW_REPEAT`. Future
1885+ * releases may add more actions.
1886+ * @param[in] mods Bit field describing which [modifier keys](@ref mods) were
1887+ * held down.
1888+ *
1889+ * @sa @ref input_key
1890+ * @sa @ref glfwSetKeyCallback
1891+ *
1892+ * @since Added in version 1.0.
1893+ * @glfw3 Added window handle, scancode and modifier mask parameters.
1894+ *
1895+ * @ingroup input
1896+ */
1897+typedef void (* GLFWkeyfun)(GLFWwindow* window, int key, int scancode, int action, int mods);
1898+
1899+/*! @brief The function pointer type for Unicode character callbacks.
1900+ *
1901+ * This is the function pointer type for Unicode character callbacks.
1902+ * A Unicode character callback function has the following signature:
1903+ * @code
1904+ * void function_name(GLFWwindow* window, unsigned int codepoint)
1905+ * @endcode
1906+ *
1907+ * @param[in] window The window that received the event.
1908+ * @param[in] codepoint The Unicode code point of the character.
1909+ *
1910+ * @sa @ref input_char
1911+ * @sa @ref glfwSetCharCallback
1912+ *
1913+ * @since Added in version 2.4.
1914+ * @glfw3 Added window handle parameter.
1915+ *
1916+ * @ingroup input
1917+ */
1918+typedef void (* GLFWcharfun)(GLFWwindow* window, unsigned int codepoint);
1919+
1920+/*! @brief The function pointer type for Unicode character with modifiers
1921+ * callbacks.
1922+ *
1923+ * This is the function pointer type for Unicode character with modifiers
1924+ * callbacks. It is called for each input character, regardless of what
1925+ * modifier keys are held down. A Unicode character with modifiers callback
1926+ * function has the following signature:
1927+ * @code
1928+ * void function_name(GLFWwindow* window, unsigned int codepoint, int mods)
1929+ * @endcode
1930+ *
1931+ * @param[in] window The window that received the event.
1932+ * @param[in] codepoint The Unicode code point of the character.
1933+ * @param[in] mods Bit field describing which [modifier keys](@ref mods) were
1934+ * held down.
1935+ *
1936+ * @sa @ref input_char
1937+ * @sa @ref glfwSetCharModsCallback
1938+ *
1939+ * @deprecated Scheduled for removal in version 4.0.
1940+ *
1941+ * @since Added in version 3.1.
1942+ *
1943+ * @ingroup input
1944+ */
1945+typedef void (* GLFWcharmodsfun)(GLFWwindow* window, unsigned int codepoint, int mods);
1946+
1947+/*! @brief The function pointer type for path drop callbacks.
1948+ *
1949+ * This is the function pointer type for path drop callbacks. A path drop
1950+ * callback function has the following signature:
1951+ * @code
1952+ * void function_name(GLFWwindow* window, int path_count, const char* paths[])
1953+ * @endcode
1954+ *
1955+ * @param[in] window The window that received the event.
1956+ * @param[in] path_count The number of dropped paths.
1957+ * @param[in] paths The UTF-8 encoded file and/or directory path names.
1958+ *
1959+ * @pointer_lifetime The path array and its strings are valid until the
1960+ * callback function returns.
1961+ *
1962+ * @sa @ref path_drop
1963+ * @sa @ref glfwSetDropCallback
1964+ *
1965+ * @since Added in version 3.1.
1966+ *
1967+ * @ingroup input
1968+ */
1969+typedef void (* GLFWdropfun)(GLFWwindow* window, int path_count, const char* paths[]);
1970+
1971+/*! @brief The function pointer type for monitor configuration callbacks.
1972+ *
1973+ * This is the function pointer type for monitor configuration callbacks.
1974+ * A monitor callback function has the following signature:
1975+ * @code
1976+ * void function_name(GLFWmonitor* monitor, int event)
1977+ * @endcode
1978+ *
1979+ * @param[in] monitor The monitor that was connected or disconnected.
1980+ * @param[in] event One of `GLFW_CONNECTED` or `GLFW_DISCONNECTED`. Future
1981+ * releases may add more events.
1982+ *
1983+ * @sa @ref monitor_event
1984+ * @sa @ref glfwSetMonitorCallback
1985+ *
1986+ * @since Added in version 3.0.
1987+ *
1988+ * @ingroup monitor
1989+ */
1990+typedef void (* GLFWmonitorfun)(GLFWmonitor* monitor, int event);
1991+
1992+/*! @brief The function pointer type for joystick configuration callbacks.
1993+ *
1994+ * This is the function pointer type for joystick configuration callbacks.
1995+ * A joystick configuration callback function has the following signature:
1996+ * @code
1997+ * void function_name(int jid, int event)
1998+ * @endcode
1999+ *
2000+ * @param[in] jid The joystick that was connected or disconnected.
2001+ * @param[in] event One of `GLFW_CONNECTED` or `GLFW_DISCONNECTED`. Future
2002+ * releases may add more events.
2003+ *
2004+ * @sa @ref joystick_event
2005+ * @sa @ref glfwSetJoystickCallback
2006+ *
2007+ * @since Added in version 3.2.
2008+ *
2009+ * @ingroup input
2010+ */
2011+typedef void (* GLFWjoystickfun)(int jid, int event);
2012+
2013+/*! @brief Video mode type.
2014+ *
2015+ * This describes a single video mode.
2016+ *
2017+ * @sa @ref monitor_modes
2018+ * @sa @ref glfwGetVideoMode
2019+ * @sa @ref glfwGetVideoModes
2020+ *
2021+ * @since Added in version 1.0.
2022+ * @glfw3 Added refresh rate member.
2023+ *
2024+ * @ingroup monitor
2025+ */
2026+typedef struct GLFWvidmode
2027+{
2028+ /*! The width, in screen coordinates, of the video mode.
2029+ */
2030+ int width;
2031+ /*! The height, in screen coordinates, of the video mode.
2032+ */
2033+ int height;
2034+ /*! The bit depth of the red channel of the video mode.
2035+ */
2036+ int redBits;
2037+ /*! The bit depth of the green channel of the video mode.
2038+ */
2039+ int greenBits;
2040+ /*! The bit depth of the blue channel of the video mode.
2041+ */
2042+ int blueBits;
2043+ /*! The refresh rate, in Hz, of the video mode.
2044+ */
2045+ int refreshRate;
2046+} GLFWvidmode;
2047+
2048+/*! @brief Gamma ramp.
2049+ *
2050+ * This describes the gamma ramp for a monitor.
2051+ *
2052+ * @sa @ref monitor_gamma
2053+ * @sa @ref glfwGetGammaRamp
2054+ * @sa @ref glfwSetGammaRamp
2055+ *
2056+ * @since Added in version 3.0.
2057+ *
2058+ * @ingroup monitor
2059+ */
2060+typedef struct GLFWgammaramp
2061+{
2062+ /*! An array of value describing the response of the red channel.
2063+ */
2064+ unsigned short* red;
2065+ /*! An array of value describing the response of the green channel.
2066+ */
2067+ unsigned short* green;
2068+ /*! An array of value describing the response of the blue channel.
2069+ */
2070+ unsigned short* blue;
2071+ /*! The number of elements in each array.
2072+ */
2073+ unsigned int size;
2074+} GLFWgammaramp;
2075+
2076+/*! @brief Image data.
2077+ *
2078+ * This describes a single 2D image. See the documentation for each related
2079+ * function what the expected pixel format is.
2080+ *
2081+ * @sa @ref cursor_custom
2082+ * @sa @ref window_icon
2083+ *
2084+ * @since Added in version 2.1.
2085+ * @glfw3 Removed format and bytes-per-pixel members.
2086+ *
2087+ * @ingroup window
2088+ */
2089+typedef struct GLFWimage
2090+{
2091+ /*! The width, in pixels, of this image.
2092+ */
2093+ int width;
2094+ /*! The height, in pixels, of this image.
2095+ */
2096+ int height;
2097+ /*! The pixel data of this image, arranged left-to-right, top-to-bottom.
2098+ */
2099+ unsigned char* pixels;
2100+} GLFWimage;
2101+
2102+/*! @brief Gamepad input state
2103+ *
2104+ * This describes the input state of a gamepad.
2105+ *
2106+ * @sa @ref gamepad
2107+ * @sa @ref glfwGetGamepadState
2108+ *
2109+ * @since Added in version 3.3.
2110+ *
2111+ * @ingroup input
2112+ */
2113+typedef struct GLFWgamepadstate
2114+{
2115+ /*! The states of each [gamepad button](@ref gamepad_buttons), `GLFW_PRESS`
2116+ * or `GLFW_RELEASE`.
2117+ */
2118+ unsigned char buttons[15];
2119+ /*! The states of each [gamepad axis](@ref gamepad_axes), in the range -1.0
2120+ * to 1.0 inclusive.
2121+ */
2122+ float axes[6];
2123+} GLFWgamepadstate;
2124+
2125+/*! @brief Custom heap memory allocator.
2126+ *
2127+ * This describes a custom heap memory allocator for GLFW. To set an allocator, pass it
2128+ * to @ref glfwInitAllocator before initializing the library.
2129+ *
2130+ * @sa @ref init_allocator
2131+ * @sa @ref glfwInitAllocator
2132+ *
2133+ * @since Added in version 3.4.
2134+ *
2135+ * @ingroup init
2136+ */
2137+typedef struct GLFWallocator
2138+{
2139+ /*! The memory allocation function. See @ref GLFWallocatefun for details about
2140+ * allocation function.
2141+ */
2142+ GLFWallocatefun allocate;
2143+ /*! The memory reallocation function. See @ref GLFWreallocatefun for details about
2144+ * reallocation function.
2145+ */
2146+ GLFWreallocatefun reallocate;
2147+ /*! The memory deallocation function. See @ref GLFWdeallocatefun for details about
2148+ * deallocation function.
2149+ */
2150+ GLFWdeallocatefun deallocate;
2151+ /*! The user pointer for this custom allocator. This value will be passed to the
2152+ * allocator functions.
2153+ */
2154+ void* user;
2155+} GLFWallocator;
2156+
2157+
2158+/*************************************************************************
2159+ * GLFW API functions
2160+ *************************************************************************/
2161+
2162+/*! @brief Initializes the GLFW library.
2163+ *
2164+ * This function initializes the GLFW library. Before most GLFW functions can
2165+ * be used, GLFW must be initialized, and before an application terminates GLFW
2166+ * should be terminated in order to free any resources allocated during or
2167+ * after initialization.
2168+ *
2169+ * If this function fails, it calls @ref glfwTerminate before returning. If it
2170+ * succeeds, you should call @ref glfwTerminate before the application exits.
2171+ *
2172+ * Additional calls to this function after successful initialization but before
2173+ * termination will return `GLFW_TRUE` immediately.
2174+ *
2175+ * The @ref GLFW_PLATFORM init hint controls which platforms are considered during
2176+ * initialization. This also depends on which platforms the library was compiled to
2177+ * support.
2178+ *
2179+ * @return `GLFW_TRUE` if successful, or `GLFW_FALSE` if an
2180+ * [error](@ref error_handling) occurred.
2181+ *
2182+ * @errors Possible errors include @ref GLFW_PLATFORM_UNAVAILABLE and @ref
2183+ * GLFW_PLATFORM_ERROR.
2184+ *
2185+ * @remark @macos This function will change the current directory of the
2186+ * application to the `Contents/Resources` subdirectory of the application's
2187+ * bundle, if present. This can be disabled with the @ref
2188+ * GLFW_COCOA_CHDIR_RESOURCES init hint.
2189+ *
2190+ * @remark @macos This function will create the main menu and dock icon for the
2191+ * application. If GLFW finds a `MainMenu.nib` it is loaded and assumed to
2192+ * contain a menu bar. Otherwise a minimal menu bar is created manually with
2193+ * common commands like Hide, Quit and About. The About entry opens a minimal
2194+ * about dialog with information from the application's bundle. The menu bar
2195+ * and dock icon can be disabled entirely with the @ref GLFW_COCOA_MENUBAR init
2196+ * hint.
2197+ *
2198+ * @remark __Wayland, X11:__ If the library was compiled with support for both
2199+ * Wayland and X11, and the @ref GLFW_PLATFORM init hint is set to
2200+ * `GLFW_ANY_PLATFORM`, the `XDG_SESSION_TYPE` environment variable affects
2201+ * which platform is picked. If the environment variable is not set, or is set
2202+ * to something other than `wayland` or `x11`, the regular detection mechanism
2203+ * will be used instead.
2204+ *
2205+ * @remark @x11 This function will set the `LC_CTYPE` category of the
2206+ * application locale according to the current environment if that category is
2207+ * still "C". This is because the "C" locale breaks Unicode text input.
2208+ *
2209+ * @thread_safety This function must only be called from the main thread.
2210+ *
2211+ * @sa @ref intro_init
2212+ * @sa @ref glfwInitHint
2213+ * @sa @ref glfwInitAllocator
2214+ * @sa @ref glfwTerminate
2215+ *
2216+ * @since Added in version 1.0.
2217+ *
2218+ * @ingroup init
2219+ */
2220+GLFWAPI int glfwInit(void);
2221+
2222+/*! @brief Terminates the GLFW library.
2223+ *
2224+ * This function destroys all remaining windows and cursors, restores any
2225+ * modified gamma ramps and frees any other allocated resources. Once this
2226+ * function is called, you must again call @ref glfwInit successfully before
2227+ * you will be able to use most GLFW functions.
2228+ *
2229+ * If GLFW has been successfully initialized, this function should be called
2230+ * before the application exits. If initialization fails, there is no need to
2231+ * call this function, as it is called by @ref glfwInit before it returns
2232+ * failure.
2233+ *
2234+ * This function has no effect if GLFW is not initialized.
2235+ *
2236+ * @errors Possible errors include @ref GLFW_PLATFORM_ERROR.
2237+ *
2238+ * @remark This function may be called before @ref glfwInit.
2239+ *
2240+ * @warning The contexts of any remaining windows must not be current on any
2241+ * other thread when this function is called.
2242+ *
2243+ * @reentrancy This function must not be called from a callback.
2244+ *
2245+ * @thread_safety This function must only be called from the main thread.
2246+ *
2247+ * @sa @ref intro_init
2248+ * @sa @ref glfwInit
2249+ *
2250+ * @since Added in version 1.0.
2251+ *
2252+ * @ingroup init
2253+ */
2254+GLFWAPI void glfwTerminate(void);
2255+
2256+/*! @brief Sets the specified init hint to the desired value.
2257+ *
2258+ * This function sets hints for the next initialization of GLFW.
2259+ *
2260+ * The values you set hints to are never reset by GLFW, but they only take
2261+ * effect during initialization. Once GLFW has been initialized, any values
2262+ * you set will be ignored until the library is terminated and initialized
2263+ * again.
2264+ *
2265+ * Some hints are platform specific. These may be set on any platform but they
2266+ * will only affect their specific platform. Other platforms will ignore them.
2267+ * Setting these hints requires no platform specific headers or functions.
2268+ *
2269+ * @param[in] hint The [init hint](@ref init_hints) to set.
2270+ * @param[in] value The new value of the init hint.
2271+ *
2272+ * @errors Possible errors include @ref GLFW_INVALID_ENUM and @ref
2273+ * GLFW_INVALID_VALUE.
2274+ *
2275+ * @remarks This function may be called before @ref glfwInit.
2276+ *
2277+ * @thread_safety This function must only be called from the main thread.
2278+ *
2279+ * @sa init_hints
2280+ * @sa glfwInit
2281+ *
2282+ * @since Added in version 3.3.
2283+ *
2284+ * @ingroup init
2285+ */
2286+GLFWAPI void glfwInitHint(int hint, int value);
2287+
2288+/*! @brief Sets the init allocator to the desired value.
2289+ *
2290+ * To use the default allocator, call this function with a `NULL` argument.
2291+ *
2292+ * If you specify an allocator struct, every member must be a valid function
2293+ * pointer. If any member is `NULL`, this function will emit @ref
2294+ * GLFW_INVALID_VALUE and the init allocator will be unchanged.
2295+ *
2296+ * The functions in the allocator must fulfil a number of requirements. See the
2297+ * documentation for @ref GLFWallocatefun, @ref GLFWreallocatefun and @ref
2298+ * GLFWdeallocatefun for details.
2299+ *
2300+ * @param[in] allocator The allocator to use at the next initialization, or
2301+ * `NULL` to use the default one.
2302+ *
2303+ * @errors Possible errors include @ref GLFW_INVALID_VALUE.
2304+ *
2305+ * @pointer_lifetime The specified allocator is copied before this function
2306+ * returns.
2307+ *
2308+ * @thread_safety This function must only be called from the main thread.
2309+ *
2310+ * @sa @ref init_allocator
2311+ * @sa @ref glfwInit
2312+ *
2313+ * @since Added in version 3.4.
2314+ *
2315+ * @ingroup init
2316+ */
2317+GLFWAPI void glfwInitAllocator(const GLFWallocator* allocator);
2318+
2319+#if defined(VK_VERSION_1_0)
2320+
2321+/*! @brief Sets the desired Vulkan `vkGetInstanceProcAddr` function.
2322+ *
2323+ * This function sets the `vkGetInstanceProcAddr` function that GLFW will use for all
2324+ * Vulkan related entry point queries.
2325+ *
2326+ * This feature is mostly useful on macOS, if your copy of the Vulkan loader is in
2327+ * a location where GLFW cannot find it through dynamic loading, or if you are still
2328+ * using the static library version of the loader.
2329+ *
2330+ * If set to `NULL`, GLFW will try to load the Vulkan loader dynamically by its standard
2331+ * name and get this function from there. This is the default behavior.
2332+ *
2333+ * The standard name of the loader is `vulkan-1.dll` on Windows, `libvulkan.so.1` on
2334+ * Linux and other Unix-like systems and `libvulkan.1.dylib` on macOS. If your code is
2335+ * also loading it via these names then you probably don't need to use this function.
2336+ *
2337+ * The function address you set is never reset by GLFW, but it only takes effect during
2338+ * initialization. Once GLFW has been initialized, any updates will be ignored until the
2339+ * library is terminated and initialized again.
2340+ *
2341+ * @param[in] loader The address of the function to use, or `NULL`.
2342+ *
2343+ * @par Loader function signature
2344+ * @code
2345+ * PFN_vkVoidFunction vkGetInstanceProcAddr(VkInstance instance, const char* name)
2346+ * @endcode
2347+ * For more information about this function, see the
2348+ * [Vulkan Registry](https://www.khronos.org/registry/vulkan/).
2349+ *
2350+ * @errors None.
2351+ *
2352+ * @remark This function may be called before @ref glfwInit.
2353+ *
2354+ * @thread_safety This function must only be called from the main thread.
2355+ *
2356+ * @sa @ref vulkan_loader
2357+ * @sa @ref glfwInit
2358+ *
2359+ * @since Added in version 3.4.
2360+ *
2361+ * @ingroup init
2362+ */
2363+GLFWAPI void glfwInitVulkanLoader(PFN_vkGetInstanceProcAddr loader);
2364+
2365+#endif /*VK_VERSION_1_0*/
2366+
2367+/*! @brief Retrieves the version of the GLFW library.
2368+ *
2369+ * This function retrieves the major, minor and revision numbers of the GLFW
2370+ * library. It is intended for when you are using GLFW as a shared library and
2371+ * want to ensure that you are using the minimum required version.
2372+ *
2373+ * Any or all of the version arguments may be `NULL`.
2374+ *
2375+ * @param[out] major Where to store the major version number, or `NULL`.
2376+ * @param[out] minor Where to store the minor version number, or `NULL`.
2377+ * @param[out] rev Where to store the revision number, or `NULL`.
2378+ *
2379+ * @errors None.
2380+ *
2381+ * @remark This function may be called before @ref glfwInit.
2382+ *
2383+ * @thread_safety This function may be called from any thread.
2384+ *
2385+ * @sa @ref intro_version
2386+ * @sa @ref glfwGetVersionString
2387+ *
2388+ * @since Added in version 1.0.
2389+ *
2390+ * @ingroup init
2391+ */
2392+GLFWAPI void glfwGetVersion(int* major, int* minor, int* rev);
2393+
2394+/*! @brief Returns a string describing the compile-time configuration.
2395+ *
2396+ * This function returns the compile-time generated
2397+ * [version string](@ref intro_version_string) of the GLFW library binary. It describes
2398+ * the version, platforms, compiler and any platform or operating system specific
2399+ * compile-time options. It should not be confused with the OpenGL or OpenGL ES version
2400+ * string, queried with `glGetString`.
2401+ *
2402+ * __Do not use the version string__ to parse the GLFW library version. The
2403+ * @ref glfwGetVersion function provides the version of the running library
2404+ * binary in numerical format.
2405+ *
2406+ * __Do not use the version string__ to parse what platforms are supported. The @ref
2407+ * glfwPlatformSupported function lets you query platform support.
2408+ *
2409+ * @return The ASCII encoded GLFW version string.
2410+ *
2411+ * @errors None.
2412+ *
2413+ * @remark This function may be called before @ref glfwInit.
2414+ *
2415+ * @pointer_lifetime The returned string is static and compile-time generated.
2416+ *
2417+ * @thread_safety This function may be called from any thread.
2418+ *
2419+ * @sa @ref intro_version
2420+ * @sa @ref glfwGetVersion
2421+ *
2422+ * @since Added in version 3.0.
2423+ *
2424+ * @ingroup init
2425+ */
2426+GLFWAPI const char* glfwGetVersionString(void);
2427+
2428+/*! @brief Returns and clears the last error for the calling thread.
2429+ *
2430+ * This function returns and clears the [error code](@ref errors) of the last
2431+ * error that occurred on the calling thread, and optionally a UTF-8 encoded
2432+ * human-readable description of it. If no error has occurred since the last
2433+ * call, it returns @ref GLFW_NO_ERROR (zero) and the description pointer is
2434+ * set to `NULL`.
2435+ *
2436+ * @param[in] description Where to store the error description pointer, or `NULL`.
2437+ * @return The last error code for the calling thread, or @ref GLFW_NO_ERROR
2438+ * (zero).
2439+ *
2440+ * @errors None.
2441+ *
2442+ * @pointer_lifetime The returned string is allocated and freed by GLFW. You
2443+ * should not free it yourself. It is guaranteed to be valid only until the
2444+ * next error occurs or the library is terminated.
2445+ *
2446+ * @remark This function may be called before @ref glfwInit.
2447+ *
2448+ * @thread_safety This function may be called from any thread.
2449+ *
2450+ * @sa @ref error_handling
2451+ * @sa @ref glfwSetErrorCallback
2452+ *
2453+ * @since Added in version 3.3.
2454+ *
2455+ * @ingroup init
2456+ */
2457+GLFWAPI int glfwGetError(const char** description);
2458+
2459+/*! @brief Sets the error callback.
2460+ *
2461+ * This function sets the error callback, which is called with an error code
2462+ * and a human-readable description each time a GLFW error occurs.
2463+ *
2464+ * The error code is set before the callback is called. Calling @ref
2465+ * glfwGetError from the error callback will return the same value as the error
2466+ * code argument.
2467+ *
2468+ * The error callback is called on the thread where the error occurred. If you
2469+ * are using GLFW from multiple threads, your error callback needs to be
2470+ * written accordingly.
2471+ *
2472+ * Because the description string may have been generated specifically for that
2473+ * error, it is not guaranteed to be valid after the callback has returned. If
2474+ * you wish to use it after the callback returns, you need to make a copy.
2475+ *
2476+ * Once set, the error callback remains set even after the library has been
2477+ * terminated.
2478+ *
2479+ * @param[in] callback The new callback, or `NULL` to remove the currently set
2480+ * callback.
2481+ * @return The previously set callback, or `NULL` if no callback was set.
2482+ *
2483+ * @callback_signature
2484+ * @code
2485+ * void callback_name(int error_code, const char* description)
2486+ * @endcode
2487+ * For more information about the callback parameters, see the
2488+ * [callback pointer type](@ref GLFWerrorfun).
2489+ *
2490+ * @errors None.
2491+ *
2492+ * @remark This function may be called before @ref glfwInit.
2493+ *
2494+ * @thread_safety This function must only be called from the main thread.
2495+ *
2496+ * @sa @ref error_handling
2497+ * @sa @ref glfwGetError
2498+ *
2499+ * @since Added in version 3.0.
2500+ *
2501+ * @ingroup init
2502+ */
2503+GLFWAPI GLFWerrorfun glfwSetErrorCallback(GLFWerrorfun callback);
2504+
2505+/*! @brief Returns the currently selected platform.
2506+ *
2507+ * This function returns the platform that was selected during initialization. The
2508+ * returned value will be one of `GLFW_PLATFORM_WIN32`, `GLFW_PLATFORM_COCOA`,
2509+ * `GLFW_PLATFORM_WAYLAND`, `GLFW_PLATFORM_X11` or `GLFW_PLATFORM_NULL`.
2510+ *
2511+ * @return The currently selected platform, or zero if an error occurred.
2512+ *
2513+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
2514+ *
2515+ * @thread_safety This function may be called from any thread.
2516+ *
2517+ * @sa @ref platform
2518+ * @sa @ref glfwPlatformSupported
2519+ *
2520+ * @since Added in version 3.4.
2521+ *
2522+ * @ingroup init
2523+ */
2524+GLFWAPI int glfwGetPlatform(void);
2525+
2526+/*! @brief Returns whether the library includes support for the specified platform.
2527+ *
2528+ * This function returns whether the library was compiled with support for the specified
2529+ * platform. The platform must be one of `GLFW_PLATFORM_WIN32`, `GLFW_PLATFORM_COCOA`,
2530+ * `GLFW_PLATFORM_WAYLAND`, `GLFW_PLATFORM_X11` or `GLFW_PLATFORM_NULL`.
2531+ *
2532+ * @param[in] platform The platform to query.
2533+ * @return `GLFW_TRUE` if the platform is supported, or `GLFW_FALSE` otherwise.
2534+ *
2535+ * @errors Possible errors include @ref GLFW_INVALID_ENUM.
2536+ *
2537+ * @remark This function may be called before @ref glfwInit.
2538+ *
2539+ * @thread_safety This function may be called from any thread.
2540+ *
2541+ * @sa @ref platform
2542+ * @sa @ref glfwGetPlatform
2543+ *
2544+ * @since Added in version 3.4.
2545+ *
2546+ * @ingroup init
2547+ */
2548+GLFWAPI int glfwPlatformSupported(int platform);
2549+
2550+/*! @brief Returns the currently connected monitors.
2551+ *
2552+ * This function returns an array of handles for all currently connected
2553+ * monitors. The primary monitor is always first in the returned array. If no
2554+ * monitors were found, this function returns `NULL`.
2555+ *
2556+ * @param[out] count Where to store the number of monitors in the returned
2557+ * array. This is set to zero if an error occurred.
2558+ * @return An array of monitor handles, or `NULL` if no monitors were found or
2559+ * if an [error](@ref error_handling) occurred.
2560+ *
2561+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
2562+ *
2563+ * @pointer_lifetime The returned array is allocated and freed by GLFW. You
2564+ * should not free it yourself. It is guaranteed to be valid only until the
2565+ * monitor configuration changes or the library is terminated.
2566+ *
2567+ * @thread_safety This function must only be called from the main thread.
2568+ *
2569+ * @sa @ref monitor_monitors
2570+ * @sa @ref monitor_event
2571+ * @sa @ref glfwGetPrimaryMonitor
2572+ *
2573+ * @since Added in version 3.0.
2574+ *
2575+ * @ingroup monitor
2576+ */
2577+GLFWAPI GLFWmonitor** glfwGetMonitors(int* count);
2578+
2579+/*! @brief Returns the primary monitor.
2580+ *
2581+ * This function returns the primary monitor. This is usually the monitor
2582+ * where elements like the task bar or global menu bar are located.
2583+ *
2584+ * @return The primary monitor, or `NULL` if no monitors were found or if an
2585+ * [error](@ref error_handling) occurred.
2586+ *
2587+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
2588+ *
2589+ * @thread_safety This function must only be called from the main thread.
2590+ *
2591+ * @remark The primary monitor is always first in the array returned by @ref
2592+ * glfwGetMonitors.
2593+ *
2594+ * @sa @ref monitor_monitors
2595+ * @sa @ref glfwGetMonitors
2596+ *
2597+ * @since Added in version 3.0.
2598+ *
2599+ * @ingroup monitor
2600+ */
2601+GLFWAPI GLFWmonitor* glfwGetPrimaryMonitor(void);
2602+
2603+/*! @brief Returns the position of the monitor's viewport on the virtual screen.
2604+ *
2605+ * This function returns the position, in screen coordinates, of the upper-left
2606+ * corner of the specified monitor.
2607+ *
2608+ * Any or all of the position arguments may be `NULL`. If an error occurs, all
2609+ * non-`NULL` position arguments will be set to zero.
2610+ *
2611+ * @param[in] monitor The monitor to query.
2612+ * @param[out] xpos Where to store the monitor x-coordinate, or `NULL`.
2613+ * @param[out] ypos Where to store the monitor y-coordinate, or `NULL`.
2614+ *
2615+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
2616+ * GLFW_PLATFORM_ERROR.
2617+ *
2618+ * @thread_safety This function must only be called from the main thread.
2619+ *
2620+ * @sa @ref monitor_properties
2621+ *
2622+ * @since Added in version 3.0.
2623+ *
2624+ * @ingroup monitor
2625+ */
2626+GLFWAPI void glfwGetMonitorPos(GLFWmonitor* monitor, int* xpos, int* ypos);
2627+
2628+/*! @brief Retrieves the work area of the monitor.
2629+ *
2630+ * This function returns the position, in screen coordinates, of the upper-left
2631+ * corner of the work area of the specified monitor along with the work area
2632+ * size in screen coordinates. The work area is defined as the area of the
2633+ * monitor not occluded by the window system task bar where present. If no
2634+ * task bar exists then the work area is the monitor resolution in screen
2635+ * coordinates.
2636+ *
2637+ * Any or all of the position and size arguments may be `NULL`. If an error
2638+ * occurs, all non-`NULL` position and size arguments will be set to zero.
2639+ *
2640+ * @param[in] monitor The monitor to query.
2641+ * @param[out] xpos Where to store the monitor x-coordinate, or `NULL`.
2642+ * @param[out] ypos Where to store the monitor y-coordinate, or `NULL`.
2643+ * @param[out] width Where to store the monitor width, or `NULL`.
2644+ * @param[out] height Where to store the monitor height, or `NULL`.
2645+ *
2646+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
2647+ * GLFW_PLATFORM_ERROR.
2648+ *
2649+ * @thread_safety This function must only be called from the main thread.
2650+ *
2651+ * @sa @ref monitor_workarea
2652+ *
2653+ * @since Added in version 3.3.
2654+ *
2655+ * @ingroup monitor
2656+ */
2657+GLFWAPI void glfwGetMonitorWorkarea(GLFWmonitor* monitor, int* xpos, int* ypos, int* width, int* height);
2658+
2659+/*! @brief Returns the physical size of the monitor.
2660+ *
2661+ * This function returns the size, in millimetres, of the display area of the
2662+ * specified monitor.
2663+ *
2664+ * Some platforms do not provide accurate monitor size information, either
2665+ * because the monitor [EDID][] data is incorrect or because the driver does
2666+ * not report it accurately.
2667+ *
2668+ * [EDID]: https://en.wikipedia.org/wiki/Extended_display_identification_data
2669+ *
2670+ * Any or all of the size arguments may be `NULL`. If an error occurs, all
2671+ * non-`NULL` size arguments will be set to zero.
2672+ *
2673+ * @param[in] monitor The monitor to query.
2674+ * @param[out] widthMM Where to store the width, in millimetres, of the
2675+ * monitor's display area, or `NULL`.
2676+ * @param[out] heightMM Where to store the height, in millimetres, of the
2677+ * monitor's display area, or `NULL`.
2678+ *
2679+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
2680+ *
2681+ * @remark @win32 On Windows 8 and earlier the physical size is calculated from
2682+ * the current resolution and system DPI instead of querying the monitor EDID data.
2683+ *
2684+ * @thread_safety This function must only be called from the main thread.
2685+ *
2686+ * @sa @ref monitor_properties
2687+ *
2688+ * @since Added in version 3.0.
2689+ *
2690+ * @ingroup monitor
2691+ */
2692+GLFWAPI void glfwGetMonitorPhysicalSize(GLFWmonitor* monitor, int* widthMM, int* heightMM);
2693+
2694+/*! @brief Retrieves the content scale for the specified monitor.
2695+ *
2696+ * This function retrieves the content scale for the specified monitor. The
2697+ * content scale is the ratio between the current DPI and the platform's
2698+ * default DPI. This is especially important for text and any UI elements. If
2699+ * the pixel dimensions of your UI scaled by this look appropriate on your
2700+ * machine then it should appear at a reasonable size on other machines
2701+ * regardless of their DPI and scaling settings. This relies on the system DPI
2702+ * and scaling settings being somewhat correct.
2703+ *
2704+ * The content scale may depend on both the monitor resolution and pixel
2705+ * density and on user settings. It may be very different from the raw DPI
2706+ * calculated from the physical size and current resolution.
2707+ *
2708+ * @param[in] monitor The monitor to query.
2709+ * @param[out] xscale Where to store the x-axis content scale, or `NULL`.
2710+ * @param[out] yscale Where to store the y-axis content scale, or `NULL`.
2711+ *
2712+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
2713+ * GLFW_PLATFORM_ERROR.
2714+ *
2715+ * @remark @wayland Fractional scaling information is not yet available for
2716+ * monitors, so this function only returns integer content scales.
2717+ *
2718+ * @thread_safety This function must only be called from the main thread.
2719+ *
2720+ * @sa @ref monitor_scale
2721+ * @sa @ref glfwGetWindowContentScale
2722+ *
2723+ * @since Added in version 3.3.
2724+ *
2725+ * @ingroup monitor
2726+ */
2727+GLFWAPI void glfwGetMonitorContentScale(GLFWmonitor* monitor, float* xscale, float* yscale);
2728+
2729+/*! @brief Returns the name of the specified monitor.
2730+ *
2731+ * This function returns a human-readable name, encoded as UTF-8, of the
2732+ * specified monitor. The name typically reflects the make and model of the
2733+ * monitor and is not guaranteed to be unique among the connected monitors.
2734+ *
2735+ * @param[in] monitor The monitor to query.
2736+ * @return The UTF-8 encoded name of the monitor, or `NULL` if an
2737+ * [error](@ref error_handling) occurred.
2738+ *
2739+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
2740+ *
2741+ * @pointer_lifetime The returned string is allocated and freed by GLFW. You
2742+ * should not free it yourself. It is valid until the specified monitor is
2743+ * disconnected or the library is terminated.
2744+ *
2745+ * @thread_safety This function must only be called from the main thread.
2746+ *
2747+ * @sa @ref monitor_properties
2748+ *
2749+ * @since Added in version 3.0.
2750+ *
2751+ * @ingroup monitor
2752+ */
2753+GLFWAPI const char* glfwGetMonitorName(GLFWmonitor* monitor);
2754+
2755+/*! @brief Sets the user pointer of the specified monitor.
2756+ *
2757+ * This function sets the user-defined pointer of the specified monitor. The
2758+ * current value is retained until the monitor is disconnected. The initial
2759+ * value is `NULL`.
2760+ *
2761+ * This function may be called from the monitor callback, even for a monitor
2762+ * that is being disconnected.
2763+ *
2764+ * @param[in] monitor The monitor whose pointer to set.
2765+ * @param[in] pointer The new value.
2766+ *
2767+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
2768+ *
2769+ * @thread_safety This function may be called from any thread. Access is not
2770+ * synchronized.
2771+ *
2772+ * @sa @ref monitor_userptr
2773+ * @sa @ref glfwGetMonitorUserPointer
2774+ *
2775+ * @since Added in version 3.3.
2776+ *
2777+ * @ingroup monitor
2778+ */
2779+GLFWAPI void glfwSetMonitorUserPointer(GLFWmonitor* monitor, void* pointer);
2780+
2781+/*! @brief Returns the user pointer of the specified monitor.
2782+ *
2783+ * This function returns the current value of the user-defined pointer of the
2784+ * specified monitor. The initial value is `NULL`.
2785+ *
2786+ * This function may be called from the monitor callback, even for a monitor
2787+ * that is being disconnected.
2788+ *
2789+ * @param[in] monitor The monitor whose pointer to return.
2790+ *
2791+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
2792+ *
2793+ * @thread_safety This function may be called from any thread. Access is not
2794+ * synchronized.
2795+ *
2796+ * @sa @ref monitor_userptr
2797+ * @sa @ref glfwSetMonitorUserPointer
2798+ *
2799+ * @since Added in version 3.3.
2800+ *
2801+ * @ingroup monitor
2802+ */
2803+GLFWAPI void* glfwGetMonitorUserPointer(GLFWmonitor* monitor);
2804+
2805+/*! @brief Sets the monitor configuration callback.
2806+ *
2807+ * This function sets the monitor configuration callback, or removes the
2808+ * currently set callback. This is called when a monitor is connected to or
2809+ * disconnected from the system.
2810+ *
2811+ * @param[in] callback The new callback, or `NULL` to remove the currently set
2812+ * callback.
2813+ * @return The previously set callback, or `NULL` if no callback was set or the
2814+ * library had not been [initialized](@ref intro_init).
2815+ *
2816+ * @callback_signature
2817+ * @code
2818+ * void function_name(GLFWmonitor* monitor, int event)
2819+ * @endcode
2820+ * For more information about the callback parameters, see the
2821+ * [function pointer type](@ref GLFWmonitorfun).
2822+ *
2823+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
2824+ *
2825+ * @thread_safety This function must only be called from the main thread.
2826+ *
2827+ * @sa @ref monitor_event
2828+ *
2829+ * @since Added in version 3.0.
2830+ *
2831+ * @ingroup monitor
2832+ */
2833+GLFWAPI GLFWmonitorfun glfwSetMonitorCallback(GLFWmonitorfun callback);
2834+
2835+/*! @brief Returns the available video modes for the specified monitor.
2836+ *
2837+ * This function returns an array of all video modes supported by the specified
2838+ * monitor. The returned array is sorted in ascending order, first by color
2839+ * bit depth (the sum of all channel depths), then by resolution area (the
2840+ * product of width and height), then resolution width and finally by refresh
2841+ * rate.
2842+ *
2843+ * @param[in] monitor The monitor to query.
2844+ * @param[out] count Where to store the number of video modes in the returned
2845+ * array. This is set to zero if an error occurred.
2846+ * @return An array of video modes, or `NULL` if an
2847+ * [error](@ref error_handling) occurred.
2848+ *
2849+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
2850+ * GLFW_PLATFORM_ERROR.
2851+ *
2852+ * @pointer_lifetime The returned array is allocated and freed by GLFW. You
2853+ * should not free it yourself. It is valid until the specified monitor is
2854+ * disconnected, this function is called again for that monitor or the library
2855+ * is terminated.
2856+ *
2857+ * @thread_safety This function must only be called from the main thread.
2858+ *
2859+ * @sa @ref monitor_modes
2860+ * @sa @ref glfwGetVideoMode
2861+ *
2862+ * @since Added in version 1.0.
2863+ * @glfw3 Changed to return an array of modes for a specific monitor.
2864+ *
2865+ * @ingroup monitor
2866+ */
2867+GLFWAPI const GLFWvidmode* glfwGetVideoModes(GLFWmonitor* monitor, int* count);
2868+
2869+/*! @brief Returns the current mode of the specified monitor.
2870+ *
2871+ * This function returns the current video mode of the specified monitor. If
2872+ * you have created a full screen window for that monitor, the return value
2873+ * will depend on whether that window is iconified.
2874+ *
2875+ * @param[in] monitor The monitor to query.
2876+ * @return The current mode of the monitor, or `NULL` if an
2877+ * [error](@ref error_handling) occurred.
2878+ *
2879+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
2880+ * GLFW_PLATFORM_ERROR.
2881+ *
2882+ * @pointer_lifetime The returned array is allocated and freed by GLFW. You
2883+ * should not free it yourself. It is valid until the specified monitor is
2884+ * disconnected or the library is terminated.
2885+ *
2886+ * @thread_safety This function must only be called from the main thread.
2887+ *
2888+ * @sa @ref monitor_modes
2889+ * @sa @ref glfwGetVideoModes
2890+ *
2891+ * @since Added in version 3.0. Replaces `glfwGetDesktopMode`.
2892+ *
2893+ * @ingroup monitor
2894+ */
2895+GLFWAPI const GLFWvidmode* glfwGetVideoMode(GLFWmonitor* monitor);
2896+
2897+/*! @brief Generates a gamma ramp and sets it for the specified monitor.
2898+ *
2899+ * This function generates an appropriately sized gamma ramp from the specified
2900+ * exponent and then calls @ref glfwSetGammaRamp with it. The value must be
2901+ * a finite number greater than zero.
2902+ *
2903+ * The software controlled gamma ramp is applied _in addition_ to the hardware
2904+ * gamma correction, which today is usually an approximation of sRGB gamma.
2905+ * This means that setting a perfectly linear ramp, or gamma 1.0, will produce
2906+ * the default (usually sRGB-like) behavior.
2907+ *
2908+ * For gamma correct rendering with OpenGL or OpenGL ES, see the @ref
2909+ * GLFW_SRGB_CAPABLE hint.
2910+ *
2911+ * @param[in] monitor The monitor whose gamma ramp to set.
2912+ * @param[in] gamma The desired exponent.
2913+ *
2914+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref GLFW_INVALID_VALUE,
2915+ * @ref GLFW_PLATFORM_ERROR and @ref GLFW_FEATURE_UNAVAILABLE (see remarks).
2916+ *
2917+ * @remark @wayland Gamma handling is a privileged protocol, this function
2918+ * will thus never be implemented and emits @ref GLFW_FEATURE_UNAVAILABLE.
2919+ *
2920+ * @thread_safety This function must only be called from the main thread.
2921+ *
2922+ * @sa @ref monitor_gamma
2923+ *
2924+ * @since Added in version 3.0.
2925+ *
2926+ * @ingroup monitor
2927+ */
2928+GLFWAPI void glfwSetGamma(GLFWmonitor* monitor, float gamma);
2929+
2930+/*! @brief Returns the current gamma ramp for the specified monitor.
2931+ *
2932+ * This function returns the current gamma ramp of the specified monitor.
2933+ *
2934+ * @param[in] monitor The monitor to query.
2935+ * @return The current gamma ramp, or `NULL` if an
2936+ * [error](@ref error_handling) occurred.
2937+ *
2938+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref GLFW_PLATFORM_ERROR
2939+ * and @ref GLFW_FEATURE_UNAVAILABLE (see remarks).
2940+ *
2941+ * @remark @wayland Gamma handling is a privileged protocol, this function
2942+ * will thus never be implemented and emits @ref GLFW_FEATURE_UNAVAILABLE while
2943+ * returning `NULL`.
2944+ *
2945+ * @pointer_lifetime The returned structure and its arrays are allocated and
2946+ * freed by GLFW. You should not free them yourself. They are valid until the
2947+ * specified monitor is disconnected, this function is called again for that
2948+ * monitor or the library is terminated.
2949+ *
2950+ * @thread_safety This function must only be called from the main thread.
2951+ *
2952+ * @sa @ref monitor_gamma
2953+ *
2954+ * @since Added in version 3.0.
2955+ *
2956+ * @ingroup monitor
2957+ */
2958+GLFWAPI const GLFWgammaramp* glfwGetGammaRamp(GLFWmonitor* monitor);
2959+
2960+/*! @brief Sets the current gamma ramp for the specified monitor.
2961+ *
2962+ * This function sets the current gamma ramp for the specified monitor. The
2963+ * original gamma ramp for that monitor is saved by GLFW the first time this
2964+ * function is called and is restored by @ref glfwTerminate.
2965+ *
2966+ * The software controlled gamma ramp is applied _in addition_ to the hardware
2967+ * gamma correction, which today is usually an approximation of sRGB gamma.
2968+ * This means that setting a perfectly linear ramp, or gamma 1.0, will produce
2969+ * the default (usually sRGB-like) behavior.
2970+ *
2971+ * For gamma correct rendering with OpenGL or OpenGL ES, see the @ref
2972+ * GLFW_SRGB_CAPABLE hint.
2973+ *
2974+ * @param[in] monitor The monitor whose gamma ramp to set.
2975+ * @param[in] ramp The gamma ramp to use.
2976+ *
2977+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref GLFW_PLATFORM_ERROR
2978+ * and @ref GLFW_FEATURE_UNAVAILABLE (see remarks).
2979+ *
2980+ * @remark The size of the specified gamma ramp should match the size of the
2981+ * current ramp for that monitor.
2982+ *
2983+ * @remark @win32 The gamma ramp size must be 256.
2984+ *
2985+ * @remark @wayland Gamma handling is a privileged protocol, this function
2986+ * will thus never be implemented and emits @ref GLFW_FEATURE_UNAVAILABLE.
2987+ *
2988+ * @pointer_lifetime The specified gamma ramp is copied before this function
2989+ * returns.
2990+ *
2991+ * @thread_safety This function must only be called from the main thread.
2992+ *
2993+ * @sa @ref monitor_gamma
2994+ *
2995+ * @since Added in version 3.0.
2996+ *
2997+ * @ingroup monitor
2998+ */
2999+GLFWAPI void glfwSetGammaRamp(GLFWmonitor* monitor, const GLFWgammaramp* ramp);
3000+
3001+/*! @brief Resets all window hints to their default values.
3002+ *
3003+ * This function resets all window hints to their
3004+ * [default values](@ref window_hints_values).
3005+ *
3006+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
3007+ *
3008+ * @thread_safety This function must only be called from the main thread.
3009+ *
3010+ * @sa @ref window_hints
3011+ * @sa @ref glfwWindowHint
3012+ * @sa @ref glfwWindowHintString
3013+ *
3014+ * @since Added in version 3.0.
3015+ *
3016+ * @ingroup window
3017+ */
3018+GLFWAPI void glfwDefaultWindowHints(void);
3019+
3020+/*! @brief Sets the specified window hint to the desired value.
3021+ *
3022+ * This function sets hints for the next call to @ref glfwCreateWindow. The
3023+ * hints, once set, retain their values until changed by a call to this
3024+ * function or @ref glfwDefaultWindowHints, or until the library is terminated.
3025+ *
3026+ * Only integer value hints can be set with this function. String value hints
3027+ * are set with @ref glfwWindowHintString.
3028+ *
3029+ * This function does not check whether the specified hint values are valid.
3030+ * If you set hints to invalid values this will instead be reported by the next
3031+ * call to @ref glfwCreateWindow.
3032+ *
3033+ * Some hints are platform specific. These may be set on any platform but they
3034+ * will only affect their specific platform. Other platforms will ignore them.
3035+ * Setting these hints requires no platform specific headers or functions.
3036+ *
3037+ * @param[in] hint The [window hint](@ref window_hints) to set.
3038+ * @param[in] value The new value of the window hint.
3039+ *
3040+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
3041+ * GLFW_INVALID_ENUM.
3042+ *
3043+ * @thread_safety This function must only be called from the main thread.
3044+ *
3045+ * @sa @ref window_hints
3046+ * @sa @ref glfwWindowHintString
3047+ * @sa @ref glfwDefaultWindowHints
3048+ *
3049+ * @since Added in version 3.0. Replaces `glfwOpenWindowHint`.
3050+ *
3051+ * @ingroup window
3052+ */
3053+GLFWAPI void glfwWindowHint(int hint, int value);
3054+
3055+/*! @brief Sets the specified window hint to the desired value.
3056+ *
3057+ * This function sets hints for the next call to @ref glfwCreateWindow. The
3058+ * hints, once set, retain their values until changed by a call to this
3059+ * function or @ref glfwDefaultWindowHints, or until the library is terminated.
3060+ *
3061+ * Only string type hints can be set with this function. Integer value hints
3062+ * are set with @ref glfwWindowHint.
3063+ *
3064+ * This function does not check whether the specified hint values are valid.
3065+ * If you set hints to invalid values this will instead be reported by the next
3066+ * call to @ref glfwCreateWindow.
3067+ *
3068+ * Some hints are platform specific. These may be set on any platform but they
3069+ * will only affect their specific platform. Other platforms will ignore them.
3070+ * Setting these hints requires no platform specific headers or functions.
3071+ *
3072+ * @param[in] hint The [window hint](@ref window_hints) to set.
3073+ * @param[in] value The new value of the window hint.
3074+ *
3075+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
3076+ * GLFW_INVALID_ENUM.
3077+ *
3078+ * @pointer_lifetime The specified string is copied before this function
3079+ * returns.
3080+ *
3081+ * @thread_safety This function must only be called from the main thread.
3082+ *
3083+ * @sa @ref window_hints
3084+ * @sa @ref glfwWindowHint
3085+ * @sa @ref glfwDefaultWindowHints
3086+ *
3087+ * @since Added in version 3.3.
3088+ *
3089+ * @ingroup window
3090+ */
3091+GLFWAPI void glfwWindowHintString(int hint, const char* value);
3092+
3093+/*! @brief Creates a window and its associated context.
3094+ *
3095+ * This function creates a window and its associated OpenGL or OpenGL ES
3096+ * context. Most of the options controlling how the window and its context
3097+ * should be created are specified with [window hints](@ref window_hints).
3098+ *
3099+ * Successful creation does not change which context is current. Before you
3100+ * can use the newly created context, you need to
3101+ * [make it current](@ref context_current). For information about the `share`
3102+ * parameter, see @ref context_sharing.
3103+ *
3104+ * The created window, framebuffer and context may differ from what you
3105+ * requested, as not all parameters and hints are
3106+ * [hard constraints](@ref window_hints_hard). This includes the size of the
3107+ * window, especially for full screen windows. To query the actual attributes
3108+ * of the created window, framebuffer and context, see @ref
3109+ * glfwGetWindowAttrib, @ref glfwGetWindowSize and @ref glfwGetFramebufferSize.
3110+ *
3111+ * To create a full screen window, you need to specify the monitor the window
3112+ * will cover. If no monitor is specified, the window will be windowed mode.
3113+ * Unless you have a way for the user to choose a specific monitor, it is
3114+ * recommended that you pick the primary monitor. For more information on how
3115+ * to query connected monitors, see @ref monitor_monitors.
3116+ *
3117+ * For full screen windows, the specified size becomes the resolution of the
3118+ * window's _desired video mode_. As long as a full screen window is not
3119+ * iconified, the supported video mode most closely matching the desired video
3120+ * mode is set for the specified monitor. For more information about full
3121+ * screen windows, including the creation of so called _windowed full screen_
3122+ * or _borderless full screen_ windows, see @ref window_windowed_full_screen.
3123+ *
3124+ * Once you have created the window, you can switch it between windowed and
3125+ * full screen mode with @ref glfwSetWindowMonitor. This will not affect its
3126+ * OpenGL or OpenGL ES context.
3127+ *
3128+ * By default, newly created windows use the placement recommended by the
3129+ * window system. To create the window at a specific position, set the @ref
3130+ * GLFW_POSITION_X and @ref GLFW_POSITION_Y window hints before creation. To
3131+ * restore the default behavior, set either or both hints back to
3132+ * `GLFW_ANY_POSITION`.
3133+ *
3134+ * As long as at least one full screen window is not iconified, the screensaver
3135+ * is prohibited from starting.
3136+ *
3137+ * Window systems put limits on window sizes. Very large or very small window
3138+ * dimensions may be overridden by the window system on creation. Check the
3139+ * actual [size](@ref window_size) after creation.
3140+ *
3141+ * The [swap interval](@ref buffer_swap) is not set during window creation and
3142+ * the initial value may vary depending on driver settings and defaults.
3143+ *
3144+ * @param[in] width The desired width, in screen coordinates, of the window.
3145+ * This must be greater than zero.
3146+ * @param[in] height The desired height, in screen coordinates, of the window.
3147+ * This must be greater than zero.
3148+ * @param[in] title The initial, UTF-8 encoded window title.
3149+ * @param[in] monitor The monitor to use for full screen mode, or `NULL` for
3150+ * windowed mode.
3151+ * @param[in] share The window whose context to share resources with, or `NULL`
3152+ * to not share resources.
3153+ * @return The handle of the created window, or `NULL` if an
3154+ * [error](@ref error_handling) occurred.
3155+ *
3156+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref
3157+ * GLFW_INVALID_ENUM, @ref GLFW_INVALID_VALUE, @ref GLFW_API_UNAVAILABLE, @ref
3158+ * GLFW_VERSION_UNAVAILABLE, @ref GLFW_FORMAT_UNAVAILABLE, @ref
3159+ * GLFW_NO_WINDOW_CONTEXT and @ref GLFW_PLATFORM_ERROR.
3160+ *
3161+ * @remark @win32 Window creation will fail if the Microsoft GDI software
3162+ * OpenGL implementation is the only one available.
3163+ *
3164+ * @remark @win32 If the executable has an icon resource named `GLFW_ICON,` it
3165+ * will be set as the initial icon for the window. If no such icon is present,
3166+ * the `IDI_APPLICATION` icon will be used instead. To set a different icon,
3167+ * see @ref glfwSetWindowIcon.
3168+ *
3169+ * @remark @win32 The context to share resources with must not be current on
3170+ * any other thread.
3171+ *
3172+ * @remark @macos The OS only supports core profile contexts for OpenGL
3173+ * versions 3.2 and later. Before creating an OpenGL context of version 3.2 or
3174+ * later you must set the [GLFW_OPENGL_PROFILE](@ref GLFW_OPENGL_PROFILE_hint)
3175+ * hint accordingly. OpenGL 3.0 and 3.1 contexts are not supported at all
3176+ * on macOS.
3177+ *
3178+ * @remark @macos The GLFW window has no icon, as it is not a document
3179+ * window, but the dock icon will be the same as the application bundle's icon.
3180+ * For more information on bundles, see the
3181+ * [Bundle Programming Guide][bundle-guide] in the Mac Developer Library.
3182+ *
3183+ * [bundle-guide]: https://developer.apple.com/library/mac/documentation/CoreFoundation/Conceptual/CFBundles/
3184+ *
3185+ * @remark @macos On OS X 10.10 and later the window frame will not be rendered
3186+ * at full resolution on Retina displays unless the
3187+ * [GLFW_SCALE_FRAMEBUFFER](@ref GLFW_SCALE_FRAMEBUFFER_hint)
3188+ * hint is `GLFW_TRUE` and the `NSHighResolutionCapable` key is enabled in the
3189+ * application bundle's `Info.plist`. For more information, see
3190+ * [High Resolution Guidelines for OS X][hidpi-guide] in the Mac Developer
3191+ * Library. The GLFW test and example programs use a custom `Info.plist`
3192+ * template for this, which can be found as `CMake/Info.plist.in` in the source
3193+ * tree.
3194+ *
3195+ * [hidpi-guide]: https://developer.apple.com/library/mac/documentation/GraphicsAnimation/Conceptual/HighResolutionOSX/Explained/Explained.html
3196+ *
3197+ * @remark @macos When activating frame autosaving with
3198+ * [GLFW_COCOA_FRAME_NAME](@ref GLFW_COCOA_FRAME_NAME_hint), the specified
3199+ * window size and position may be overridden by previously saved values.
3200+ *
3201+ * @remark @wayland GLFW uses [libdecor][] where available to create its window
3202+ * decorations. This in turn uses server-side XDG decorations where available
3203+ * and provides high quality client-side decorations on compositors like GNOME.
3204+ * If both XDG decorations and libdecor are unavailable, GLFW falls back to
3205+ * a very simple set of window decorations that only support moving, resizing
3206+ * and the window manager's right-click menu.
3207+ *
3208+ * [libdecor]: https://gitlab.freedesktop.org/libdecor/libdecor
3209+ *
3210+ * @remark @x11 Some window managers will not respect the placement of
3211+ * initially hidden windows.
3212+ *
3213+ * @remark @x11 Due to the asynchronous nature of X11, it may take a moment for
3214+ * a window to reach its requested state. This means you may not be able to
3215+ * query the final size, position or other attributes directly after window
3216+ * creation.
3217+ *
3218+ * @remark @x11 The class part of the `WM_CLASS` window property will by
3219+ * default be set to the window title passed to this function. The instance
3220+ * part will use the contents of the `RESOURCE_NAME` environment variable, if
3221+ * present and not empty, or fall back to the window title. Set the
3222+ * [GLFW_X11_CLASS_NAME](@ref GLFW_X11_CLASS_NAME_hint) and
3223+ * [GLFW_X11_INSTANCE_NAME](@ref GLFW_X11_INSTANCE_NAME_hint) window hints to
3224+ * override this.
3225+ *
3226+ * @thread_safety This function must only be called from the main thread.
3227+ *
3228+ * @sa @ref window_creation
3229+ * @sa @ref glfwDestroyWindow
3230+ *
3231+ * @since Added in version 3.0. Replaces `glfwOpenWindow`.
3232+ *
3233+ * @ingroup window
3234+ */
3235+GLFWAPI GLFWwindow* glfwCreateWindow(int width, int height, const char* title, GLFWmonitor* monitor, GLFWwindow* share);
3236+
3237+/*! @brief Destroys the specified window and its context.
3238+ *
3239+ * This function destroys the specified window and its context. On calling
3240+ * this function, no further callbacks will be called for that window.
3241+ *
3242+ * If the context of the specified window is current on the main thread, it is
3243+ * detached before being destroyed.
3244+ *
3245+ * @param[in] window The window to destroy.
3246+ *
3247+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
3248+ * GLFW_PLATFORM_ERROR.
3249+ *
3250+ * @note The context of the specified window must not be current on any other
3251+ * thread when this function is called.
3252+ *
3253+ * @reentrancy This function must not be called from a callback.
3254+ *
3255+ * @thread_safety This function must only be called from the main thread.
3256+ *
3257+ * @sa @ref window_creation
3258+ * @sa @ref glfwCreateWindow
3259+ *
3260+ * @since Added in version 3.0. Replaces `glfwCloseWindow`.
3261+ *
3262+ * @ingroup window
3263+ */
3264+GLFWAPI void glfwDestroyWindow(GLFWwindow* window);
3265+
3266+/*! @brief Checks the close flag of the specified window.
3267+ *
3268+ * This function returns the value of the close flag of the specified window.
3269+ *
3270+ * @param[in] window The window to query.
3271+ * @return The value of the close flag.
3272+ *
3273+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
3274+ *
3275+ * @thread_safety This function may be called from any thread. Access is not
3276+ * synchronized.
3277+ *
3278+ * @sa @ref window_close
3279+ *
3280+ * @since Added in version 3.0.
3281+ *
3282+ * @ingroup window
3283+ */
3284+GLFWAPI int glfwWindowShouldClose(GLFWwindow* window);
3285+
3286+/*! @brief Sets the close flag of the specified window.
3287+ *
3288+ * This function sets the value of the close flag of the specified window.
3289+ * This can be used to override the user's attempt to close the window, or
3290+ * to signal that it should be closed.
3291+ *
3292+ * @param[in] window The window whose flag to change.
3293+ * @param[in] value The new value.
3294+ *
3295+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
3296+ *
3297+ * @thread_safety This function may be called from any thread. Access is not
3298+ * synchronized.
3299+ *
3300+ * @sa @ref window_close
3301+ *
3302+ * @since Added in version 3.0.
3303+ *
3304+ * @ingroup window
3305+ */
3306+GLFWAPI void glfwSetWindowShouldClose(GLFWwindow* window, int value);
3307+
3308+/*! @brief Returns the title of the specified window.
3309+ *
3310+ * This function returns the window title, encoded as UTF-8, of the specified
3311+ * window. This is the title set previously by @ref glfwCreateWindow
3312+ * or @ref glfwSetWindowTitle.
3313+ *
3314+ * @param[in] window The window to query.
3315+ * @return The UTF-8 encoded window title, or `NULL` if an
3316+ * [error](@ref error_handling) occurred.
3317+ *
3318+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
3319+ *
3320+ * @remark The returned title is currently a copy of the title last set by @ref
3321+ * glfwCreateWindow or @ref glfwSetWindowTitle. It does not include any
3322+ * additional text which may be appended by the platform or another program.
3323+ *
3324+ * @pointer_lifetime The returned string is allocated and freed by GLFW. You
3325+ * should not free it yourself. It is valid until the next call to @ref
3326+ * glfwGetWindowTitle or @ref glfwSetWindowTitle, or until the library is
3327+ * terminated.
3328+ *
3329+ * @thread_safety This function must only be called from the main thread.
3330+ *
3331+ * @sa @ref window_title
3332+ * @sa @ref glfwSetWindowTitle
3333+ *
3334+ * @since Added in version 3.4.
3335+ *
3336+ * @ingroup window
3337+ */
3338+GLFWAPI const char* glfwGetWindowTitle(GLFWwindow* window);
3339+
3340+/*! @brief Sets the title of the specified window.
3341+ *
3342+ * This function sets the window title, encoded as UTF-8, of the specified
3343+ * window.
3344+ *
3345+ * @param[in] window The window whose title to change.
3346+ * @param[in] title The UTF-8 encoded window title.
3347+ *
3348+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
3349+ * GLFW_PLATFORM_ERROR.
3350+ *
3351+ * @remark @macos The window title will not be updated until the next time you
3352+ * process events.
3353+ *
3354+ * @thread_safety This function must only be called from the main thread.
3355+ *
3356+ * @sa @ref window_title
3357+ * @sa @ref glfwGetWindowTitle
3358+ *
3359+ * @since Added in version 1.0.
3360+ * @glfw3 Added window handle parameter.
3361+ *
3362+ * @ingroup window
3363+ */
3364+GLFWAPI void glfwSetWindowTitle(GLFWwindow* window, const char* title);
3365+
3366+/*! @brief Sets the icon for the specified window.
3367+ *
3368+ * This function sets the icon of the specified window. If passed an array of
3369+ * candidate images, those of or closest to the sizes desired by the system are
3370+ * selected. If no images are specified, the window reverts to its default
3371+ * icon.
3372+ *
3373+ * The pixels are 32-bit, little-endian, non-premultiplied RGBA, i.e. eight
3374+ * bits per channel with the red channel first. They are arranged canonically
3375+ * as packed sequential rows, starting from the top-left corner.
3376+ *
3377+ * The desired image sizes varies depending on platform and system settings.
3378+ * The selected images will be rescaled as needed. Good sizes include 16x16,
3379+ * 32x32 and 48x48.
3380+ *
3381+ * @param[in] window The window whose icon to set.
3382+ * @param[in] count The number of images in the specified array, or zero to
3383+ * revert to the default window icon.
3384+ * @param[in] images The images to create the icon from. This is ignored if
3385+ * count is zero.
3386+ *
3387+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref
3388+ * GLFW_INVALID_VALUE, @ref GLFW_PLATFORM_ERROR and @ref
3389+ * GLFW_FEATURE_UNAVAILABLE (see remarks).
3390+ *
3391+ * @pointer_lifetime The specified image data is copied before this function
3392+ * returns.
3393+ *
3394+ * @remark @macos Regular windows do not have icons on macOS. This function
3395+ * will emit @ref GLFW_FEATURE_UNAVAILABLE. The dock icon will be the same as
3396+ * the application bundle's icon. For more information on bundles, see the
3397+ * [Bundle Programming Guide][bundle-guide] in the Mac Developer Library.
3398+ *
3399+ * [bundle-guide]: https://developer.apple.com/library/mac/documentation/CoreFoundation/Conceptual/CFBundles/
3400+ *
3401+ * @remark @wayland There is no existing protocol to change an icon, the
3402+ * window will thus inherit the one defined in the application's desktop file.
3403+ * This function will emit @ref GLFW_FEATURE_UNAVAILABLE.
3404+ *
3405+ * @thread_safety This function must only be called from the main thread.
3406+ *
3407+ * @sa @ref window_icon
3408+ *
3409+ * @since Added in version 3.2.
3410+ *
3411+ * @ingroup window
3412+ */
3413+GLFWAPI void glfwSetWindowIcon(GLFWwindow* window, int count, const GLFWimage* images);
3414+
3415+/*! @brief Retrieves the position of the content area of the specified window.
3416+ *
3417+ * This function retrieves the position, in screen coordinates, of the
3418+ * upper-left corner of the content area of the specified window.
3419+ *
3420+ * Any or all of the position arguments may be `NULL`. If an error occurs, all
3421+ * non-`NULL` position arguments will be set to zero.
3422+ *
3423+ * @param[in] window The window to query.
3424+ * @param[out] xpos Where to store the x-coordinate of the upper-left corner of
3425+ * the content area, or `NULL`.
3426+ * @param[out] ypos Where to store the y-coordinate of the upper-left corner of
3427+ * the content area, or `NULL`.
3428+ *
3429+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref
3430+ * GLFW_PLATFORM_ERROR and @ref GLFW_FEATURE_UNAVAILABLE (see remarks).
3431+ *
3432+ * @remark @wayland There is no way for an application to retrieve the global
3433+ * position of its windows. This function will emit @ref
3434+ * GLFW_FEATURE_UNAVAILABLE.
3435+ *
3436+ * @thread_safety This function must only be called from the main thread.
3437+ *
3438+ * @sa @ref window_pos
3439+ * @sa @ref glfwSetWindowPos
3440+ *
3441+ * @since Added in version 3.0.
3442+ *
3443+ * @ingroup window
3444+ */
3445+GLFWAPI void glfwGetWindowPos(GLFWwindow* window, int* xpos, int* ypos);
3446+
3447+/*! @brief Sets the position of the content area of the specified window.
3448+ *
3449+ * This function sets the position, in screen coordinates, of the upper-left
3450+ * corner of the content area of the specified windowed mode window. If the
3451+ * window is a full screen window, this function does nothing.
3452+ *
3453+ * __Do not use this function__ to move an already visible window unless you
3454+ * have very good reasons for doing so, as it will confuse and annoy the user.
3455+ *
3456+ * The window manager may put limits on what positions are allowed. GLFW
3457+ * cannot and should not override these limits.
3458+ *
3459+ * @param[in] window The window to query.
3460+ * @param[in] xpos The x-coordinate of the upper-left corner of the content area.
3461+ * @param[in] ypos The y-coordinate of the upper-left corner of the content area.
3462+ *
3463+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref
3464+ * GLFW_PLATFORM_ERROR and @ref GLFW_FEATURE_UNAVAILABLE (see remarks).
3465+ *
3466+ * @remark @wayland There is no way for an application to set the global
3467+ * position of its windows. This function will emit @ref
3468+ * GLFW_FEATURE_UNAVAILABLE.
3469+ *
3470+ * @thread_safety This function must only be called from the main thread.
3471+ *
3472+ * @sa @ref window_pos
3473+ * @sa @ref glfwGetWindowPos
3474+ *
3475+ * @since Added in version 1.0.
3476+ * @glfw3 Added window handle parameter.
3477+ *
3478+ * @ingroup window
3479+ */
3480+GLFWAPI void glfwSetWindowPos(GLFWwindow* window, int xpos, int ypos);
3481+
3482+/*! @brief Retrieves the size of the content area of the specified window.
3483+ *
3484+ * This function retrieves the size, in screen coordinates, of the content area
3485+ * of the specified window. If you wish to retrieve the size of the
3486+ * framebuffer of the window in pixels, see @ref glfwGetFramebufferSize.
3487+ *
3488+ * Any or all of the size arguments may be `NULL`. If an error occurs, all
3489+ * non-`NULL` size arguments will be set to zero.
3490+ *
3491+ * @param[in] window The window whose size to retrieve.
3492+ * @param[out] width Where to store the width, in screen coordinates, of the
3493+ * content area, or `NULL`.
3494+ * @param[out] height Where to store the height, in screen coordinates, of the
3495+ * content area, or `NULL`.
3496+ *
3497+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
3498+ * GLFW_PLATFORM_ERROR.
3499+ *
3500+ * @thread_safety This function must only be called from the main thread.
3501+ *
3502+ * @sa @ref window_size
3503+ * @sa @ref glfwSetWindowSize
3504+ *
3505+ * @since Added in version 1.0.
3506+ * @glfw3 Added window handle parameter.
3507+ *
3508+ * @ingroup window
3509+ */
3510+GLFWAPI void glfwGetWindowSize(GLFWwindow* window, int* width, int* height);
3511+
3512+/*! @brief Sets the size limits of the specified window.
3513+ *
3514+ * This function sets the size limits of the content area of the specified
3515+ * window. If the window is full screen, the size limits only take effect
3516+ * once it is made windowed. If the window is not resizable, this function
3517+ * does nothing.
3518+ *
3519+ * The size limits are applied immediately to a windowed mode window and may
3520+ * cause it to be resized.
3521+ *
3522+ * The maximum dimensions must be greater than or equal to the minimum
3523+ * dimensions and all must be greater than or equal to zero.
3524+ *
3525+ * @param[in] window The window to set limits for.
3526+ * @param[in] minwidth The minimum width, in screen coordinates, of the content
3527+ * area, or `GLFW_DONT_CARE`.
3528+ * @param[in] minheight The minimum height, in screen coordinates, of the
3529+ * content area, or `GLFW_DONT_CARE`.
3530+ * @param[in] maxwidth The maximum width, in screen coordinates, of the content
3531+ * area, or `GLFW_DONT_CARE`.
3532+ * @param[in] maxheight The maximum height, in screen coordinates, of the
3533+ * content area, or `GLFW_DONT_CARE`.
3534+ *
3535+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref
3536+ * GLFW_INVALID_VALUE and @ref GLFW_PLATFORM_ERROR.
3537+ *
3538+ * @remark If you set size limits and an aspect ratio that conflict, the
3539+ * results are undefined.
3540+ *
3541+ * @remark @wayland The size limits will not be applied until the window is
3542+ * actually resized, either by the user or by the compositor.
3543+ *
3544+ * @thread_safety This function must only be called from the main thread.
3545+ *
3546+ * @sa @ref window_sizelimits
3547+ * @sa @ref glfwSetWindowAspectRatio
3548+ *
3549+ * @since Added in version 3.2.
3550+ *
3551+ * @ingroup window
3552+ */
3553+GLFWAPI void glfwSetWindowSizeLimits(GLFWwindow* window, int minwidth, int minheight, int maxwidth, int maxheight);
3554+
3555+/*! @brief Sets the aspect ratio of the specified window.
3556+ *
3557+ * This function sets the required aspect ratio of the content area of the
3558+ * specified window. If the window is full screen, the aspect ratio only takes
3559+ * effect once it is made windowed. If the window is not resizable, this
3560+ * function does nothing.
3561+ *
3562+ * The aspect ratio is specified as a numerator and a denominator and both
3563+ * values must be greater than zero. For example, the common 16:9 aspect ratio
3564+ * is specified as 16 and 9, respectively.
3565+ *
3566+ * If the numerator and denominator is set to `GLFW_DONT_CARE` then the aspect
3567+ * ratio limit is disabled.
3568+ *
3569+ * The aspect ratio is applied immediately to a windowed mode window and may
3570+ * cause it to be resized.
3571+ *
3572+ * @param[in] window The window to set limits for.
3573+ * @param[in] numer The numerator of the desired aspect ratio, or
3574+ * `GLFW_DONT_CARE`.
3575+ * @param[in] denom The denominator of the desired aspect ratio, or
3576+ * `GLFW_DONT_CARE`.
3577+ *
3578+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref
3579+ * GLFW_INVALID_VALUE and @ref GLFW_PLATFORM_ERROR.
3580+ *
3581+ * @remark If you set size limits and an aspect ratio that conflict, the
3582+ * results are undefined.
3583+ *
3584+ * @remark @wayland The aspect ratio will not be applied until the window is
3585+ * actually resized, either by the user or by the compositor.
3586+ *
3587+ * @thread_safety This function must only be called from the main thread.
3588+ *
3589+ * @sa @ref window_sizelimits
3590+ * @sa @ref glfwSetWindowSizeLimits
3591+ *
3592+ * @since Added in version 3.2.
3593+ *
3594+ * @ingroup window
3595+ */
3596+GLFWAPI void glfwSetWindowAspectRatio(GLFWwindow* window, int numer, int denom);
3597+
3598+/*! @brief Sets the size of the content area of the specified window.
3599+ *
3600+ * This function sets the size, in screen coordinates, of the content area of
3601+ * the specified window.
3602+ *
3603+ * For full screen windows, this function updates the resolution of its desired
3604+ * video mode and switches to the video mode closest to it, without affecting
3605+ * the window's context. As the context is unaffected, the bit depths of the
3606+ * framebuffer remain unchanged.
3607+ *
3608+ * If you wish to update the refresh rate of the desired video mode in addition
3609+ * to its resolution, see @ref glfwSetWindowMonitor.
3610+ *
3611+ * The window manager may put limits on what sizes are allowed. GLFW cannot
3612+ * and should not override these limits.
3613+ *
3614+ * @param[in] window The window to resize.
3615+ * @param[in] width The desired width, in screen coordinates, of the window
3616+ * content area.
3617+ * @param[in] height The desired height, in screen coordinates, of the window
3618+ * content area.
3619+ *
3620+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
3621+ * GLFW_PLATFORM_ERROR.
3622+ *
3623+ * @thread_safety This function must only be called from the main thread.
3624+ *
3625+ * @sa @ref window_size
3626+ * @sa @ref glfwGetWindowSize
3627+ * @sa @ref glfwSetWindowMonitor
3628+ *
3629+ * @since Added in version 1.0.
3630+ * @glfw3 Added window handle parameter.
3631+ *
3632+ * @ingroup window
3633+ */
3634+GLFWAPI void glfwSetWindowSize(GLFWwindow* window, int width, int height);
3635+
3636+/*! @brief Retrieves the size of the framebuffer of the specified window.
3637+ *
3638+ * This function retrieves the size, in pixels, of the framebuffer of the
3639+ * specified window. If you wish to retrieve the size of the window in screen
3640+ * coordinates, see @ref glfwGetWindowSize.
3641+ *
3642+ * Any or all of the size arguments may be `NULL`. If an error occurs, all
3643+ * non-`NULL` size arguments will be set to zero.
3644+ *
3645+ * @param[in] window The window whose framebuffer to query.
3646+ * @param[out] width Where to store the width, in pixels, of the framebuffer,
3647+ * or `NULL`.
3648+ * @param[out] height Where to store the height, in pixels, of the framebuffer,
3649+ * or `NULL`.
3650+ *
3651+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
3652+ * GLFW_PLATFORM_ERROR.
3653+ *
3654+ * @thread_safety This function must only be called from the main thread.
3655+ *
3656+ * @sa @ref window_fbsize
3657+ * @sa @ref glfwSetFramebufferSizeCallback
3658+ *
3659+ * @since Added in version 3.0.
3660+ *
3661+ * @ingroup window
3662+ */
3663+GLFWAPI void glfwGetFramebufferSize(GLFWwindow* window, int* width, int* height);
3664+
3665+/*! @brief Retrieves the size of the frame of the window.
3666+ *
3667+ * This function retrieves the size, in screen coordinates, of each edge of the
3668+ * frame of the specified window. This size includes the title bar, if the
3669+ * window has one. The size of the frame may vary depending on the
3670+ * [window-related hints](@ref window_hints_wnd) used to create it.
3671+ *
3672+ * Because this function retrieves the size of each window frame edge and not
3673+ * the offset along a particular coordinate axis, the retrieved values will
3674+ * always be zero or positive.
3675+ *
3676+ * Any or all of the size arguments may be `NULL`. If an error occurs, all
3677+ * non-`NULL` size arguments will be set to zero.
3678+ *
3679+ * @param[in] window The window whose frame size to query.
3680+ * @param[out] left Where to store the size, in screen coordinates, of the left
3681+ * edge of the window frame, or `NULL`.
3682+ * @param[out] top Where to store the size, in screen coordinates, of the top
3683+ * edge of the window frame, or `NULL`.
3684+ * @param[out] right Where to store the size, in screen coordinates, of the
3685+ * right edge of the window frame, or `NULL`.
3686+ * @param[out] bottom Where to store the size, in screen coordinates, of the
3687+ * bottom edge of the window frame, or `NULL`.
3688+ *
3689+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
3690+ * GLFW_PLATFORM_ERROR.
3691+ *
3692+ * @thread_safety This function must only be called from the main thread.
3693+ *
3694+ * @sa @ref window_size
3695+ *
3696+ * @since Added in version 3.1.
3697+ *
3698+ * @ingroup window
3699+ */
3700+GLFWAPI void glfwGetWindowFrameSize(GLFWwindow* window, int* left, int* top, int* right, int* bottom);
3701+
3702+/*! @brief Retrieves the content scale for the specified window.
3703+ *
3704+ * This function retrieves the content scale for the specified window. The
3705+ * content scale is the ratio between the current DPI and the platform's
3706+ * default DPI. This is especially important for text and any UI elements. If
3707+ * the pixel dimensions of your UI scaled by this look appropriate on your
3708+ * machine then it should appear at a reasonable size on other machines
3709+ * regardless of their DPI and scaling settings. This relies on the system DPI
3710+ * and scaling settings being somewhat correct.
3711+ *
3712+ * On platforms where each monitors can have its own content scale, the window
3713+ * content scale will depend on which monitor the system considers the window
3714+ * to be on.
3715+ *
3716+ * @param[in] window The window to query.
3717+ * @param[out] xscale Where to store the x-axis content scale, or `NULL`.
3718+ * @param[out] yscale Where to store the y-axis content scale, or `NULL`.
3719+ *
3720+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
3721+ * GLFW_PLATFORM_ERROR.
3722+ *
3723+ * @thread_safety This function must only be called from the main thread.
3724+ *
3725+ * @sa @ref window_scale
3726+ * @sa @ref glfwSetWindowContentScaleCallback
3727+ * @sa @ref glfwGetMonitorContentScale
3728+ *
3729+ * @since Added in version 3.3.
3730+ *
3731+ * @ingroup window
3732+ */
3733+GLFWAPI void glfwGetWindowContentScale(GLFWwindow* window, float* xscale, float* yscale);
3734+
3735+/*! @brief Returns the opacity of the whole window.
3736+ *
3737+ * This function returns the opacity of the window, including any decorations.
3738+ *
3739+ * The opacity (or alpha) value is a positive finite number between zero and
3740+ * one, where zero is fully transparent and one is fully opaque. If the system
3741+ * does not support whole window transparency, this function always returns one.
3742+ *
3743+ * The initial opacity value for newly created windows is one.
3744+ *
3745+ * @param[in] window The window to query.
3746+ * @return The opacity value of the specified window.
3747+ *
3748+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
3749+ * GLFW_PLATFORM_ERROR.
3750+ *
3751+ * @thread_safety This function must only be called from the main thread.
3752+ *
3753+ * @sa @ref window_transparency
3754+ * @sa @ref glfwSetWindowOpacity
3755+ *
3756+ * @since Added in version 3.3.
3757+ *
3758+ * @ingroup window
3759+ */
3760+GLFWAPI float glfwGetWindowOpacity(GLFWwindow* window);
3761+
3762+/*! @brief Sets the opacity of the whole window.
3763+ *
3764+ * This function sets the opacity of the window, including any decorations.
3765+ *
3766+ * The opacity (or alpha) value is a positive finite number between zero and
3767+ * one, where zero is fully transparent and one is fully opaque.
3768+ *
3769+ * The initial opacity value for newly created windows is one.
3770+ *
3771+ * A window created with framebuffer transparency may not use whole window
3772+ * transparency. The results of doing this are undefined.
3773+ *
3774+ * @param[in] window The window to set the opacity for.
3775+ * @param[in] opacity The desired opacity of the specified window.
3776+ *
3777+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref
3778+ * GLFW_PLATFORM_ERROR and @ref GLFW_FEATURE_UNAVAILABLE (see remarks).
3779+ *
3780+ * @remark @wayland There is no way to set an opacity factor for a window.
3781+ * This function will emit @ref GLFW_FEATURE_UNAVAILABLE.
3782+ *
3783+ * @thread_safety This function must only be called from the main thread.
3784+ *
3785+ * @sa @ref window_transparency
3786+ * @sa @ref glfwGetWindowOpacity
3787+ *
3788+ * @since Added in version 3.3.
3789+ *
3790+ * @ingroup window
3791+ */
3792+GLFWAPI void glfwSetWindowOpacity(GLFWwindow* window, float opacity);
3793+
3794+/*! @brief Iconifies the specified window.
3795+ *
3796+ * This function iconifies (minimizes) the specified window if it was
3797+ * previously restored. If the window is already iconified, this function does
3798+ * nothing.
3799+ *
3800+ * If the specified window is a full screen window, GLFW restores the original
3801+ * video mode of the monitor. The window's desired video mode is set again
3802+ * when the window is restored.
3803+ *
3804+ * @param[in] window The window to iconify.
3805+ *
3806+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
3807+ * GLFW_PLATFORM_ERROR.
3808+ *
3809+ * @remark @wayland Once a window is iconified, @ref glfwRestoreWindow won’t
3810+ * be able to restore it. This is a design decision of the xdg-shell
3811+ * protocol.
3812+ *
3813+ * @thread_safety This function must only be called from the main thread.
3814+ *
3815+ * @sa @ref window_iconify
3816+ * @sa @ref glfwRestoreWindow
3817+ * @sa @ref glfwMaximizeWindow
3818+ *
3819+ * @since Added in version 2.1.
3820+ * @glfw3 Added window handle parameter.
3821+ *
3822+ * @ingroup window
3823+ */
3824+GLFWAPI void glfwIconifyWindow(GLFWwindow* window);
3825+
3826+/*! @brief Restores the specified window.
3827+ *
3828+ * This function restores the specified window if it was previously iconified
3829+ * (minimized) or maximized. If the window is already restored, this function
3830+ * does nothing.
3831+ *
3832+ * If the specified window is an iconified full screen window, its desired
3833+ * video mode is set again for its monitor when the window is restored.
3834+ *
3835+ * @param[in] window The window to restore.
3836+ *
3837+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
3838+ * GLFW_PLATFORM_ERROR.
3839+ *
3840+ * @thread_safety This function must only be called from the main thread.
3841+ *
3842+ * @sa @ref window_iconify
3843+ * @sa @ref glfwIconifyWindow
3844+ * @sa @ref glfwMaximizeWindow
3845+ *
3846+ * @since Added in version 2.1.
3847+ * @glfw3 Added window handle parameter.
3848+ *
3849+ * @ingroup window
3850+ */
3851+GLFWAPI void glfwRestoreWindow(GLFWwindow* window);
3852+
3853+/*! @brief Maximizes the specified window.
3854+ *
3855+ * This function maximizes the specified window if it was previously not
3856+ * maximized. If the window is already maximized, this function does nothing.
3857+ *
3858+ * If the specified window is a full screen window, this function does nothing.
3859+ *
3860+ * @param[in] window The window to maximize.
3861+ *
3862+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
3863+ * GLFW_PLATFORM_ERROR.
3864+ *
3865+ * @par Thread Safety
3866+ * This function may only be called from the main thread.
3867+ *
3868+ * @sa @ref window_iconify
3869+ * @sa @ref glfwIconifyWindow
3870+ * @sa @ref glfwRestoreWindow
3871+ *
3872+ * @since Added in GLFW 3.2.
3873+ *
3874+ * @ingroup window
3875+ */
3876+GLFWAPI void glfwMaximizeWindow(GLFWwindow* window);
3877+
3878+/*! @brief Makes the specified window visible.
3879+ *
3880+ * This function makes the specified window visible if it was previously
3881+ * hidden. If the window is already visible or is in full screen mode, this
3882+ * function does nothing.
3883+ *
3884+ * By default, windowed mode windows are focused when shown
3885+ * Set the [GLFW_FOCUS_ON_SHOW](@ref GLFW_FOCUS_ON_SHOW_hint) window hint
3886+ * to change this behavior for all newly created windows, or change the
3887+ * behavior for an existing window with @ref glfwSetWindowAttrib.
3888+ *
3889+ * @param[in] window The window to make visible.
3890+ *
3891+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
3892+ * GLFW_PLATFORM_ERROR.
3893+ *
3894+ * @remark @wayland Because Wayland wants every frame of the desktop to be
3895+ * complete, this function does not immediately make the window visible.
3896+ * Instead it will become visible the next time the window framebuffer is
3897+ * updated after this call.
3898+ *
3899+ * @thread_safety This function must only be called from the main thread.
3900+ *
3901+ * @sa @ref window_hide
3902+ * @sa @ref glfwHideWindow
3903+ *
3904+ * @since Added in version 3.0.
3905+ *
3906+ * @ingroup window
3907+ */
3908+GLFWAPI void glfwShowWindow(GLFWwindow* window);
3909+
3910+/*! @brief Hides the specified window.
3911+ *
3912+ * This function hides the specified window if it was previously visible. If
3913+ * the window is already hidden or is in full screen mode, this function does
3914+ * nothing.
3915+ *
3916+ * @param[in] window The window to hide.
3917+ *
3918+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
3919+ * GLFW_PLATFORM_ERROR.
3920+ *
3921+ * @thread_safety This function must only be called from the main thread.
3922+ *
3923+ * @sa @ref window_hide
3924+ * @sa @ref glfwShowWindow
3925+ *
3926+ * @since Added in version 3.0.
3927+ *
3928+ * @ingroup window
3929+ */
3930+GLFWAPI void glfwHideWindow(GLFWwindow* window);
3931+
3932+/*! @brief Brings the specified window to front and sets input focus.
3933+ *
3934+ * This function brings the specified window to front and sets input focus.
3935+ * The window should already be visible and not iconified.
3936+ *
3937+ * By default, both windowed and full screen mode windows are focused when
3938+ * initially created. Set the [GLFW_FOCUSED](@ref GLFW_FOCUSED_hint) to
3939+ * disable this behavior.
3940+ *
3941+ * Also by default, windowed mode windows are focused when shown
3942+ * with @ref glfwShowWindow. Set the
3943+ * [GLFW_FOCUS_ON_SHOW](@ref GLFW_FOCUS_ON_SHOW_hint) to disable this behavior.
3944+ *
3945+ * __Do not use this function__ to steal focus from other applications unless
3946+ * you are certain that is what the user wants. Focus stealing can be
3947+ * extremely disruptive.
3948+ *
3949+ * For a less disruptive way of getting the user's attention, see
3950+ * [attention requests](@ref window_attention).
3951+ *
3952+ * @param[in] window The window to give input focus.
3953+ *
3954+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
3955+ * GLFW_PLATFORM_ERROR.
3956+ *
3957+ * @remark @wayland The compositor will likely ignore focus requests unless
3958+ * another window created by the same application already has input focus.
3959+ *
3960+ * @thread_safety This function must only be called from the main thread.
3961+ *
3962+ * @sa @ref window_focus
3963+ * @sa @ref window_attention
3964+ *
3965+ * @since Added in version 3.2.
3966+ *
3967+ * @ingroup window
3968+ */
3969+GLFWAPI void glfwFocusWindow(GLFWwindow* window);
3970+
3971+/*! @brief Requests user attention to the specified window.
3972+ *
3973+ * This function requests user attention to the specified window. On
3974+ * platforms where this is not supported, attention is requested to the
3975+ * application as a whole.
3976+ *
3977+ * Once the user has given attention, usually by focusing the window or
3978+ * application, the system will end the request automatically.
3979+ *
3980+ * @param[in] window The window to request attention to.
3981+ *
3982+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
3983+ * GLFW_PLATFORM_ERROR.
3984+ *
3985+ * @remark @macos Attention is requested to the application as a whole, not the
3986+ * specific window.
3987+ *
3988+ * @thread_safety This function must only be called from the main thread.
3989+ *
3990+ * @sa @ref window_attention
3991+ *
3992+ * @since Added in version 3.3.
3993+ *
3994+ * @ingroup window
3995+ */
3996+GLFWAPI void glfwRequestWindowAttention(GLFWwindow* window);
3997+
3998+/*! @brief Returns the monitor that the window uses for full screen mode.
3999+ *
4000+ * This function returns the handle of the monitor that the specified window is
4001+ * in full screen on.
4002+ *
4003+ * @param[in] window The window to query.
4004+ * @return The monitor, or `NULL` if the window is in windowed mode or an
4005+ * [error](@ref error_handling) occurred.
4006+ *
4007+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
4008+ *
4009+ * @thread_safety This function must only be called from the main thread.
4010+ *
4011+ * @sa @ref window_monitor
4012+ * @sa @ref glfwSetWindowMonitor
4013+ *
4014+ * @since Added in version 3.0.
4015+ *
4016+ * @ingroup window
4017+ */
4018+GLFWAPI GLFWmonitor* glfwGetWindowMonitor(GLFWwindow* window);
4019+
4020+/*! @brief Sets the mode, monitor, video mode and placement of a window.
4021+ *
4022+ * This function sets the monitor that the window uses for full screen mode or,
4023+ * if the monitor is `NULL`, makes it windowed mode.
4024+ *
4025+ * When setting a monitor, this function updates the width, height and refresh
4026+ * rate of the desired video mode and switches to the video mode closest to it.
4027+ * The window position is ignored when setting a monitor.
4028+ *
4029+ * When the monitor is `NULL`, the position, width and height are used to
4030+ * place the window content area. The refresh rate is ignored when no monitor
4031+ * is specified.
4032+ *
4033+ * If you only wish to update the resolution of a full screen window or the
4034+ * size of a windowed mode window, see @ref glfwSetWindowSize.
4035+ *
4036+ * When a window transitions from full screen to windowed mode, this function
4037+ * restores any previous window settings such as whether it is decorated,
4038+ * floating, resizable, has size or aspect ratio limits, etc.
4039+ *
4040+ * @param[in] window The window whose monitor, size or video mode to set.
4041+ * @param[in] monitor The desired monitor, or `NULL` to set windowed mode.
4042+ * @param[in] xpos The desired x-coordinate of the upper-left corner of the
4043+ * content area.
4044+ * @param[in] ypos The desired y-coordinate of the upper-left corner of the
4045+ * content area.
4046+ * @param[in] width The desired with, in screen coordinates, of the content
4047+ * area or video mode.
4048+ * @param[in] height The desired height, in screen coordinates, of the content
4049+ * area or video mode.
4050+ * @param[in] refreshRate The desired refresh rate, in Hz, of the video mode,
4051+ * or `GLFW_DONT_CARE`.
4052+ *
4053+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
4054+ * GLFW_PLATFORM_ERROR.
4055+ *
4056+ * @remark The OpenGL or OpenGL ES context will not be destroyed or otherwise
4057+ * affected by any resizing or mode switching, although you may need to update
4058+ * your viewport if the framebuffer size has changed.
4059+ *
4060+ * @remark @wayland The desired window position is ignored, as there is no way
4061+ * for an application to set this property.
4062+ *
4063+ * @thread_safety This function must only be called from the main thread.
4064+ *
4065+ * @sa @ref window_monitor
4066+ * @sa @ref window_full_screen
4067+ * @sa @ref glfwGetWindowMonitor
4068+ * @sa @ref glfwSetWindowSize
4069+ *
4070+ * @since Added in version 3.2.
4071+ *
4072+ * @ingroup window
4073+ */
4074+GLFWAPI void glfwSetWindowMonitor(GLFWwindow* window, GLFWmonitor* monitor, int xpos, int ypos, int width, int height, int refreshRate);
4075+
4076+/*! @brief Returns an attribute of the specified window.
4077+ *
4078+ * This function returns the value of an attribute of the specified window or
4079+ * its OpenGL or OpenGL ES context.
4080+ *
4081+ * @param[in] window The window to query.
4082+ * @param[in] attrib The [window attribute](@ref window_attribs) whose value to
4083+ * return.
4084+ * @return The value of the attribute, or zero if an
4085+ * [error](@ref error_handling) occurred.
4086+ *
4087+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref
4088+ * GLFW_INVALID_ENUM and @ref GLFW_PLATFORM_ERROR.
4089+ *
4090+ * @remark Framebuffer related hints are not window attributes. See @ref
4091+ * window_attribs_fb for more information.
4092+ *
4093+ * @remark Zero is a valid value for many window and context related
4094+ * attributes so you cannot use a return value of zero as an indication of
4095+ * errors. However, this function should not fail as long as it is passed
4096+ * valid arguments and the library has been [initialized](@ref intro_init).
4097+ *
4098+ * @remark @wayland The Wayland protocol provides no way to check whether a
4099+ * window is iconfied, so @ref GLFW_ICONIFIED always returns `GLFW_FALSE`.
4100+ *
4101+ * @thread_safety This function must only be called from the main thread.
4102+ *
4103+ * @sa @ref window_attribs
4104+ * @sa @ref glfwSetWindowAttrib
4105+ *
4106+ * @since Added in version 3.0. Replaces `glfwGetWindowParam` and
4107+ * `glfwGetGLVersion`.
4108+ *
4109+ * @ingroup window
4110+ */
4111+GLFWAPI int glfwGetWindowAttrib(GLFWwindow* window, int attrib);
4112+
4113+/*! @brief Sets an attribute of the specified window.
4114+ *
4115+ * This function sets the value of an attribute of the specified window.
4116+ *
4117+ * The supported attributes are [GLFW_DECORATED](@ref GLFW_DECORATED_attrib),
4118+ * [GLFW_RESIZABLE](@ref GLFW_RESIZABLE_attrib),
4119+ * [GLFW_FLOATING](@ref GLFW_FLOATING_attrib),
4120+ * [GLFW_AUTO_ICONIFY](@ref GLFW_AUTO_ICONIFY_attrib) and
4121+ * [GLFW_FOCUS_ON_SHOW](@ref GLFW_FOCUS_ON_SHOW_attrib).
4122+ * [GLFW_MOUSE_PASSTHROUGH](@ref GLFW_MOUSE_PASSTHROUGH_attrib)
4123+ *
4124+ * Some of these attributes are ignored for full screen windows. The new
4125+ * value will take effect if the window is later made windowed.
4126+ *
4127+ * Some of these attributes are ignored for windowed mode windows. The new
4128+ * value will take effect if the window is later made full screen.
4129+ *
4130+ * @param[in] window The window to set the attribute for.
4131+ * @param[in] attrib A supported window attribute.
4132+ * @param[in] value `GLFW_TRUE` or `GLFW_FALSE`.
4133+ *
4134+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref
4135+ * GLFW_INVALID_ENUM, @ref GLFW_INVALID_VALUE, @ref GLFW_PLATFORM_ERROR and @ref
4136+ * GLFW_FEATURE_UNAVAILABLE (see remarks).
4137+ *
4138+ * @remark Calling @ref glfwGetWindowAttrib will always return the latest
4139+ * value, even if that value is ignored by the current mode of the window.
4140+ *
4141+ * @remark @wayland The [GLFW_FLOATING](@ref GLFW_FLOATING_attrib) window attribute is
4142+ * not supported. Setting this will emit @ref GLFW_FEATURE_UNAVAILABLE.
4143+ *
4144+ * @thread_safety This function must only be called from the main thread.
4145+ *
4146+ * @sa @ref window_attribs
4147+ * @sa @ref glfwGetWindowAttrib
4148+ *
4149+ * @since Added in version 3.3.
4150+ *
4151+ * @ingroup window
4152+ */
4153+GLFWAPI void glfwSetWindowAttrib(GLFWwindow* window, int attrib, int value);
4154+
4155+/*! @brief Sets the user pointer of the specified window.
4156+ *
4157+ * This function sets the user-defined pointer of the specified window. The
4158+ * current value is retained until the window is destroyed. The initial value
4159+ * is `NULL`.
4160+ *
4161+ * @param[in] window The window whose pointer to set.
4162+ * @param[in] pointer The new value.
4163+ *
4164+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
4165+ *
4166+ * @thread_safety This function may be called from any thread. Access is not
4167+ * synchronized.
4168+ *
4169+ * @sa @ref window_userptr
4170+ * @sa @ref glfwGetWindowUserPointer
4171+ *
4172+ * @since Added in version 3.0.
4173+ *
4174+ * @ingroup window
4175+ */
4176+GLFWAPI void glfwSetWindowUserPointer(GLFWwindow* window, void* pointer);
4177+
4178+/*! @brief Returns the user pointer of the specified window.
4179+ *
4180+ * This function returns the current value of the user-defined pointer of the
4181+ * specified window. The initial value is `NULL`.
4182+ *
4183+ * @param[in] window The window whose pointer to return.
4184+ *
4185+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
4186+ *
4187+ * @thread_safety This function may be called from any thread. Access is not
4188+ * synchronized.
4189+ *
4190+ * @sa @ref window_userptr
4191+ * @sa @ref glfwSetWindowUserPointer
4192+ *
4193+ * @since Added in version 3.0.
4194+ *
4195+ * @ingroup window
4196+ */
4197+GLFWAPI void* glfwGetWindowUserPointer(GLFWwindow* window);
4198+
4199+/*! @brief Sets the position callback for the specified window.
4200+ *
4201+ * This function sets the position callback of the specified window, which is
4202+ * called when the window is moved. The callback is provided with the
4203+ * position, in screen coordinates, of the upper-left corner of the content
4204+ * area of the window.
4205+ *
4206+ * @param[in] window The window whose callback to set.
4207+ * @param[in] callback The new callback, or `NULL` to remove the currently set
4208+ * callback.
4209+ * @return The previously set callback, or `NULL` if no callback was set or the
4210+ * library had not been [initialized](@ref intro_init).
4211+ *
4212+ * @callback_signature
4213+ * @code
4214+ * void function_name(GLFWwindow* window, int xpos, int ypos)
4215+ * @endcode
4216+ * For more information about the callback parameters, see the
4217+ * [function pointer type](@ref GLFWwindowposfun).
4218+ *
4219+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
4220+ *
4221+ * @remark @wayland This callback will never be called, as there is no way for
4222+ * an application to know its global position.
4223+ *
4224+ * @thread_safety This function must only be called from the main thread.
4225+ *
4226+ * @sa @ref window_pos
4227+ *
4228+ * @since Added in version 3.0.
4229+ *
4230+ * @ingroup window
4231+ */
4232+GLFWAPI GLFWwindowposfun glfwSetWindowPosCallback(GLFWwindow* window, GLFWwindowposfun callback);
4233+
4234+/*! @brief Sets the size callback for the specified window.
4235+ *
4236+ * This function sets the size callback of the specified window, which is
4237+ * called when the window is resized. The callback is provided with the size,
4238+ * in screen coordinates, of the content area of the window.
4239+ *
4240+ * @param[in] window The window whose callback to set.
4241+ * @param[in] callback The new callback, or `NULL` to remove the currently set
4242+ * callback.
4243+ * @return The previously set callback, or `NULL` if no callback was set or the
4244+ * library had not been [initialized](@ref intro_init).
4245+ *
4246+ * @callback_signature
4247+ * @code
4248+ * void function_name(GLFWwindow* window, int width, int height)
4249+ * @endcode
4250+ * For more information about the callback parameters, see the
4251+ * [function pointer type](@ref GLFWwindowsizefun).
4252+ *
4253+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
4254+ *
4255+ * @thread_safety This function must only be called from the main thread.
4256+ *
4257+ * @sa @ref window_size
4258+ *
4259+ * @since Added in version 1.0.
4260+ * @glfw3 Added window handle parameter and return value.
4261+ *
4262+ * @ingroup window
4263+ */
4264+GLFWAPI GLFWwindowsizefun glfwSetWindowSizeCallback(GLFWwindow* window, GLFWwindowsizefun callback);
4265+
4266+/*! @brief Sets the close callback for the specified window.
4267+ *
4268+ * This function sets the close callback of the specified window, which is
4269+ * called when the user attempts to close the window, for example by clicking
4270+ * the close widget in the title bar.
4271+ *
4272+ * The close flag is set before this callback is called, but you can modify it
4273+ * at any time with @ref glfwSetWindowShouldClose.
4274+ *
4275+ * The close callback is not triggered by @ref glfwDestroyWindow.
4276+ *
4277+ * @param[in] window The window whose callback to set.
4278+ * @param[in] callback The new callback, or `NULL` to remove the currently set
4279+ * callback.
4280+ * @return The previously set callback, or `NULL` if no callback was set or the
4281+ * library had not been [initialized](@ref intro_init).
4282+ *
4283+ * @callback_signature
4284+ * @code
4285+ * void function_name(GLFWwindow* window)
4286+ * @endcode
4287+ * For more information about the callback parameters, see the
4288+ * [function pointer type](@ref GLFWwindowclosefun).
4289+ *
4290+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
4291+ *
4292+ * @remark @macos Selecting Quit from the application menu will trigger the
4293+ * close callback for all windows.
4294+ *
4295+ * @thread_safety This function must only be called from the main thread.
4296+ *
4297+ * @sa @ref window_close
4298+ *
4299+ * @since Added in version 2.5.
4300+ * @glfw3 Added window handle parameter and return value.
4301+ *
4302+ * @ingroup window
4303+ */
4304+GLFWAPI GLFWwindowclosefun glfwSetWindowCloseCallback(GLFWwindow* window, GLFWwindowclosefun callback);
4305+
4306+/*! @brief Sets the refresh callback for the specified window.
4307+ *
4308+ * This function sets the refresh callback of the specified window, which is
4309+ * called when the content area of the window needs to be redrawn, for example
4310+ * if the window has been exposed after having been covered by another window.
4311+ *
4312+ * On compositing window systems such as Aero, Compiz, Aqua or Wayland, where
4313+ * the window contents are saved off-screen, this callback may be called only
4314+ * very infrequently or never at all.
4315+ *
4316+ * @param[in] window The window whose callback to set.
4317+ * @param[in] callback The new callback, or `NULL` to remove the currently set
4318+ * callback.
4319+ * @return The previously set callback, or `NULL` if no callback was set or the
4320+ * library had not been [initialized](@ref intro_init).
4321+ *
4322+ * @callback_signature
4323+ * @code
4324+ * void function_name(GLFWwindow* window);
4325+ * @endcode
4326+ * For more information about the callback parameters, see the
4327+ * [function pointer type](@ref GLFWwindowrefreshfun).
4328+ *
4329+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
4330+ *
4331+ * @thread_safety This function must only be called from the main thread.
4332+ *
4333+ * @sa @ref window_refresh
4334+ *
4335+ * @since Added in version 2.5.
4336+ * @glfw3 Added window handle parameter and return value.
4337+ *
4338+ * @ingroup window
4339+ */
4340+GLFWAPI GLFWwindowrefreshfun glfwSetWindowRefreshCallback(GLFWwindow* window, GLFWwindowrefreshfun callback);
4341+
4342+/*! @brief Sets the focus callback for the specified window.
4343+ *
4344+ * This function sets the focus callback of the specified window, which is
4345+ * called when the window gains or loses input focus.
4346+ *
4347+ * After the focus callback is called for a window that lost input focus,
4348+ * synthetic key and mouse button release events will be generated for all such
4349+ * that had been pressed. For more information, see @ref glfwSetKeyCallback
4350+ * and @ref glfwSetMouseButtonCallback.
4351+ *
4352+ * @param[in] window The window whose callback to set.
4353+ * @param[in] callback The new callback, or `NULL` to remove the currently set
4354+ * callback.
4355+ * @return The previously set callback, or `NULL` if no callback was set or the
4356+ * library had not been [initialized](@ref intro_init).
4357+ *
4358+ * @callback_signature
4359+ * @code
4360+ * void function_name(GLFWwindow* window, int focused)
4361+ * @endcode
4362+ * For more information about the callback parameters, see the
4363+ * [function pointer type](@ref GLFWwindowfocusfun).
4364+ *
4365+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
4366+ *
4367+ * @thread_safety This function must only be called from the main thread.
4368+ *
4369+ * @sa @ref window_focus
4370+ *
4371+ * @since Added in version 3.0.
4372+ *
4373+ * @ingroup window
4374+ */
4375+GLFWAPI GLFWwindowfocusfun glfwSetWindowFocusCallback(GLFWwindow* window, GLFWwindowfocusfun callback);
4376+
4377+/*! @brief Sets the iconify callback for the specified window.
4378+ *
4379+ * This function sets the iconification callback of the specified window, which
4380+ * is called when the window is iconified or restored.
4381+ *
4382+ * @param[in] window The window whose callback to set.
4383+ * @param[in] callback The new callback, or `NULL` to remove the currently set
4384+ * callback.
4385+ * @return The previously set callback, or `NULL` if no callback was set or the
4386+ * library had not been [initialized](@ref intro_init).
4387+ *
4388+ * @callback_signature
4389+ * @code
4390+ * void function_name(GLFWwindow* window, int iconified)
4391+ * @endcode
4392+ * For more information about the callback parameters, see the
4393+ * [function pointer type](@ref GLFWwindowiconifyfun).
4394+ *
4395+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
4396+ *
4397+ * @thread_safety This function must only be called from the main thread.
4398+ *
4399+ * @sa @ref window_iconify
4400+ *
4401+ * @since Added in version 3.0.
4402+ *
4403+ * @ingroup window
4404+ */
4405+GLFWAPI GLFWwindowiconifyfun glfwSetWindowIconifyCallback(GLFWwindow* window, GLFWwindowiconifyfun callback);
4406+
4407+/*! @brief Sets the maximize callback for the specified window.
4408+ *
4409+ * This function sets the maximization callback of the specified window, which
4410+ * is called when the window is maximized or restored.
4411+ *
4412+ * @param[in] window The window whose callback to set.
4413+ * @param[in] callback The new callback, or `NULL` to remove the currently set
4414+ * callback.
4415+ * @return The previously set callback, or `NULL` if no callback was set or the
4416+ * library had not been [initialized](@ref intro_init).
4417+ *
4418+ * @callback_signature
4419+ * @code
4420+ * void function_name(GLFWwindow* window, int maximized)
4421+ * @endcode
4422+ * For more information about the callback parameters, see the
4423+ * [function pointer type](@ref GLFWwindowmaximizefun).
4424+ *
4425+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
4426+ *
4427+ * @thread_safety This function must only be called from the main thread.
4428+ *
4429+ * @sa @ref window_maximize
4430+ *
4431+ * @since Added in version 3.3.
4432+ *
4433+ * @ingroup window
4434+ */
4435+GLFWAPI GLFWwindowmaximizefun glfwSetWindowMaximizeCallback(GLFWwindow* window, GLFWwindowmaximizefun callback);
4436+
4437+/*! @brief Sets the framebuffer resize callback for the specified window.
4438+ *
4439+ * This function sets the framebuffer resize callback of the specified window,
4440+ * which is called when the framebuffer of the specified window is resized.
4441+ *
4442+ * @param[in] window The window whose callback to set.
4443+ * @param[in] callback The new callback, or `NULL` to remove the currently set
4444+ * callback.
4445+ * @return The previously set callback, or `NULL` if no callback was set or the
4446+ * library had not been [initialized](@ref intro_init).
4447+ *
4448+ * @callback_signature
4449+ * @code
4450+ * void function_name(GLFWwindow* window, int width, int height)
4451+ * @endcode
4452+ * For more information about the callback parameters, see the
4453+ * [function pointer type](@ref GLFWframebuffersizefun).
4454+ *
4455+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
4456+ *
4457+ * @thread_safety This function must only be called from the main thread.
4458+ *
4459+ * @sa @ref window_fbsize
4460+ *
4461+ * @since Added in version 3.0.
4462+ *
4463+ * @ingroup window
4464+ */
4465+GLFWAPI GLFWframebuffersizefun glfwSetFramebufferSizeCallback(GLFWwindow* window, GLFWframebuffersizefun callback);
4466+
4467+/*! @brief Sets the window content scale callback for the specified window.
4468+ *
4469+ * This function sets the window content scale callback of the specified window,
4470+ * which is called when the content scale of the specified window changes.
4471+ *
4472+ * @param[in] window The window whose callback to set.
4473+ * @param[in] callback The new callback, or `NULL` to remove the currently set
4474+ * callback.
4475+ * @return The previously set callback, or `NULL` if no callback was set or the
4476+ * library had not been [initialized](@ref intro_init).
4477+ *
4478+ * @callback_signature
4479+ * @code
4480+ * void function_name(GLFWwindow* window, float xscale, float yscale)
4481+ * @endcode
4482+ * For more information about the callback parameters, see the
4483+ * [function pointer type](@ref GLFWwindowcontentscalefun).
4484+ *
4485+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
4486+ *
4487+ * @thread_safety This function must only be called from the main thread.
4488+ *
4489+ * @sa @ref window_scale
4490+ * @sa @ref glfwGetWindowContentScale
4491+ *
4492+ * @since Added in version 3.3.
4493+ *
4494+ * @ingroup window
4495+ */
4496+GLFWAPI GLFWwindowcontentscalefun glfwSetWindowContentScaleCallback(GLFWwindow* window, GLFWwindowcontentscalefun callback);
4497+
4498+/*! @brief Processes all pending events.
4499+ *
4500+ * This function processes only those events that are already in the event
4501+ * queue and then returns immediately. Processing events will cause the window
4502+ * and input callbacks associated with those events to be called.
4503+ *
4504+ * On some platforms, a window move, resize or menu operation will cause event
4505+ * processing to block. This is due to how event processing is designed on
4506+ * those platforms. You can use the
4507+ * [window refresh callback](@ref window_refresh) to redraw the contents of
4508+ * your window when necessary during such operations.
4509+ *
4510+ * Do not assume that callbacks you set will _only_ be called in response to
4511+ * event processing functions like this one. While it is necessary to poll for
4512+ * events, window systems that require GLFW to register callbacks of its own
4513+ * can pass events to GLFW in response to many window system function calls.
4514+ * GLFW will pass those events on to the application callbacks before
4515+ * returning.
4516+ *
4517+ * Event processing is not required for joystick input to work.
4518+ *
4519+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
4520+ * GLFW_PLATFORM_ERROR.
4521+ *
4522+ * @reentrancy This function must not be called from a callback.
4523+ *
4524+ * @thread_safety This function must only be called from the main thread.
4525+ *
4526+ * @sa @ref events
4527+ * @sa @ref glfwWaitEvents
4528+ * @sa @ref glfwWaitEventsTimeout
4529+ *
4530+ * @since Added in version 1.0.
4531+ *
4532+ * @ingroup window
4533+ */
4534+GLFWAPI void glfwPollEvents(void);
4535+
4536+/*! @brief Waits until events are queued and processes them.
4537+ *
4538+ * This function puts the calling thread to sleep until at least one event is
4539+ * available in the event queue. Once one or more events are available,
4540+ * it behaves exactly like @ref glfwPollEvents, i.e. the events in the queue
4541+ * are processed and the function then returns immediately. Processing events
4542+ * will cause the window and input callbacks associated with those events to be
4543+ * called.
4544+ *
4545+ * Since not all events are associated with callbacks, this function may return
4546+ * without a callback having been called even if you are monitoring all
4547+ * callbacks.
4548+ *
4549+ * On some platforms, a window move, resize or menu operation will cause event
4550+ * processing to block. This is due to how event processing is designed on
4551+ * those platforms. You can use the
4552+ * [window refresh callback](@ref window_refresh) to redraw the contents of
4553+ * your window when necessary during such operations.
4554+ *
4555+ * Do not assume that callbacks you set will _only_ be called in response to
4556+ * event processing functions like this one. While it is necessary to poll for
4557+ * events, window systems that require GLFW to register callbacks of its own
4558+ * can pass events to GLFW in response to many window system function calls.
4559+ * GLFW will pass those events on to the application callbacks before
4560+ * returning.
4561+ *
4562+ * Event processing is not required for joystick input to work.
4563+ *
4564+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
4565+ * GLFW_PLATFORM_ERROR.
4566+ *
4567+ * @reentrancy This function must not be called from a callback.
4568+ *
4569+ * @thread_safety This function must only be called from the main thread.
4570+ *
4571+ * @sa @ref events
4572+ * @sa @ref glfwPollEvents
4573+ * @sa @ref glfwWaitEventsTimeout
4574+ *
4575+ * @since Added in version 2.5.
4576+ *
4577+ * @ingroup window
4578+ */
4579+GLFWAPI void glfwWaitEvents(void);
4580+
4581+/*! @brief Waits with timeout until events are queued and processes them.
4582+ *
4583+ * This function puts the calling thread to sleep until at least one event is
4584+ * available in the event queue, or until the specified timeout is reached. If
4585+ * one or more events are available, it behaves exactly like @ref
4586+ * glfwPollEvents, i.e. the events in the queue are processed and the function
4587+ * then returns immediately. Processing events will cause the window and input
4588+ * callbacks associated with those events to be called.
4589+ *
4590+ * The timeout value must be a positive finite number.
4591+ *
4592+ * Since not all events are associated with callbacks, this function may return
4593+ * without a callback having been called even if you are monitoring all
4594+ * callbacks.
4595+ *
4596+ * On some platforms, a window move, resize or menu operation will cause event
4597+ * processing to block. This is due to how event processing is designed on
4598+ * those platforms. You can use the
4599+ * [window refresh callback](@ref window_refresh) to redraw the contents of
4600+ * your window when necessary during such operations.
4601+ *
4602+ * Do not assume that callbacks you set will _only_ be called in response to
4603+ * event processing functions like this one. While it is necessary to poll for
4604+ * events, window systems that require GLFW to register callbacks of its own
4605+ * can pass events to GLFW in response to many window system function calls.
4606+ * GLFW will pass those events on to the application callbacks before
4607+ * returning.
4608+ *
4609+ * Event processing is not required for joystick input to work.
4610+ *
4611+ * @param[in] timeout The maximum amount of time, in seconds, to wait.
4612+ *
4613+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref
4614+ * GLFW_INVALID_VALUE and @ref GLFW_PLATFORM_ERROR.
4615+ *
4616+ * @reentrancy This function must not be called from a callback.
4617+ *
4618+ * @thread_safety This function must only be called from the main thread.
4619+ *
4620+ * @sa @ref events
4621+ * @sa @ref glfwPollEvents
4622+ * @sa @ref glfwWaitEvents
4623+ *
4624+ * @since Added in version 3.2.
4625+ *
4626+ * @ingroup window
4627+ */
4628+GLFWAPI void glfwWaitEventsTimeout(double timeout);
4629+
4630+/*! @brief Posts an empty event to the event queue.
4631+ *
4632+ * This function posts an empty event from the current thread to the event
4633+ * queue, causing @ref glfwWaitEvents or @ref glfwWaitEventsTimeout to return.
4634+ *
4635+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
4636+ * GLFW_PLATFORM_ERROR.
4637+ *
4638+ * @thread_safety This function may be called from any thread.
4639+ *
4640+ * @sa @ref events
4641+ * @sa @ref glfwWaitEvents
4642+ * @sa @ref glfwWaitEventsTimeout
4643+ *
4644+ * @since Added in version 3.1.
4645+ *
4646+ * @ingroup window
4647+ */
4648+GLFWAPI void glfwPostEmptyEvent(void);
4649+
4650+/*! @brief Returns the value of an input option for the specified window.
4651+ *
4652+ * This function returns the value of an input option for the specified window.
4653+ * The mode must be one of @ref GLFW_CURSOR, @ref GLFW_STICKY_KEYS,
4654+ * @ref GLFW_STICKY_MOUSE_BUTTONS, @ref GLFW_LOCK_KEY_MODS or
4655+ * @ref GLFW_RAW_MOUSE_MOTION.
4656+ *
4657+ * @param[in] window The window to query.
4658+ * @param[in] mode One of `GLFW_CURSOR`, `GLFW_STICKY_KEYS`,
4659+ * `GLFW_STICKY_MOUSE_BUTTONS`, `GLFW_LOCK_KEY_MODS` or
4660+ * `GLFW_RAW_MOUSE_MOTION`.
4661+ *
4662+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
4663+ * GLFW_INVALID_ENUM.
4664+ *
4665+ * @thread_safety This function must only be called from the main thread.
4666+ *
4667+ * @sa @ref glfwSetInputMode
4668+ *
4669+ * @since Added in version 3.0.
4670+ *
4671+ * @ingroup input
4672+ */
4673+GLFWAPI int glfwGetInputMode(GLFWwindow* window, int mode);
4674+
4675+/*! @brief Sets an input option for the specified window.
4676+ *
4677+ * This function sets an input mode option for the specified window. The mode
4678+ * must be one of @ref GLFW_CURSOR, @ref GLFW_STICKY_KEYS,
4679+ * @ref GLFW_STICKY_MOUSE_BUTTONS, @ref GLFW_LOCK_KEY_MODS or
4680+ * @ref GLFW_RAW_MOUSE_MOTION.
4681+ *
4682+ * If the mode is `GLFW_CURSOR`, the value must be one of the following cursor
4683+ * modes:
4684+ * - `GLFW_CURSOR_NORMAL` makes the cursor visible and behaving normally.
4685+ * - `GLFW_CURSOR_HIDDEN` makes the cursor invisible when it is over the
4686+ * content area of the window but does not restrict the cursor from leaving.
4687+ * - `GLFW_CURSOR_DISABLED` hides and grabs the cursor, providing virtual
4688+ * and unlimited cursor movement. This is useful for implementing for
4689+ * example 3D camera controls.
4690+ * - `GLFW_CURSOR_CAPTURED` makes the cursor visible and confines it to the
4691+ * content area of the window.
4692+ *
4693+ * If the mode is `GLFW_STICKY_KEYS`, the value must be either `GLFW_TRUE` to
4694+ * enable sticky keys, or `GLFW_FALSE` to disable it. If sticky keys are
4695+ * enabled, a key press will ensure that @ref glfwGetKey returns `GLFW_PRESS`
4696+ * the next time it is called even if the key had been released before the
4697+ * call. This is useful when you are only interested in whether keys have been
4698+ * pressed but not when or in which order.
4699+ *
4700+ * If the mode is `GLFW_STICKY_MOUSE_BUTTONS`, the value must be either
4701+ * `GLFW_TRUE` to enable sticky mouse buttons, or `GLFW_FALSE` to disable it.
4702+ * If sticky mouse buttons are enabled, a mouse button press will ensure that
4703+ * @ref glfwGetMouseButton returns `GLFW_PRESS` the next time it is called even
4704+ * if the mouse button had been released before the call. This is useful when
4705+ * you are only interested in whether mouse buttons have been pressed but not
4706+ * when or in which order.
4707+ *
4708+ * If the mode is `GLFW_LOCK_KEY_MODS`, the value must be either `GLFW_TRUE` to
4709+ * enable lock key modifier bits, or `GLFW_FALSE` to disable them. If enabled,
4710+ * callbacks that receive modifier bits will also have the @ref
4711+ * GLFW_MOD_CAPS_LOCK bit set when the event was generated with Caps Lock on,
4712+ * and the @ref GLFW_MOD_NUM_LOCK bit when Num Lock was on.
4713+ *
4714+ * If the mode is `GLFW_RAW_MOUSE_MOTION`, the value must be either `GLFW_TRUE`
4715+ * to enable raw (unscaled and unaccelerated) mouse motion when the cursor is
4716+ * disabled, or `GLFW_FALSE` to disable it. If raw motion is not supported,
4717+ * attempting to set this will emit @ref GLFW_FEATURE_UNAVAILABLE. Call @ref
4718+ * glfwRawMouseMotionSupported to check for support.
4719+ *
4720+ * @param[in] window The window whose input mode to set.
4721+ * @param[in] mode One of `GLFW_CURSOR`, `GLFW_STICKY_KEYS`,
4722+ * `GLFW_STICKY_MOUSE_BUTTONS`, `GLFW_LOCK_KEY_MODS` or
4723+ * `GLFW_RAW_MOUSE_MOTION`.
4724+ * @param[in] value The new value of the specified input mode.
4725+ *
4726+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref
4727+ * GLFW_INVALID_ENUM, @ref GLFW_PLATFORM_ERROR and @ref
4728+ * GLFW_FEATURE_UNAVAILABLE (see above).
4729+ *
4730+ * @thread_safety This function must only be called from the main thread.
4731+ *
4732+ * @sa @ref glfwGetInputMode
4733+ *
4734+ * @since Added in version 3.0. Replaces `glfwEnable` and `glfwDisable`.
4735+ *
4736+ * @ingroup input
4737+ */
4738+GLFWAPI void glfwSetInputMode(GLFWwindow* window, int mode, int value);
4739+
4740+/*! @brief Returns whether raw mouse motion is supported.
4741+ *
4742+ * This function returns whether raw mouse motion is supported on the current
4743+ * system. This status does not change after GLFW has been initialized so you
4744+ * only need to check this once. If you attempt to enable raw motion on
4745+ * a system that does not support it, @ref GLFW_PLATFORM_ERROR will be emitted.
4746+ *
4747+ * Raw mouse motion is closer to the actual motion of the mouse across
4748+ * a surface. It is not affected by the scaling and acceleration applied to
4749+ * the motion of the desktop cursor. That processing is suitable for a cursor
4750+ * while raw motion is better for controlling for example a 3D camera. Because
4751+ * of this, raw mouse motion is only provided when the cursor is disabled.
4752+ *
4753+ * @return `GLFW_TRUE` if raw mouse motion is supported on the current machine,
4754+ * or `GLFW_FALSE` otherwise.
4755+ *
4756+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
4757+ *
4758+ * @thread_safety This function must only be called from the main thread.
4759+ *
4760+ * @sa @ref raw_mouse_motion
4761+ * @sa @ref glfwSetInputMode
4762+ *
4763+ * @since Added in version 3.3.
4764+ *
4765+ * @ingroup input
4766+ */
4767+GLFWAPI int glfwRawMouseMotionSupported(void);
4768+
4769+/*! @brief Returns the layout-specific name of the specified printable key.
4770+ *
4771+ * This function returns the name of the specified printable key, encoded as
4772+ * UTF-8. This is typically the character that key would produce without any
4773+ * modifier keys, intended for displaying key bindings to the user. For dead
4774+ * keys, it is typically the diacritic it would add to a character.
4775+ *
4776+ * __Do not use this function__ for [text input](@ref input_char). You will
4777+ * break text input for many languages even if it happens to work for yours.
4778+ *
4779+ * If the key is `GLFW_KEY_UNKNOWN`, the scancode is used to identify the key,
4780+ * otherwise the scancode is ignored. If you specify a non-printable key, or
4781+ * `GLFW_KEY_UNKNOWN` and a scancode that maps to a non-printable key, this
4782+ * function returns `NULL` but does not emit an error.
4783+ *
4784+ * This behavior allows you to always pass in the arguments in the
4785+ * [key callback](@ref input_key) without modification.
4786+ *
4787+ * The printable keys are:
4788+ * - `GLFW_KEY_APOSTROPHE`
4789+ * - `GLFW_KEY_COMMA`
4790+ * - `GLFW_KEY_MINUS`
4791+ * - `GLFW_KEY_PERIOD`
4792+ * - `GLFW_KEY_SLASH`
4793+ * - `GLFW_KEY_SEMICOLON`
4794+ * - `GLFW_KEY_EQUAL`
4795+ * - `GLFW_KEY_LEFT_BRACKET`
4796+ * - `GLFW_KEY_RIGHT_BRACKET`
4797+ * - `GLFW_KEY_BACKSLASH`
4798+ * - `GLFW_KEY_WORLD_1`
4799+ * - `GLFW_KEY_WORLD_2`
4800+ * - `GLFW_KEY_0` to `GLFW_KEY_9`
4801+ * - `GLFW_KEY_A` to `GLFW_KEY_Z`
4802+ * - `GLFW_KEY_KP_0` to `GLFW_KEY_KP_9`
4803+ * - `GLFW_KEY_KP_DECIMAL`
4804+ * - `GLFW_KEY_KP_DIVIDE`
4805+ * - `GLFW_KEY_KP_MULTIPLY`
4806+ * - `GLFW_KEY_KP_SUBTRACT`
4807+ * - `GLFW_KEY_KP_ADD`
4808+ * - `GLFW_KEY_KP_EQUAL`
4809+ *
4810+ * Names for printable keys depend on keyboard layout, while names for
4811+ * non-printable keys are the same across layouts but depend on the application
4812+ * language and should be localized along with other user interface text.
4813+ *
4814+ * @param[in] key The key to query, or `GLFW_KEY_UNKNOWN`.
4815+ * @param[in] scancode The scancode of the key to query.
4816+ * @return The UTF-8 encoded, layout-specific name of the key, or `NULL`.
4817+ *
4818+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref
4819+ * GLFW_INVALID_VALUE, @ref GLFW_INVALID_ENUM and @ref GLFW_PLATFORM_ERROR.
4820+ *
4821+ * @remark The contents of the returned string may change when a keyboard
4822+ * layout change event is received.
4823+ *
4824+ * @pointer_lifetime The returned string is allocated and freed by GLFW. You
4825+ * should not free it yourself. It is valid until the library is terminated.
4826+ *
4827+ * @thread_safety This function must only be called from the main thread.
4828+ *
4829+ * @sa @ref input_key_name
4830+ *
4831+ * @since Added in version 3.2.
4832+ *
4833+ * @ingroup input
4834+ */
4835+GLFWAPI const char* glfwGetKeyName(int key, int scancode);
4836+
4837+/*! @brief Returns the platform-specific scancode of the specified key.
4838+ *
4839+ * This function returns the platform-specific scancode of the specified key.
4840+ *
4841+ * If the specified [key token](@ref keys) corresponds to a physical key not
4842+ * supported on the current platform then this method will return `-1`.
4843+ * Calling this function with anything other than a key token will return `-1`
4844+ * and generate a @ref GLFW_INVALID_ENUM error.
4845+ *
4846+ * @param[in] key Any [key token](@ref keys).
4847+ * @return The platform-specific scancode for the key, or `-1` if the key is
4848+ * not supported on the current platform or an [error](@ref error_handling)
4849+ * occurred.
4850+ *
4851+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
4852+ * GLFW_INVALID_ENUM.
4853+ *
4854+ * @thread_safety This function may be called from any thread.
4855+ *
4856+ * @sa @ref input_key
4857+ *
4858+ * @since Added in version 3.3.
4859+ *
4860+ * @ingroup input
4861+ */
4862+GLFWAPI int glfwGetKeyScancode(int key);
4863+
4864+/*! @brief Returns the last reported state of a keyboard key for the specified
4865+ * window.
4866+ *
4867+ * This function returns the last state reported for the specified key to the
4868+ * specified window. The returned state is one of `GLFW_PRESS` or
4869+ * `GLFW_RELEASE`. The action `GLFW_REPEAT` is only reported to the key callback.
4870+ *
4871+ * If the @ref GLFW_STICKY_KEYS input mode is enabled, this function returns
4872+ * `GLFW_PRESS` the first time you call it for a key that was pressed, even if
4873+ * that key has already been released.
4874+ *
4875+ * The key functions deal with physical keys, with [key tokens](@ref keys)
4876+ * named after their use on the standard US keyboard layout. If you want to
4877+ * input text, use the Unicode character callback instead.
4878+ *
4879+ * The [modifier key bit masks](@ref mods) are not key tokens and cannot be
4880+ * used with this function.
4881+ *
4882+ * __Do not use this function__ to implement [text input](@ref input_char).
4883+ *
4884+ * @param[in] window The desired window.
4885+ * @param[in] key The desired [keyboard key](@ref keys). `GLFW_KEY_UNKNOWN` is
4886+ * not a valid key for this function.
4887+ * @return One of `GLFW_PRESS` or `GLFW_RELEASE`.
4888+ *
4889+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
4890+ * GLFW_INVALID_ENUM.
4891+ *
4892+ * @thread_safety This function must only be called from the main thread.
4893+ *
4894+ * @sa @ref input_key
4895+ *
4896+ * @since Added in version 1.0.
4897+ * @glfw3 Added window handle parameter.
4898+ *
4899+ * @ingroup input
4900+ */
4901+GLFWAPI int glfwGetKey(GLFWwindow* window, int key);
4902+
4903+/*! @brief Returns the last reported state of a mouse button for the specified
4904+ * window.
4905+ *
4906+ * This function returns the last state reported for the specified mouse button
4907+ * to the specified window. The returned state is one of `GLFW_PRESS` or
4908+ * `GLFW_RELEASE`.
4909+ *
4910+ * If the @ref GLFW_STICKY_MOUSE_BUTTONS input mode is enabled, this function
4911+ * returns `GLFW_PRESS` the first time you call it for a mouse button that was
4912+ * pressed, even if that mouse button has already been released.
4913+ *
4914+ * @param[in] window The desired window.
4915+ * @param[in] button The desired [mouse button](@ref buttons).
4916+ * @return One of `GLFW_PRESS` or `GLFW_RELEASE`.
4917+ *
4918+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
4919+ * GLFW_INVALID_ENUM.
4920+ *
4921+ * @thread_safety This function must only be called from the main thread.
4922+ *
4923+ * @sa @ref input_mouse_button
4924+ *
4925+ * @since Added in version 1.0.
4926+ * @glfw3 Added window handle parameter.
4927+ *
4928+ * @ingroup input
4929+ */
4930+GLFWAPI int glfwGetMouseButton(GLFWwindow* window, int button);
4931+
4932+/*! @brief Retrieves the position of the cursor relative to the content area of
4933+ * the window.
4934+ *
4935+ * This function returns the position of the cursor, in screen coordinates,
4936+ * relative to the upper-left corner of the content area of the specified
4937+ * window.
4938+ *
4939+ * If the cursor is disabled (with `GLFW_CURSOR_DISABLED`) then the cursor
4940+ * position is unbounded and limited only by the minimum and maximum values of
4941+ * a `double`.
4942+ *
4943+ * The coordinate can be converted to their integer equivalents with the
4944+ * `floor` function. Casting directly to an integer type works for positive
4945+ * coordinates, but fails for negative ones.
4946+ *
4947+ * Any or all of the position arguments may be `NULL`. If an error occurs, all
4948+ * non-`NULL` position arguments will be set to zero.
4949+ *
4950+ * @param[in] window The desired window.
4951+ * @param[out] xpos Where to store the cursor x-coordinate, relative to the
4952+ * left edge of the content area, or `NULL`.
4953+ * @param[out] ypos Where to store the cursor y-coordinate, relative to the to
4954+ * top edge of the content area, or `NULL`.
4955+ *
4956+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
4957+ * GLFW_PLATFORM_ERROR.
4958+ *
4959+ * @thread_safety This function must only be called from the main thread.
4960+ *
4961+ * @sa @ref cursor_pos
4962+ * @sa @ref glfwSetCursorPos
4963+ *
4964+ * @since Added in version 3.0. Replaces `glfwGetMousePos`.
4965+ *
4966+ * @ingroup input
4967+ */
4968+GLFWAPI void glfwGetCursorPos(GLFWwindow* window, double* xpos, double* ypos);
4969+
4970+/*! @brief Sets the position of the cursor, relative to the content area of the
4971+ * window.
4972+ *
4973+ * This function sets the position, in screen coordinates, of the cursor
4974+ * relative to the upper-left corner of the content area of the specified
4975+ * window. The window must have input focus. If the window does not have
4976+ * input focus when this function is called, it fails silently.
4977+ *
4978+ * __Do not use this function__ to implement things like camera controls. GLFW
4979+ * already provides the `GLFW_CURSOR_DISABLED` cursor mode that hides the
4980+ * cursor, transparently re-centers it and provides unconstrained cursor
4981+ * motion. See @ref glfwSetInputMode for more information.
4982+ *
4983+ * If the cursor mode is `GLFW_CURSOR_DISABLED` then the cursor position is
4984+ * unconstrained and limited only by the minimum and maximum values of
4985+ * a `double`.
4986+ *
4987+ * @param[in] window The desired window.
4988+ * @param[in] xpos The desired x-coordinate, relative to the left edge of the
4989+ * content area.
4990+ * @param[in] ypos The desired y-coordinate, relative to the top edge of the
4991+ * content area.
4992+ *
4993+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref
4994+ * GLFW_PLATFORM_ERROR and @ref GLFW_FEATURE_UNAVAILABLE (see remarks).
4995+ *
4996+ * @remark @wayland This function will only work when the cursor mode is
4997+ * `GLFW_CURSOR_DISABLED`, otherwise it will emit @ref GLFW_FEATURE_UNAVAILABLE.
4998+ *
4999+ * @thread_safety This function must only be called from the main thread.
5000+ *
5001+ * @sa @ref cursor_pos
5002+ * @sa @ref glfwGetCursorPos
5003+ *
5004+ * @since Added in version 3.0. Replaces `glfwSetMousePos`.
5005+ *
5006+ * @ingroup input
5007+ */
5008+GLFWAPI void glfwSetCursorPos(GLFWwindow* window, double xpos, double ypos);
5009+
5010+/*! @brief Creates a custom cursor.
5011+ *
5012+ * Creates a new custom cursor image that can be set for a window with @ref
5013+ * glfwSetCursor. The cursor can be destroyed with @ref glfwDestroyCursor.
5014+ * Any remaining cursors are destroyed by @ref glfwTerminate.
5015+ *
5016+ * The pixels are 32-bit, little-endian, non-premultiplied RGBA, i.e. eight
5017+ * bits per channel with the red channel first. They are arranged canonically
5018+ * as packed sequential rows, starting from the top-left corner.
5019+ *
5020+ * The cursor hotspot is specified in pixels, relative to the upper-left corner
5021+ * of the cursor image. Like all other coordinate systems in GLFW, the X-axis
5022+ * points to the right and the Y-axis points down.
5023+ *
5024+ * @param[in] image The desired cursor image.
5025+ * @param[in] xhot The desired x-coordinate, in pixels, of the cursor hotspot.
5026+ * @param[in] yhot The desired y-coordinate, in pixels, of the cursor hotspot.
5027+ * @return The handle of the created cursor, or `NULL` if an
5028+ * [error](@ref error_handling) occurred.
5029+ *
5030+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref
5031+ * GLFW_INVALID_VALUE and @ref GLFW_PLATFORM_ERROR.
5032+ *
5033+ * @pointer_lifetime The specified image data is copied before this function
5034+ * returns.
5035+ *
5036+ * @thread_safety This function must only be called from the main thread.
5037+ *
5038+ * @sa @ref cursor_object
5039+ * @sa @ref glfwDestroyCursor
5040+ * @sa @ref glfwCreateStandardCursor
5041+ *
5042+ * @since Added in version 3.1.
5043+ *
5044+ * @ingroup input
5045+ */
5046+GLFWAPI GLFWcursor* glfwCreateCursor(const GLFWimage* image, int xhot, int yhot);
5047+
5048+/*! @brief Creates a cursor with a standard shape.
5049+ *
5050+ * Returns a cursor with a standard shape, that can be set for a window with
5051+ * @ref glfwSetCursor. The images for these cursors come from the system
5052+ * cursor theme and their exact appearance will vary between platforms.
5053+ *
5054+ * Most of these shapes are guaranteed to exist on every supported platform but
5055+ * a few may not be present. See the table below for details.
5056+ *
5057+ * Cursor shape | Windows | macOS | X11 | Wayland
5058+ * ------------------------------ | ------- | ----- | ------ | -------
5059+ * @ref GLFW_ARROW_CURSOR | Yes | Yes | Yes | Yes
5060+ * @ref GLFW_IBEAM_CURSOR | Yes | Yes | Yes | Yes
5061+ * @ref GLFW_CROSSHAIR_CURSOR | Yes | Yes | Yes | Yes
5062+ * @ref GLFW_POINTING_HAND_CURSOR | Yes | Yes | Yes | Yes
5063+ * @ref GLFW_RESIZE_EW_CURSOR | Yes | Yes | Yes | Yes
5064+ * @ref GLFW_RESIZE_NS_CURSOR | Yes | Yes | Yes | Yes
5065+ * @ref GLFW_RESIZE_NWSE_CURSOR | Yes | Yes<sup>1</sup> | Maybe<sup>2</sup> | Maybe<sup>2</sup>
5066+ * @ref GLFW_RESIZE_NESW_CURSOR | Yes | Yes<sup>1</sup> | Maybe<sup>2</sup> | Maybe<sup>2</sup>
5067+ * @ref GLFW_RESIZE_ALL_CURSOR | Yes | Yes | Yes | Yes
5068+ * @ref GLFW_NOT_ALLOWED_CURSOR | Yes | Yes | Maybe<sup>2</sup> | Maybe<sup>2</sup>
5069+ *
5070+ * 1) This uses a private system API and may fail in the future.
5071+ *
5072+ * 2) This uses a newer standard that not all cursor themes support.
5073+ *
5074+ * If the requested shape is not available, this function emits a @ref
5075+ * GLFW_CURSOR_UNAVAILABLE error and returns `NULL`.
5076+ *
5077+ * @param[in] shape One of the [standard shapes](@ref shapes).
5078+ * @return A new cursor ready to use or `NULL` if an
5079+ * [error](@ref error_handling) occurred.
5080+ *
5081+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref
5082+ * GLFW_INVALID_ENUM, @ref GLFW_CURSOR_UNAVAILABLE and @ref
5083+ * GLFW_PLATFORM_ERROR.
5084+ *
5085+ * @thread_safety This function must only be called from the main thread.
5086+ *
5087+ * @sa @ref cursor_standard
5088+ * @sa @ref glfwCreateCursor
5089+ *
5090+ * @since Added in version 3.1.
5091+ *
5092+ * @ingroup input
5093+ */
5094+GLFWAPI GLFWcursor* glfwCreateStandardCursor(int shape);
5095+
5096+/*! @brief Destroys a cursor.
5097+ *
5098+ * This function destroys a cursor previously created with @ref
5099+ * glfwCreateCursor. Any remaining cursors will be destroyed by @ref
5100+ * glfwTerminate.
5101+ *
5102+ * If the specified cursor is current for any window, that window will be
5103+ * reverted to the default cursor. This does not affect the cursor mode.
5104+ *
5105+ * @param[in] cursor The cursor object to destroy.
5106+ *
5107+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
5108+ * GLFW_PLATFORM_ERROR.
5109+ *
5110+ * @reentrancy This function must not be called from a callback.
5111+ *
5112+ * @thread_safety This function must only be called from the main thread.
5113+ *
5114+ * @sa @ref cursor_object
5115+ * @sa @ref glfwCreateCursor
5116+ *
5117+ * @since Added in version 3.1.
5118+ *
5119+ * @ingroup input
5120+ */
5121+GLFWAPI void glfwDestroyCursor(GLFWcursor* cursor);
5122+
5123+/*! @brief Sets the cursor for the window.
5124+ *
5125+ * This function sets the cursor image to be used when the cursor is over the
5126+ * content area of the specified window. The set cursor will only be visible
5127+ * when the [cursor mode](@ref cursor_mode) of the window is
5128+ * `GLFW_CURSOR_NORMAL`.
5129+ *
5130+ * On some platforms, the set cursor may not be visible unless the window also
5131+ * has input focus.
5132+ *
5133+ * @param[in] window The window to set the cursor for.
5134+ * @param[in] cursor The cursor to set, or `NULL` to switch back to the default
5135+ * arrow cursor.
5136+ *
5137+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
5138+ * GLFW_PLATFORM_ERROR.
5139+ *
5140+ * @thread_safety This function must only be called from the main thread.
5141+ *
5142+ * @sa @ref cursor_object
5143+ *
5144+ * @since Added in version 3.1.
5145+ *
5146+ * @ingroup input
5147+ */
5148+GLFWAPI void glfwSetCursor(GLFWwindow* window, GLFWcursor* cursor);
5149+
5150+/*! @brief Sets the key callback.
5151+ *
5152+ * This function sets the key callback of the specified window, which is called
5153+ * when a key is pressed, repeated or released.
5154+ *
5155+ * The key functions deal with physical keys, with layout independent
5156+ * [key tokens](@ref keys) named after their values in the standard US keyboard
5157+ * layout. If you want to input text, use the
5158+ * [character callback](@ref glfwSetCharCallback) instead.
5159+ *
5160+ * When a window loses input focus, it will generate synthetic key release
5161+ * events for all pressed keys with associated key tokens. You can tell these
5162+ * events from user-generated events by the fact that the synthetic ones are
5163+ * generated after the focus loss event has been processed, i.e. after the
5164+ * [window focus callback](@ref glfwSetWindowFocusCallback) has been called.
5165+ *
5166+ * The scancode of a key is specific to that platform or sometimes even to that
5167+ * machine. Scancodes are intended to allow users to bind keys that don't have
5168+ * a GLFW key token. Such keys have `key` set to `GLFW_KEY_UNKNOWN`, their
5169+ * state is not saved and so it cannot be queried with @ref glfwGetKey.
5170+ *
5171+ * Sometimes GLFW needs to generate synthetic key events, in which case the
5172+ * scancode may be zero.
5173+ *
5174+ * @param[in] window The window whose callback to set.
5175+ * @param[in] callback The new key callback, or `NULL` to remove the currently
5176+ * set callback.
5177+ * @return The previously set callback, or `NULL` if no callback was set or the
5178+ * library had not been [initialized](@ref intro_init).
5179+ *
5180+ * @callback_signature
5181+ * @code
5182+ * void function_name(GLFWwindow* window, int key, int scancode, int action, int mods)
5183+ * @endcode
5184+ * For more information about the callback parameters, see the
5185+ * [function pointer type](@ref GLFWkeyfun).
5186+ *
5187+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
5188+ *
5189+ * @thread_safety This function must only be called from the main thread.
5190+ *
5191+ * @sa @ref input_key
5192+ *
5193+ * @since Added in version 1.0.
5194+ * @glfw3 Added window handle parameter and return value.
5195+ *
5196+ * @ingroup input
5197+ */
5198+GLFWAPI GLFWkeyfun glfwSetKeyCallback(GLFWwindow* window, GLFWkeyfun callback);
5199+
5200+/*! @brief Sets the Unicode character callback.
5201+ *
5202+ * This function sets the character callback of the specified window, which is
5203+ * called when a Unicode character is input.
5204+ *
5205+ * The character callback is intended for Unicode text input. As it deals with
5206+ * characters, it is keyboard layout dependent, whereas the
5207+ * [key callback](@ref glfwSetKeyCallback) is not. Characters do not map 1:1
5208+ * to physical keys, as a key may produce zero, one or more characters. If you
5209+ * want to know whether a specific physical key was pressed or released, see
5210+ * the key callback instead.
5211+ *
5212+ * The character callback behaves as system text input normally does and will
5213+ * not be called if modifier keys are held down that would prevent normal text
5214+ * input on that platform, for example a Super (Command) key on macOS or Alt key
5215+ * on Windows.
5216+ *
5217+ * @param[in] window The window whose callback to set.
5218+ * @param[in] callback The new callback, or `NULL` to remove the currently set
5219+ * callback.
5220+ * @return The previously set callback, or `NULL` if no callback was set or the
5221+ * library had not been [initialized](@ref intro_init).
5222+ *
5223+ * @callback_signature
5224+ * @code
5225+ * void function_name(GLFWwindow* window, unsigned int codepoint)
5226+ * @endcode
5227+ * For more information about the callback parameters, see the
5228+ * [function pointer type](@ref GLFWcharfun).
5229+ *
5230+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
5231+ *
5232+ * @thread_safety This function must only be called from the main thread.
5233+ *
5234+ * @sa @ref input_char
5235+ *
5236+ * @since Added in version 2.4.
5237+ * @glfw3 Added window handle parameter and return value.
5238+ *
5239+ * @ingroup input
5240+ */
5241+GLFWAPI GLFWcharfun glfwSetCharCallback(GLFWwindow* window, GLFWcharfun callback);
5242+
5243+/*! @brief Sets the Unicode character with modifiers callback.
5244+ *
5245+ * This function sets the character with modifiers callback of the specified
5246+ * window, which is called when a Unicode character is input regardless of what
5247+ * modifier keys are used.
5248+ *
5249+ * The character with modifiers callback is intended for implementing custom
5250+ * Unicode character input. For regular Unicode text input, see the
5251+ * [character callback](@ref glfwSetCharCallback). Like the character
5252+ * callback, the character with modifiers callback deals with characters and is
5253+ * keyboard layout dependent. Characters do not map 1:1 to physical keys, as
5254+ * a key may produce zero, one or more characters. If you want to know whether
5255+ * a specific physical key was pressed or released, see the
5256+ * [key callback](@ref glfwSetKeyCallback) instead.
5257+ *
5258+ * @param[in] window The window whose callback to set.
5259+ * @param[in] callback The new callback, or `NULL` to remove the currently set
5260+ * callback.
5261+ * @return The previously set callback, or `NULL` if no callback was set or an
5262+ * [error](@ref error_handling) occurred.
5263+ *
5264+ * @callback_signature
5265+ * @code
5266+ * void function_name(GLFWwindow* window, unsigned int codepoint, int mods)
5267+ * @endcode
5268+ * For more information about the callback parameters, see the
5269+ * [function pointer type](@ref GLFWcharmodsfun).
5270+ *
5271+ * @deprecated Scheduled for removal in version 4.0.
5272+ *
5273+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
5274+ *
5275+ * @thread_safety This function must only be called from the main thread.
5276+ *
5277+ * @sa @ref input_char
5278+ *
5279+ * @since Added in version 3.1.
5280+ *
5281+ * @ingroup input
5282+ */
5283+GLFWAPI GLFWcharmodsfun glfwSetCharModsCallback(GLFWwindow* window, GLFWcharmodsfun callback);
5284+
5285+/*! @brief Sets the mouse button callback.
5286+ *
5287+ * This function sets the mouse button callback of the specified window, which
5288+ * is called when a mouse button is pressed or released.
5289+ *
5290+ * When a window loses input focus, it will generate synthetic mouse button
5291+ * release events for all pressed mouse buttons. You can tell these events
5292+ * from user-generated events by the fact that the synthetic ones are generated
5293+ * after the focus loss event has been processed, i.e. after the
5294+ * [window focus callback](@ref glfwSetWindowFocusCallback) has been called.
5295+ *
5296+ * @param[in] window The window whose callback to set.
5297+ * @param[in] callback The new callback, or `NULL` to remove the currently set
5298+ * callback.
5299+ * @return The previously set callback, or `NULL` if no callback was set or the
5300+ * library had not been [initialized](@ref intro_init).
5301+ *
5302+ * @callback_signature
5303+ * @code
5304+ * void function_name(GLFWwindow* window, int button, int action, int mods)
5305+ * @endcode
5306+ * For more information about the callback parameters, see the
5307+ * [function pointer type](@ref GLFWmousebuttonfun).
5308+ *
5309+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
5310+ *
5311+ * @thread_safety This function must only be called from the main thread.
5312+ *
5313+ * @sa @ref input_mouse_button
5314+ *
5315+ * @since Added in version 1.0.
5316+ * @glfw3 Added window handle parameter and return value.
5317+ *
5318+ * @ingroup input
5319+ */
5320+GLFWAPI GLFWmousebuttonfun glfwSetMouseButtonCallback(GLFWwindow* window, GLFWmousebuttonfun callback);
5321+
5322+/*! @brief Sets the cursor position callback.
5323+ *
5324+ * This function sets the cursor position callback of the specified window,
5325+ * which is called when the cursor is moved. The callback is provided with the
5326+ * position, in screen coordinates, relative to the upper-left corner of the
5327+ * content area of the window.
5328+ *
5329+ * @param[in] window The window whose callback to set.
5330+ * @param[in] callback The new callback, or `NULL` to remove the currently set
5331+ * callback.
5332+ * @return The previously set callback, or `NULL` if no callback was set or the
5333+ * library had not been [initialized](@ref intro_init).
5334+ *
5335+ * @callback_signature
5336+ * @code
5337+ * void function_name(GLFWwindow* window, double xpos, double ypos);
5338+ * @endcode
5339+ * For more information about the callback parameters, see the
5340+ * [function pointer type](@ref GLFWcursorposfun).
5341+ *
5342+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
5343+ *
5344+ * @thread_safety This function must only be called from the main thread.
5345+ *
5346+ * @sa @ref cursor_pos
5347+ *
5348+ * @since Added in version 3.0. Replaces `glfwSetMousePosCallback`.
5349+ *
5350+ * @ingroup input
5351+ */
5352+GLFWAPI GLFWcursorposfun glfwSetCursorPosCallback(GLFWwindow* window, GLFWcursorposfun callback);
5353+
5354+/*! @brief Sets the cursor enter/leave callback.
5355+ *
5356+ * This function sets the cursor boundary crossing callback of the specified
5357+ * window, which is called when the cursor enters or leaves the content area of
5358+ * the window.
5359+ *
5360+ * @param[in] window The window whose callback to set.
5361+ * @param[in] callback The new callback, or `NULL` to remove the currently set
5362+ * callback.
5363+ * @return The previously set callback, or `NULL` if no callback was set or the
5364+ * library had not been [initialized](@ref intro_init).
5365+ *
5366+ * @callback_signature
5367+ * @code
5368+ * void function_name(GLFWwindow* window, int entered)
5369+ * @endcode
5370+ * For more information about the callback parameters, see the
5371+ * [function pointer type](@ref GLFWcursorenterfun).
5372+ *
5373+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
5374+ *
5375+ * @thread_safety This function must only be called from the main thread.
5376+ *
5377+ * @sa @ref cursor_enter
5378+ *
5379+ * @since Added in version 3.0.
5380+ *
5381+ * @ingroup input
5382+ */
5383+GLFWAPI GLFWcursorenterfun glfwSetCursorEnterCallback(GLFWwindow* window, GLFWcursorenterfun callback);
5384+
5385+/*! @brief Sets the scroll callback.
5386+ *
5387+ * This function sets the scroll callback of the specified window, which is
5388+ * called when a scrolling device is used, such as a mouse wheel or scrolling
5389+ * area of a touchpad.
5390+ *
5391+ * The scroll callback receives all scrolling input, like that from a mouse
5392+ * wheel or a touchpad scrolling area.
5393+ *
5394+ * @param[in] window The window whose callback to set.
5395+ * @param[in] callback The new scroll callback, or `NULL` to remove the
5396+ * currently set callback.
5397+ * @return The previously set callback, or `NULL` if no callback was set or the
5398+ * library had not been [initialized](@ref intro_init).
5399+ *
5400+ * @callback_signature
5401+ * @code
5402+ * void function_name(GLFWwindow* window, double xoffset, double yoffset)
5403+ * @endcode
5404+ * For more information about the callback parameters, see the
5405+ * [function pointer type](@ref GLFWscrollfun).
5406+ *
5407+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
5408+ *
5409+ * @thread_safety This function must only be called from the main thread.
5410+ *
5411+ * @sa @ref scrolling
5412+ *
5413+ * @since Added in version 3.0. Replaces `glfwSetMouseWheelCallback`.
5414+ *
5415+ * @ingroup input
5416+ */
5417+GLFWAPI GLFWscrollfun glfwSetScrollCallback(GLFWwindow* window, GLFWscrollfun callback);
5418+
5419+/*! @brief Sets the path drop callback.
5420+ *
5421+ * This function sets the path drop callback of the specified window, which is
5422+ * called when one or more dragged paths are dropped on the window.
5423+ *
5424+ * Because the path array and its strings may have been generated specifically
5425+ * for that event, they are not guaranteed to be valid after the callback has
5426+ * returned. If you wish to use them after the callback returns, you need to
5427+ * make a deep copy.
5428+ *
5429+ * @param[in] window The window whose callback to set.
5430+ * @param[in] callback The new file drop callback, or `NULL` to remove the
5431+ * currently set callback.
5432+ * @return The previously set callback, or `NULL` if no callback was set or the
5433+ * library had not been [initialized](@ref intro_init).
5434+ *
5435+ * @callback_signature
5436+ * @code
5437+ * void function_name(GLFWwindow* window, int path_count, const char* paths[])
5438+ * @endcode
5439+ * For more information about the callback parameters, see the
5440+ * [function pointer type](@ref GLFWdropfun).
5441+ *
5442+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
5443+ *
5444+ * @thread_safety This function must only be called from the main thread.
5445+ *
5446+ * @sa @ref path_drop
5447+ *
5448+ * @since Added in version 3.1.
5449+ *
5450+ * @ingroup input
5451+ */
5452+GLFWAPI GLFWdropfun glfwSetDropCallback(GLFWwindow* window, GLFWdropfun callback);
5453+
5454+/*! @brief Returns whether the specified joystick is present.
5455+ *
5456+ * This function returns whether the specified joystick is present.
5457+ *
5458+ * There is no need to call this function before other functions that accept
5459+ * a joystick ID, as they all check for presence before performing any other
5460+ * work.
5461+ *
5462+ * @param[in] jid The [joystick](@ref joysticks) to query.
5463+ * @return `GLFW_TRUE` if the joystick is present, or `GLFW_FALSE` otherwise.
5464+ *
5465+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref
5466+ * GLFW_INVALID_ENUM and @ref GLFW_PLATFORM_ERROR.
5467+ *
5468+ * @thread_safety This function must only be called from the main thread.
5469+ *
5470+ * @sa @ref joystick
5471+ *
5472+ * @since Added in version 3.0. Replaces `glfwGetJoystickParam`.
5473+ *
5474+ * @ingroup input
5475+ */
5476+GLFWAPI int glfwJoystickPresent(int jid);
5477+
5478+/*! @brief Returns the values of all axes of the specified joystick.
5479+ *
5480+ * This function returns the values of all axes of the specified joystick.
5481+ * Each element in the array is a value between -1.0 and 1.0.
5482+ *
5483+ * If the specified joystick is not present this function will return `NULL`
5484+ * but will not generate an error. This can be used instead of first calling
5485+ * @ref glfwJoystickPresent.
5486+ *
5487+ * @param[in] jid The [joystick](@ref joysticks) to query.
5488+ * @param[out] count Where to store the number of axis values in the returned
5489+ * array. This is set to zero if the joystick is not present or an error
5490+ * occurred.
5491+ * @return An array of axis values, or `NULL` if the joystick is not present or
5492+ * an [error](@ref error_handling) occurred.
5493+ *
5494+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref
5495+ * GLFW_INVALID_ENUM and @ref GLFW_PLATFORM_ERROR.
5496+ *
5497+ * @pointer_lifetime The returned array is allocated and freed by GLFW. You
5498+ * should not free it yourself. It is valid until the specified joystick is
5499+ * disconnected or the library is terminated.
5500+ *
5501+ * @thread_safety This function must only be called from the main thread.
5502+ *
5503+ * @sa @ref joystick_axis
5504+ *
5505+ * @since Added in version 3.0. Replaces `glfwGetJoystickPos`.
5506+ *
5507+ * @ingroup input
5508+ */
5509+GLFWAPI const float* glfwGetJoystickAxes(int jid, int* count);
5510+
5511+/*! @brief Returns the state of all buttons of the specified joystick.
5512+ *
5513+ * This function returns the state of all buttons of the specified joystick.
5514+ * Each element in the array is either `GLFW_PRESS` or `GLFW_RELEASE`.
5515+ *
5516+ * For backward compatibility with earlier versions that did not have @ref
5517+ * glfwGetJoystickHats, the button array also includes all hats, each
5518+ * represented as four buttons. The hats are in the same order as returned by
5519+ * __glfwGetJoystickHats__ and are in the order _up_, _right_, _down_ and
5520+ * _left_. To disable these extra buttons, set the @ref
5521+ * GLFW_JOYSTICK_HAT_BUTTONS init hint before initialization.
5522+ *
5523+ * If the specified joystick is not present this function will return `NULL`
5524+ * but will not generate an error. This can be used instead of first calling
5525+ * @ref glfwJoystickPresent.
5526+ *
5527+ * @param[in] jid The [joystick](@ref joysticks) to query.
5528+ * @param[out] count Where to store the number of button states in the returned
5529+ * array. This is set to zero if the joystick is not present or an error
5530+ * occurred.
5531+ * @return An array of button states, or `NULL` if the joystick is not present
5532+ * or an [error](@ref error_handling) occurred.
5533+ *
5534+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref
5535+ * GLFW_INVALID_ENUM and @ref GLFW_PLATFORM_ERROR.
5536+ *
5537+ * @pointer_lifetime The returned array is allocated and freed by GLFW. You
5538+ * should not free it yourself. It is valid until the specified joystick is
5539+ * disconnected or the library is terminated.
5540+ *
5541+ * @thread_safety This function must only be called from the main thread.
5542+ *
5543+ * @sa @ref joystick_button
5544+ *
5545+ * @since Added in version 2.2.
5546+ * @glfw3 Changed to return a dynamic array.
5547+ *
5548+ * @ingroup input
5549+ */
5550+GLFWAPI const unsigned char* glfwGetJoystickButtons(int jid, int* count);
5551+
5552+/*! @brief Returns the state of all hats of the specified joystick.
5553+ *
5554+ * This function returns the state of all hats of the specified joystick.
5555+ * Each element in the array is one of the following values:
5556+ *
5557+ * Name | Value
5558+ * ---- | -----
5559+ * `GLFW_HAT_CENTERED` | 0
5560+ * `GLFW_HAT_UP` | 1
5561+ * `GLFW_HAT_RIGHT` | 2
5562+ * `GLFW_HAT_DOWN` | 4
5563+ * `GLFW_HAT_LEFT` | 8
5564+ * `GLFW_HAT_RIGHT_UP` | `GLFW_HAT_RIGHT` \| `GLFW_HAT_UP`
5565+ * `GLFW_HAT_RIGHT_DOWN` | `GLFW_HAT_RIGHT` \| `GLFW_HAT_DOWN`
5566+ * `GLFW_HAT_LEFT_UP` | `GLFW_HAT_LEFT` \| `GLFW_HAT_UP`
5567+ * `GLFW_HAT_LEFT_DOWN` | `GLFW_HAT_LEFT` \| `GLFW_HAT_DOWN`
5568+ *
5569+ * The diagonal directions are bitwise combinations of the primary (up, right,
5570+ * down and left) directions and you can test for these individually by ANDing
5571+ * it with the corresponding direction.
5572+ *
5573+ * @code
5574+ * if (hats[2] & GLFW_HAT_RIGHT)
5575+ * {
5576+ * // State of hat 2 could be right-up, right or right-down
5577+ * }
5578+ * @endcode
5579+ *
5580+ * If the specified joystick is not present this function will return `NULL`
5581+ * but will not generate an error. This can be used instead of first calling
5582+ * @ref glfwJoystickPresent.
5583+ *
5584+ * @param[in] jid The [joystick](@ref joysticks) to query.
5585+ * @param[out] count Where to store the number of hat states in the returned
5586+ * array. This is set to zero if the joystick is not present or an error
5587+ * occurred.
5588+ * @return An array of hat states, or `NULL` if the joystick is not present
5589+ * or an [error](@ref error_handling) occurred.
5590+ *
5591+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref
5592+ * GLFW_INVALID_ENUM and @ref GLFW_PLATFORM_ERROR.
5593+ *
5594+ * @pointer_lifetime The returned array is allocated and freed by GLFW. You
5595+ * should not free it yourself. It is valid until the specified joystick is
5596+ * disconnected, this function is called again for that joystick or the library
5597+ * is terminated.
5598+ *
5599+ * @thread_safety This function must only be called from the main thread.
5600+ *
5601+ * @sa @ref joystick_hat
5602+ *
5603+ * @since Added in version 3.3.
5604+ *
5605+ * @ingroup input
5606+ */
5607+GLFWAPI const unsigned char* glfwGetJoystickHats(int jid, int* count);
5608+
5609+/*! @brief Returns the name of the specified joystick.
5610+ *
5611+ * This function returns the name, encoded as UTF-8, of the specified joystick.
5612+ * The returned string is allocated and freed by GLFW. You should not free it
5613+ * yourself.
5614+ *
5615+ * If the specified joystick is not present this function will return `NULL`
5616+ * but will not generate an error. This can be used instead of first calling
5617+ * @ref glfwJoystickPresent.
5618+ *
5619+ * @param[in] jid The [joystick](@ref joysticks) to query.
5620+ * @return The UTF-8 encoded name of the joystick, or `NULL` if the joystick
5621+ * is not present or an [error](@ref error_handling) occurred.
5622+ *
5623+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref
5624+ * GLFW_INVALID_ENUM and @ref GLFW_PLATFORM_ERROR.
5625+ *
5626+ * @pointer_lifetime The returned string is allocated and freed by GLFW. You
5627+ * should not free it yourself. It is valid until the specified joystick is
5628+ * disconnected or the library is terminated.
5629+ *
5630+ * @thread_safety This function must only be called from the main thread.
5631+ *
5632+ * @sa @ref joystick_name
5633+ *
5634+ * @since Added in version 3.0.
5635+ *
5636+ * @ingroup input
5637+ */
5638+GLFWAPI const char* glfwGetJoystickName(int jid);
5639+
5640+/*! @brief Returns the SDL compatible GUID of the specified joystick.
5641+ *
5642+ * This function returns the SDL compatible GUID, as a UTF-8 encoded
5643+ * hexadecimal string, of the specified joystick. The returned string is
5644+ * allocated and freed by GLFW. You should not free it yourself.
5645+ *
5646+ * The GUID is what connects a joystick to a gamepad mapping. A connected
5647+ * joystick will always have a GUID even if there is no gamepad mapping
5648+ * assigned to it.
5649+ *
5650+ * If the specified joystick is not present this function will return `NULL`
5651+ * but will not generate an error. This can be used instead of first calling
5652+ * @ref glfwJoystickPresent.
5653+ *
5654+ * The GUID uses the format introduced in SDL 2.0.5. This GUID tries to
5655+ * uniquely identify the make and model of a joystick but does not identify
5656+ * a specific unit, e.g. all wired Xbox 360 controllers will have the same
5657+ * GUID on that platform. The GUID for a unit may vary between platforms
5658+ * depending on what hardware information the platform specific APIs provide.
5659+ *
5660+ * @param[in] jid The [joystick](@ref joysticks) to query.
5661+ * @return The UTF-8 encoded GUID of the joystick, or `NULL` if the joystick
5662+ * is not present or an [error](@ref error_handling) occurred.
5663+ *
5664+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref
5665+ * GLFW_INVALID_ENUM and @ref GLFW_PLATFORM_ERROR.
5666+ *
5667+ * @pointer_lifetime The returned string is allocated and freed by GLFW. You
5668+ * should not free it yourself. It is valid until the specified joystick is
5669+ * disconnected or the library is terminated.
5670+ *
5671+ * @thread_safety This function must only be called from the main thread.
5672+ *
5673+ * @sa @ref gamepad
5674+ *
5675+ * @since Added in version 3.3.
5676+ *
5677+ * @ingroup input
5678+ */
5679+GLFWAPI const char* glfwGetJoystickGUID(int jid);
5680+
5681+/*! @brief Sets the user pointer of the specified joystick.
5682+ *
5683+ * This function sets the user-defined pointer of the specified joystick. The
5684+ * current value is retained until the joystick is disconnected. The initial
5685+ * value is `NULL`.
5686+ *
5687+ * This function may be called from the joystick callback, even for a joystick
5688+ * that is being disconnected.
5689+ *
5690+ * @param[in] jid The joystick whose pointer to set.
5691+ * @param[in] pointer The new value.
5692+ *
5693+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
5694+ *
5695+ * @thread_safety This function may be called from any thread. Access is not
5696+ * synchronized.
5697+ *
5698+ * @sa @ref joystick_userptr
5699+ * @sa @ref glfwGetJoystickUserPointer
5700+ *
5701+ * @since Added in version 3.3.
5702+ *
5703+ * @ingroup input
5704+ */
5705+GLFWAPI void glfwSetJoystickUserPointer(int jid, void* pointer);
5706+
5707+/*! @brief Returns the user pointer of the specified joystick.
5708+ *
5709+ * This function returns the current value of the user-defined pointer of the
5710+ * specified joystick. The initial value is `NULL`.
5711+ *
5712+ * This function may be called from the joystick callback, even for a joystick
5713+ * that is being disconnected.
5714+ *
5715+ * @param[in] jid The joystick whose pointer to return.
5716+ *
5717+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
5718+ *
5719+ * @thread_safety This function may be called from any thread. Access is not
5720+ * synchronized.
5721+ *
5722+ * @sa @ref joystick_userptr
5723+ * @sa @ref glfwSetJoystickUserPointer
5724+ *
5725+ * @since Added in version 3.3.
5726+ *
5727+ * @ingroup input
5728+ */
5729+GLFWAPI void* glfwGetJoystickUserPointer(int jid);
5730+
5731+/*! @brief Returns whether the specified joystick has a gamepad mapping.
5732+ *
5733+ * This function returns whether the specified joystick is both present and has
5734+ * a gamepad mapping.
5735+ *
5736+ * If the specified joystick is present but does not have a gamepad mapping
5737+ * this function will return `GLFW_FALSE` but will not generate an error. Call
5738+ * @ref glfwJoystickPresent to check if a joystick is present regardless of
5739+ * whether it has a mapping.
5740+ *
5741+ * @param[in] jid The [joystick](@ref joysticks) to query.
5742+ * @return `GLFW_TRUE` if a joystick is both present and has a gamepad mapping,
5743+ * or `GLFW_FALSE` otherwise.
5744+ *
5745+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
5746+ * GLFW_INVALID_ENUM.
5747+ *
5748+ * @thread_safety This function must only be called from the main thread.
5749+ *
5750+ * @sa @ref gamepad
5751+ * @sa @ref glfwGetGamepadState
5752+ *
5753+ * @since Added in version 3.3.
5754+ *
5755+ * @ingroup input
5756+ */
5757+GLFWAPI int glfwJoystickIsGamepad(int jid);
5758+
5759+/*! @brief Sets the joystick configuration callback.
5760+ *
5761+ * This function sets the joystick configuration callback, or removes the
5762+ * currently set callback. This is called when a joystick is connected to or
5763+ * disconnected from the system.
5764+ *
5765+ * For joystick connection and disconnection events to be delivered on all
5766+ * platforms, you need to call one of the [event processing](@ref events)
5767+ * functions. Joystick disconnection may also be detected and the callback
5768+ * called by joystick functions. The function will then return whatever it
5769+ * returns if the joystick is not present.
5770+ *
5771+ * @param[in] callback The new callback, or `NULL` to remove the currently set
5772+ * callback.
5773+ * @return The previously set callback, or `NULL` if no callback was set or the
5774+ * library had not been [initialized](@ref intro_init).
5775+ *
5776+ * @callback_signature
5777+ * @code
5778+ * void function_name(int jid, int event)
5779+ * @endcode
5780+ * For more information about the callback parameters, see the
5781+ * [function pointer type](@ref GLFWjoystickfun).
5782+ *
5783+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
5784+ *
5785+ * @thread_safety This function must only be called from the main thread.
5786+ *
5787+ * @sa @ref joystick_event
5788+ *
5789+ * @since Added in version 3.2.
5790+ *
5791+ * @ingroup input
5792+ */
5793+GLFWAPI GLFWjoystickfun glfwSetJoystickCallback(GLFWjoystickfun callback);
5794+
5795+/*! @brief Adds the specified SDL_GameControllerDB gamepad mappings.
5796+ *
5797+ * This function parses the specified ASCII encoded string and updates the
5798+ * internal list with any gamepad mappings it finds. This string may
5799+ * contain either a single gamepad mapping or many mappings separated by
5800+ * newlines. The parser supports the full format of the `gamecontrollerdb.txt`
5801+ * source file including empty lines and comments.
5802+ *
5803+ * See @ref gamepad_mapping for a description of the format.
5804+ *
5805+ * If there is already a gamepad mapping for a given GUID in the internal list,
5806+ * it will be replaced by the one passed to this function. If the library is
5807+ * terminated and re-initialized the internal list will revert to the built-in
5808+ * default.
5809+ *
5810+ * @param[in] string The string containing the gamepad mappings.
5811+ * @return `GLFW_TRUE` if successful, or `GLFW_FALSE` if an
5812+ * [error](@ref error_handling) occurred.
5813+ *
5814+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
5815+ * GLFW_INVALID_VALUE.
5816+ *
5817+ * @thread_safety This function must only be called from the main thread.
5818+ *
5819+ * @sa @ref gamepad
5820+ * @sa @ref glfwJoystickIsGamepad
5821+ * @sa @ref glfwGetGamepadName
5822+ *
5823+ * @since Added in version 3.3.
5824+ *
5825+ * @ingroup input
5826+ */
5827+GLFWAPI int glfwUpdateGamepadMappings(const char* string);
5828+
5829+/*! @brief Returns the human-readable gamepad name for the specified joystick.
5830+ *
5831+ * This function returns the human-readable name of the gamepad from the
5832+ * gamepad mapping assigned to the specified joystick.
5833+ *
5834+ * If the specified joystick is not present or does not have a gamepad mapping
5835+ * this function will return `NULL` but will not generate an error. Call
5836+ * @ref glfwJoystickPresent to check whether it is present regardless of
5837+ * whether it has a mapping.
5838+ *
5839+ * @param[in] jid The [joystick](@ref joysticks) to query.
5840+ * @return The UTF-8 encoded name of the gamepad, or `NULL` if the
5841+ * joystick is not present, does not have a mapping or an
5842+ * [error](@ref error_handling) occurred.
5843+ *
5844+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref GLFW_INVALID_ENUM.
5845+ *
5846+ * @pointer_lifetime The returned string is allocated and freed by GLFW. You
5847+ * should not free it yourself. It is valid until the specified joystick is
5848+ * disconnected, the gamepad mappings are updated or the library is terminated.
5849+ *
5850+ * @thread_safety This function must only be called from the main thread.
5851+ *
5852+ * @sa @ref gamepad
5853+ * @sa @ref glfwJoystickIsGamepad
5854+ *
5855+ * @since Added in version 3.3.
5856+ *
5857+ * @ingroup input
5858+ */
5859+GLFWAPI const char* glfwGetGamepadName(int jid);
5860+
5861+/*! @brief Retrieves the state of the specified joystick remapped as a gamepad.
5862+ *
5863+ * This function retrieves the state of the specified joystick remapped to
5864+ * an Xbox-like gamepad.
5865+ *
5866+ * If the specified joystick is not present or does not have a gamepad mapping
5867+ * this function will return `GLFW_FALSE` but will not generate an error. Call
5868+ * @ref glfwJoystickPresent to check whether it is present regardless of
5869+ * whether it has a mapping.
5870+ *
5871+ * The Guide button may not be available for input as it is often hooked by the
5872+ * system or the Steam client.
5873+ *
5874+ * Not all devices have all the buttons or axes provided by @ref
5875+ * GLFWgamepadstate. Unavailable buttons and axes will always report
5876+ * `GLFW_RELEASE` and 0.0 respectively.
5877+ *
5878+ * @param[in] jid The [joystick](@ref joysticks) to query.
5879+ * @param[out] state The gamepad input state of the joystick.
5880+ * @return `GLFW_TRUE` if successful, or `GLFW_FALSE` if no joystick is
5881+ * connected, it has no gamepad mapping or an [error](@ref error_handling)
5882+ * occurred.
5883+ *
5884+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
5885+ * GLFW_INVALID_ENUM.
5886+ *
5887+ * @thread_safety This function must only be called from the main thread.
5888+ *
5889+ * @sa @ref gamepad
5890+ * @sa @ref glfwUpdateGamepadMappings
5891+ * @sa @ref glfwJoystickIsGamepad
5892+ *
5893+ * @since Added in version 3.3.
5894+ *
5895+ * @ingroup input
5896+ */
5897+GLFWAPI int glfwGetGamepadState(int jid, GLFWgamepadstate* state);
5898+
5899+/*! @brief Sets the clipboard to the specified string.
5900+ *
5901+ * This function sets the system clipboard to the specified, UTF-8 encoded
5902+ * string.
5903+ *
5904+ * @param[in] window Deprecated. Any valid window or `NULL`.
5905+ * @param[in] string A UTF-8 encoded string.
5906+ *
5907+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
5908+ * GLFW_PLATFORM_ERROR.
5909+ *
5910+ * @remark @win32 The clipboard on Windows has a single global lock for reading and
5911+ * writing. GLFW tries to acquire it a few times, which is almost always enough. If it
5912+ * cannot acquire the lock then this function emits @ref GLFW_PLATFORM_ERROR and returns.
5913+ * It is safe to try this multiple times.
5914+ *
5915+ * @pointer_lifetime The specified string is copied before this function
5916+ * returns.
5917+ *
5918+ * @thread_safety This function must only be called from the main thread.
5919+ *
5920+ * @sa @ref clipboard
5921+ * @sa @ref glfwGetClipboardString
5922+ *
5923+ * @since Added in version 3.0.
5924+ *
5925+ * @ingroup input
5926+ */
5927+GLFWAPI void glfwSetClipboardString(GLFWwindow* window, const char* string);
5928+
5929+/*! @brief Returns the contents of the clipboard as a string.
5930+ *
5931+ * This function returns the contents of the system clipboard, if it contains
5932+ * or is convertible to a UTF-8 encoded string. If the clipboard is empty or
5933+ * if its contents cannot be converted, `NULL` is returned and a @ref
5934+ * GLFW_FORMAT_UNAVAILABLE error is generated.
5935+ *
5936+ * @param[in] window Deprecated. Any valid window or `NULL`.
5937+ * @return The contents of the clipboard as a UTF-8 encoded string, or `NULL`
5938+ * if an [error](@ref error_handling) occurred.
5939+ *
5940+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref
5941+ * GLFW_FORMAT_UNAVAILABLE and @ref GLFW_PLATFORM_ERROR.
5942+ *
5943+ * @remark @win32 The clipboard on Windows has a single global lock for reading and
5944+ * writing. GLFW tries to acquire it a few times, which is almost always enough. If it
5945+ * cannot acquire the lock then this function emits @ref GLFW_PLATFORM_ERROR and returns.
5946+ * It is safe to try this multiple times.
5947+ *
5948+ * @pointer_lifetime The returned string is allocated and freed by GLFW. You
5949+ * should not free it yourself. It is valid until the next call to @ref
5950+ * glfwGetClipboardString or @ref glfwSetClipboardString, or until the library
5951+ * is terminated.
5952+ *
5953+ * @thread_safety This function must only be called from the main thread.
5954+ *
5955+ * @sa @ref clipboard
5956+ * @sa @ref glfwSetClipboardString
5957+ *
5958+ * @since Added in version 3.0.
5959+ *
5960+ * @ingroup input
5961+ */
5962+GLFWAPI const char* glfwGetClipboardString(GLFWwindow* window);
5963+
5964+/*! @brief Returns the GLFW time.
5965+ *
5966+ * This function returns the current GLFW time, in seconds. Unless the time
5967+ * has been set using @ref glfwSetTime it measures time elapsed since GLFW was
5968+ * initialized.
5969+ *
5970+ * This function and @ref glfwSetTime are helper functions on top of @ref
5971+ * glfwGetTimerFrequency and @ref glfwGetTimerValue.
5972+ *
5973+ * The resolution of the timer is system dependent, but is usually on the order
5974+ * of a few micro- or nanoseconds. It uses the highest-resolution monotonic
5975+ * time source on each operating system.
5976+ *
5977+ * @return The current time, in seconds, or zero if an
5978+ * [error](@ref error_handling) occurred.
5979+ *
5980+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
5981+ *
5982+ * @thread_safety This function may be called from any thread. Reading and
5983+ * writing of the internal base time is not atomic, so it needs to be
5984+ * externally synchronized with calls to @ref glfwSetTime.
5985+ *
5986+ * @sa @ref time
5987+ *
5988+ * @since Added in version 1.0.
5989+ *
5990+ * @ingroup input
5991+ */
5992+GLFWAPI double glfwGetTime(void);
5993+
5994+/*! @brief Sets the GLFW time.
5995+ *
5996+ * This function sets the current GLFW time, in seconds. The value must be
5997+ * a positive finite number less than or equal to 18446744073.0, which is
5998+ * approximately 584.5 years.
5999+ *
6000+ * This function and @ref glfwGetTime are helper functions on top of @ref
6001+ * glfwGetTimerFrequency and @ref glfwGetTimerValue.
6002+ *
6003+ * @param[in] time The new value, in seconds.
6004+ *
6005+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
6006+ * GLFW_INVALID_VALUE.
6007+ *
6008+ * @remark The upper limit of GLFW time is calculated as
6009+ * floor((2<sup>64</sup> - 1) / 10<sup>9</sup>) and is due to implementations
6010+ * storing nanoseconds in 64 bits. The limit may be increased in the future.
6011+ *
6012+ * @thread_safety This function may be called from any thread. Reading and
6013+ * writing of the internal base time is not atomic, so it needs to be
6014+ * externally synchronized with calls to @ref glfwGetTime.
6015+ *
6016+ * @sa @ref time
6017+ *
6018+ * @since Added in version 2.2.
6019+ *
6020+ * @ingroup input
6021+ */
6022+GLFWAPI void glfwSetTime(double time);
6023+
6024+/*! @brief Returns the current value of the raw timer.
6025+ *
6026+ * This function returns the current value of the raw timer, measured in
6027+ * 1&nbsp;/&nbsp;frequency seconds. To get the frequency, call @ref
6028+ * glfwGetTimerFrequency.
6029+ *
6030+ * @return The value of the timer, or zero if an
6031+ * [error](@ref error_handling) occurred.
6032+ *
6033+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
6034+ *
6035+ * @thread_safety This function may be called from any thread.
6036+ *
6037+ * @sa @ref time
6038+ * @sa @ref glfwGetTimerFrequency
6039+ *
6040+ * @since Added in version 3.2.
6041+ *
6042+ * @ingroup input
6043+ */
6044+GLFWAPI uint64_t glfwGetTimerValue(void);
6045+
6046+/*! @brief Returns the frequency, in Hz, of the raw timer.
6047+ *
6048+ * This function returns the frequency, in Hz, of the raw timer.
6049+ *
6050+ * @return The frequency of the timer, in Hz, or zero if an
6051+ * [error](@ref error_handling) occurred.
6052+ *
6053+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
6054+ *
6055+ * @thread_safety This function may be called from any thread.
6056+ *
6057+ * @sa @ref time
6058+ * @sa @ref glfwGetTimerValue
6059+ *
6060+ * @since Added in version 3.2.
6061+ *
6062+ * @ingroup input
6063+ */
6064+GLFWAPI uint64_t glfwGetTimerFrequency(void);
6065+
6066+/*! @brief Makes the context of the specified window current for the calling
6067+ * thread.
6068+ *
6069+ * This function makes the OpenGL or OpenGL ES context of the specified window
6070+ * current on the calling thread. It can also detach the current context from
6071+ * the calling thread without making a new one current by passing in `NULL`.
6072+ *
6073+ * A context must only be made current on a single thread at a time and each
6074+ * thread can have only a single current context at a time. Making a context
6075+ * current detaches any previously current context on the calling thread.
6076+ *
6077+ * When moving a context between threads, you must detach it (make it
6078+ * non-current) on the old thread before making it current on the new one.
6079+ *
6080+ * By default, making a context non-current implicitly forces a pipeline flush.
6081+ * On machines that support `GL_KHR_context_flush_control`, you can control
6082+ * whether a context performs this flush by setting the
6083+ * [GLFW_CONTEXT_RELEASE_BEHAVIOR](@ref GLFW_CONTEXT_RELEASE_BEHAVIOR_hint)
6084+ * hint.
6085+ *
6086+ * The specified window must have an OpenGL or OpenGL ES context. Specifying
6087+ * a window without a context will generate a @ref GLFW_NO_WINDOW_CONTEXT
6088+ * error.
6089+ *
6090+ * @param[in] window The window whose context to make current, or `NULL` to
6091+ * detach the current context.
6092+ *
6093+ * @remarks If the previously current context was created via a different
6094+ * context creation API than the one passed to this function, GLFW will still
6095+ * detach the previous one from its API before making the new one current.
6096+ *
6097+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref
6098+ * GLFW_NO_WINDOW_CONTEXT and @ref GLFW_PLATFORM_ERROR.
6099+ *
6100+ * @thread_safety This function may be called from any thread.
6101+ *
6102+ * @sa @ref context_current
6103+ * @sa @ref glfwGetCurrentContext
6104+ *
6105+ * @since Added in version 3.0.
6106+ *
6107+ * @ingroup context
6108+ */
6109+GLFWAPI void glfwMakeContextCurrent(GLFWwindow* window);
6110+
6111+/*! @brief Returns the window whose context is current on the calling thread.
6112+ *
6113+ * This function returns the window whose OpenGL or OpenGL ES context is
6114+ * current on the calling thread.
6115+ *
6116+ * @return The window whose context is current, or `NULL` if no window's
6117+ * context is current.
6118+ *
6119+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
6120+ *
6121+ * @thread_safety This function may be called from any thread.
6122+ *
6123+ * @sa @ref context_current
6124+ * @sa @ref glfwMakeContextCurrent
6125+ *
6126+ * @since Added in version 3.0.
6127+ *
6128+ * @ingroup context
6129+ */
6130+GLFWAPI GLFWwindow* glfwGetCurrentContext(void);
6131+
6132+/*! @brief Swaps the front and back buffers of the specified window.
6133+ *
6134+ * This function swaps the front and back buffers of the specified window when
6135+ * rendering with OpenGL or OpenGL ES. If the swap interval is greater than
6136+ * zero, the GPU driver waits the specified number of screen updates before
6137+ * swapping the buffers.
6138+ *
6139+ * The specified window must have an OpenGL or OpenGL ES context. Specifying
6140+ * a window without a context will generate a @ref GLFW_NO_WINDOW_CONTEXT
6141+ * error.
6142+ *
6143+ * This function does not apply to Vulkan. If you are rendering with Vulkan,
6144+ * see `vkQueuePresentKHR` instead.
6145+ *
6146+ * @param[in] window The window whose buffers to swap.
6147+ *
6148+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref
6149+ * GLFW_NO_WINDOW_CONTEXT and @ref GLFW_PLATFORM_ERROR.
6150+ *
6151+ * @remark __EGL:__ The context of the specified window must be current on the
6152+ * calling thread.
6153+ *
6154+ * @thread_safety This function may be called from any thread.
6155+ *
6156+ * @sa @ref buffer_swap
6157+ * @sa @ref glfwSwapInterval
6158+ *
6159+ * @since Added in version 1.0.
6160+ * @glfw3 Added window handle parameter.
6161+ *
6162+ * @ingroup window
6163+ */
6164+GLFWAPI void glfwSwapBuffers(GLFWwindow* window);
6165+
6166+/*! @brief Sets the swap interval for the current context.
6167+ *
6168+ * This function sets the swap interval for the current OpenGL or OpenGL ES
6169+ * context, i.e. the number of screen updates to wait from the time @ref
6170+ * glfwSwapBuffers was called before swapping the buffers and returning. This
6171+ * is sometimes called _vertical synchronization_, _vertical retrace
6172+ * synchronization_ or just _vsync_.
6173+ *
6174+ * A context that supports either of the `WGL_EXT_swap_control_tear` and
6175+ * `GLX_EXT_swap_control_tear` extensions also accepts _negative_ swap
6176+ * intervals, which allows the driver to swap immediately even if a frame
6177+ * arrives a little bit late. You can check for these extensions with @ref
6178+ * glfwExtensionSupported.
6179+ *
6180+ * A context must be current on the calling thread. Calling this function
6181+ * without a current context will cause a @ref GLFW_NO_CURRENT_CONTEXT error.
6182+ *
6183+ * This function does not apply to Vulkan. If you are rendering with Vulkan,
6184+ * see the present mode of your swapchain instead.
6185+ *
6186+ * @param[in] interval The minimum number of screen updates to wait for
6187+ * until the buffers are swapped by @ref glfwSwapBuffers.
6188+ *
6189+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref
6190+ * GLFW_NO_CURRENT_CONTEXT and @ref GLFW_PLATFORM_ERROR.
6191+ *
6192+ * @remark This function is not called during context creation, leaving the
6193+ * swap interval set to whatever is the default for that API. This is done
6194+ * because some swap interval extensions used by GLFW do not allow the swap
6195+ * interval to be reset to zero once it has been set to a non-zero value.
6196+ *
6197+ * @remark Some GPU drivers do not honor the requested swap interval, either
6198+ * because of a user setting that overrides the application's request or due to
6199+ * bugs in the driver.
6200+ *
6201+ * @thread_safety This function may be called from any thread.
6202+ *
6203+ * @sa @ref buffer_swap
6204+ * @sa @ref glfwSwapBuffers
6205+ *
6206+ * @since Added in version 1.0.
6207+ *
6208+ * @ingroup context
6209+ */
6210+GLFWAPI void glfwSwapInterval(int interval);
6211+
6212+/*! @brief Returns whether the specified extension is available.
6213+ *
6214+ * This function returns whether the specified
6215+ * [API extension](@ref context_glext) is supported by the current OpenGL or
6216+ * OpenGL ES context. It searches both for client API extension and context
6217+ * creation API extensions.
6218+ *
6219+ * A context must be current on the calling thread. Calling this function
6220+ * without a current context will cause a @ref GLFW_NO_CURRENT_CONTEXT error.
6221+ *
6222+ * As this functions retrieves and searches one or more extension strings each
6223+ * call, it is recommended that you cache its results if it is going to be used
6224+ * frequently. The extension strings will not change during the lifetime of
6225+ * a context, so there is no danger in doing this.
6226+ *
6227+ * This function does not apply to Vulkan. If you are using Vulkan, see @ref
6228+ * glfwGetRequiredInstanceExtensions, `vkEnumerateInstanceExtensionProperties`
6229+ * and `vkEnumerateDeviceExtensionProperties` instead.
6230+ *
6231+ * @param[in] extension The ASCII encoded name of the extension.
6232+ * @return `GLFW_TRUE` if the extension is available, or `GLFW_FALSE`
6233+ * otherwise.
6234+ *
6235+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref
6236+ * GLFW_NO_CURRENT_CONTEXT, @ref GLFW_INVALID_VALUE and @ref
6237+ * GLFW_PLATFORM_ERROR.
6238+ *
6239+ * @thread_safety This function may be called from any thread.
6240+ *
6241+ * @sa @ref context_glext
6242+ * @sa @ref glfwGetProcAddress
6243+ *
6244+ * @since Added in version 1.0.
6245+ *
6246+ * @ingroup context
6247+ */
6248+GLFWAPI int glfwExtensionSupported(const char* extension);
6249+
6250+/*! @brief Returns the address of the specified function for the current
6251+ * context.
6252+ *
6253+ * This function returns the address of the specified OpenGL or OpenGL ES
6254+ * [core or extension function](@ref context_glext), if it is supported
6255+ * by the current context.
6256+ *
6257+ * A context must be current on the calling thread. Calling this function
6258+ * without a current context will cause a @ref GLFW_NO_CURRENT_CONTEXT error.
6259+ *
6260+ * This function does not apply to Vulkan. If you are rendering with Vulkan,
6261+ * see @ref glfwGetInstanceProcAddress, `vkGetInstanceProcAddr` and
6262+ * `vkGetDeviceProcAddr` instead.
6263+ *
6264+ * @param[in] procname The ASCII encoded name of the function.
6265+ * @return The address of the function, or `NULL` if an
6266+ * [error](@ref error_handling) occurred.
6267+ *
6268+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref
6269+ * GLFW_NO_CURRENT_CONTEXT and @ref GLFW_PLATFORM_ERROR.
6270+ *
6271+ * @remark The address of a given function is not guaranteed to be the same
6272+ * between contexts.
6273+ *
6274+ * @remark This function may return a non-`NULL` address despite the
6275+ * associated version or extension not being available. Always check the
6276+ * context version or extension string first.
6277+ *
6278+ * @pointer_lifetime The returned function pointer is valid until the context
6279+ * is destroyed or the library is terminated.
6280+ *
6281+ * @thread_safety This function may be called from any thread.
6282+ *
6283+ * @sa @ref context_glext
6284+ * @sa @ref glfwExtensionSupported
6285+ *
6286+ * @since Added in version 1.0.
6287+ *
6288+ * @ingroup context
6289+ */
6290+GLFWAPI GLFWglproc glfwGetProcAddress(const char* procname);
6291+
6292+/*! @brief Returns whether the Vulkan loader and an ICD have been found.
6293+ *
6294+ * This function returns whether the Vulkan loader and any minimally functional
6295+ * ICD have been found.
6296+ *
6297+ * The availability of a Vulkan loader and even an ICD does not by itself guarantee that
6298+ * surface creation or even instance creation is possible. Call @ref
6299+ * glfwGetRequiredInstanceExtensions to check whether the extensions necessary for Vulkan
6300+ * surface creation are available and @ref glfwGetPhysicalDevicePresentationSupport to
6301+ * check whether a queue family of a physical device supports image presentation.
6302+ *
6303+ * @return `GLFW_TRUE` if Vulkan is minimally available, or `GLFW_FALSE`
6304+ * otherwise.
6305+ *
6306+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
6307+ *
6308+ * @thread_safety This function may be called from any thread.
6309+ *
6310+ * @sa @ref vulkan_support
6311+ *
6312+ * @since Added in version 3.2.
6313+ *
6314+ * @ingroup vulkan
6315+ */
6316+GLFWAPI int glfwVulkanSupported(void);
6317+
6318+/*! @brief Returns the Vulkan instance extensions required by GLFW.
6319+ *
6320+ * This function returns an array of names of Vulkan instance extensions required
6321+ * by GLFW for creating Vulkan surfaces for GLFW windows. If successful, the
6322+ * list will always contain `VK_KHR_surface`, so if you don't require any
6323+ * additional extensions you can pass this list directly to the
6324+ * `VkInstanceCreateInfo` struct.
6325+ *
6326+ * If Vulkan is not available on the machine, this function returns `NULL` and
6327+ * generates a @ref GLFW_API_UNAVAILABLE error. Call @ref glfwVulkanSupported
6328+ * to check whether Vulkan is at least minimally available.
6329+ *
6330+ * If Vulkan is available but no set of extensions allowing window surface
6331+ * creation was found, this function returns `NULL`. You may still use Vulkan
6332+ * for off-screen rendering and compute work.
6333+ *
6334+ * @param[out] count Where to store the number of extensions in the returned
6335+ * array. This is set to zero if an error occurred.
6336+ * @return An array of ASCII encoded extension names, or `NULL` if an
6337+ * [error](@ref error_handling) occurred.
6338+ *
6339+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
6340+ * GLFW_API_UNAVAILABLE.
6341+ *
6342+ * @remark Additional extensions may be required by future versions of GLFW.
6343+ * You should check if any extensions you wish to enable are already in the
6344+ * returned array, as it is an error to specify an extension more than once in
6345+ * the `VkInstanceCreateInfo` struct.
6346+ *
6347+ * @pointer_lifetime The returned array is allocated and freed by GLFW. You
6348+ * should not free it yourself. It is guaranteed to be valid only until the
6349+ * library is terminated.
6350+ *
6351+ * @thread_safety This function may be called from any thread.
6352+ *
6353+ * @sa @ref vulkan_ext
6354+ * @sa @ref glfwCreateWindowSurface
6355+ *
6356+ * @since Added in version 3.2.
6357+ *
6358+ * @ingroup vulkan
6359+ */
6360+GLFWAPI const char** glfwGetRequiredInstanceExtensions(uint32_t* count);
6361+
6362+#if defined(VK_VERSION_1_0)
6363+
6364+/*! @brief Returns the address of the specified Vulkan instance function.
6365+ *
6366+ * This function returns the address of the specified Vulkan core or extension
6367+ * function for the specified instance. If instance is set to `NULL` it can
6368+ * return any function exported from the Vulkan loader, including at least the
6369+ * following functions:
6370+ *
6371+ * - `vkEnumerateInstanceExtensionProperties`
6372+ * - `vkEnumerateInstanceLayerProperties`
6373+ * - `vkCreateInstance`
6374+ * - `vkGetInstanceProcAddr`
6375+ *
6376+ * If Vulkan is not available on the machine, this function returns `NULL` and
6377+ * generates a @ref GLFW_API_UNAVAILABLE error. Call @ref glfwVulkanSupported
6378+ * to check whether Vulkan is at least minimally available.
6379+ *
6380+ * This function is equivalent to calling `vkGetInstanceProcAddr` with
6381+ * a platform-specific query of the Vulkan loader as a fallback.
6382+ *
6383+ * @param[in] instance The Vulkan instance to query, or `NULL` to retrieve
6384+ * functions related to instance creation.
6385+ * @param[in] procname The ASCII encoded name of the function.
6386+ * @return The address of the function, or `NULL` if an
6387+ * [error](@ref error_handling) occurred.
6388+ *
6389+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
6390+ * GLFW_API_UNAVAILABLE.
6391+ *
6392+ * @pointer_lifetime The returned function pointer is valid until the library
6393+ * is terminated.
6394+ *
6395+ * @thread_safety This function may be called from any thread.
6396+ *
6397+ * @sa @ref vulkan_proc
6398+ *
6399+ * @since Added in version 3.2.
6400+ *
6401+ * @ingroup vulkan
6402+ */
6403+GLFWAPI GLFWvkproc glfwGetInstanceProcAddress(VkInstance instance, const char* procname);
6404+
6405+/*! @brief Returns whether the specified queue family can present images.
6406+ *
6407+ * This function returns whether the specified queue family of the specified
6408+ * physical device supports presentation to the platform GLFW was built for.
6409+ *
6410+ * If Vulkan or the required window surface creation instance extensions are
6411+ * not available on the machine, or if the specified instance was not created
6412+ * with the required extensions, this function returns `GLFW_FALSE` and
6413+ * generates a @ref GLFW_API_UNAVAILABLE error. Call @ref glfwVulkanSupported
6414+ * to check whether Vulkan is at least minimally available and @ref
6415+ * glfwGetRequiredInstanceExtensions to check what instance extensions are
6416+ * required.
6417+ *
6418+ * @param[in] instance The instance that the physical device belongs to.
6419+ * @param[in] device The physical device that the queue family belongs to.
6420+ * @param[in] queuefamily The index of the queue family to query.
6421+ * @return `GLFW_TRUE` if the queue family supports presentation, or
6422+ * `GLFW_FALSE` otherwise.
6423+ *
6424+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref
6425+ * GLFW_API_UNAVAILABLE and @ref GLFW_PLATFORM_ERROR.
6426+ *
6427+ * @remark @macos This function currently always returns `GLFW_TRUE`, as the
6428+ * `VK_MVK_macos_surface` and `VK_EXT_metal_surface` extensions do not provide
6429+ * a `vkGetPhysicalDevice*PresentationSupport` type function.
6430+ *
6431+ * @thread_safety This function may be called from any thread. For
6432+ * synchronization details of Vulkan objects, see the Vulkan specification.
6433+ *
6434+ * @sa @ref vulkan_present
6435+ *
6436+ * @since Added in version 3.2.
6437+ *
6438+ * @ingroup vulkan
6439+ */
6440+GLFWAPI int glfwGetPhysicalDevicePresentationSupport(VkInstance instance, VkPhysicalDevice device, uint32_t queuefamily);
6441+
6442+/*! @brief Creates a Vulkan surface for the specified window.
6443+ *
6444+ * This function creates a Vulkan surface for the specified window.
6445+ *
6446+ * If the Vulkan loader or at least one minimally functional ICD were not found,
6447+ * this function returns `VK_ERROR_INITIALIZATION_FAILED` and generates a @ref
6448+ * GLFW_API_UNAVAILABLE error. Call @ref glfwVulkanSupported to check whether
6449+ * Vulkan is at least minimally available.
6450+ *
6451+ * If the required window surface creation instance extensions are not
6452+ * available or if the specified instance was not created with these extensions
6453+ * enabled, this function returns `VK_ERROR_EXTENSION_NOT_PRESENT` and
6454+ * generates a @ref GLFW_API_UNAVAILABLE error. Call @ref
6455+ * glfwGetRequiredInstanceExtensions to check what instance extensions are
6456+ * required.
6457+ *
6458+ * The window surface cannot be shared with another API so the window must
6459+ * have been created with the [client api hint](@ref GLFW_CLIENT_API_attrib)
6460+ * set to `GLFW_NO_API` otherwise it generates a @ref GLFW_INVALID_VALUE error
6461+ * and returns `VK_ERROR_NATIVE_WINDOW_IN_USE_KHR`.
6462+ *
6463+ * The window surface must be destroyed before the specified Vulkan instance.
6464+ * It is the responsibility of the caller to destroy the window surface. GLFW
6465+ * does not destroy it for you. Call `vkDestroySurfaceKHR` to destroy the
6466+ * surface.
6467+ *
6468+ * @param[in] instance The Vulkan instance to create the surface in.
6469+ * @param[in] window The window to create the surface for.
6470+ * @param[in] allocator The allocator to use, or `NULL` to use the default
6471+ * allocator.
6472+ * @param[out] surface Where to store the handle of the surface. This is set
6473+ * to `VK_NULL_HANDLE` if an error occurred.
6474+ * @return `VK_SUCCESS` if successful, or a Vulkan error code if an
6475+ * [error](@ref error_handling) occurred.
6476+ *
6477+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref
6478+ * GLFW_API_UNAVAILABLE, @ref GLFW_PLATFORM_ERROR and @ref GLFW_INVALID_VALUE
6479+ *
6480+ * @remark If an error occurs before the creation call is made, GLFW returns
6481+ * the Vulkan error code most appropriate for the error. Appropriate use of
6482+ * @ref glfwVulkanSupported and @ref glfwGetRequiredInstanceExtensions should
6483+ * eliminate almost all occurrences of these errors.
6484+ *
6485+ * @remark @macos GLFW prefers the `VK_EXT_metal_surface` extension, with the
6486+ * `VK_MVK_macos_surface` extension as a fallback. The name of the selected
6487+ * extension, if any, is included in the array returned by @ref
6488+ * glfwGetRequiredInstanceExtensions.
6489+ *
6490+ * @remark @macos This function creates and sets a `CAMetalLayer` instance for
6491+ * the window content view, which is required for MoltenVK to function.
6492+ *
6493+ * @remark @x11 By default GLFW prefers the `VK_KHR_xcb_surface` extension,
6494+ * with the `VK_KHR_xlib_surface` extension as a fallback. You can make
6495+ * `VK_KHR_xlib_surface` the preferred extension by setting the
6496+ * [GLFW_X11_XCB_VULKAN_SURFACE](@ref GLFW_X11_XCB_VULKAN_SURFACE_hint) init
6497+ * hint. The name of the selected extension, if any, is included in the array
6498+ * returned by @ref glfwGetRequiredInstanceExtensions.
6499+ *
6500+ * @thread_safety This function may be called from any thread. For
6501+ * synchronization details of Vulkan objects, see the Vulkan specification.
6502+ *
6503+ * @sa @ref vulkan_surface
6504+ * @sa @ref glfwGetRequiredInstanceExtensions
6505+ *
6506+ * @since Added in version 3.2.
6507+ *
6508+ * @ingroup vulkan
6509+ */
6510+GLFWAPI VkResult glfwCreateWindowSurface(VkInstance instance, GLFWwindow* window, const VkAllocationCallbacks* allocator, VkSurfaceKHR* surface);
6511+
6512+#endif /*VK_VERSION_1_0*/
6513+
6514+
6515+/*************************************************************************
6516+ * Global definition cleanup
6517+ *************************************************************************/
6518+
6519+/* ------------------- BEGIN SYSTEM/COMPILER SPECIFIC -------------------- */
6520+
6521+#ifdef GLFW_WINGDIAPI_DEFINED
6522+ #undef WINGDIAPI
6523+ #undef GLFW_WINGDIAPI_DEFINED
6524+#endif
6525+
6526+#ifdef GLFW_CALLBACK_DEFINED
6527+ #undef CALLBACK
6528+ #undef GLFW_CALLBACK_DEFINED
6529+#endif
6530+
6531+/* Some OpenGL related headers need GLAPIENTRY, but it is unconditionally
6532+ * defined by some gl.h variants (OpenBSD) so define it after if needed.
6533+ */
6534+#ifndef GLAPIENTRY
6535+ #define GLAPIENTRY APIENTRY
6536+ #define GLFW_GLAPIENTRY_DEFINED
6537+#endif
6538+
6539+/* -------------------- END SYSTEM/COMPILER SPECIFIC --------------------- */
6540+
6541+
6542+#ifdef __cplusplus
6543+}
6544+#endif
6545+
6546+#endif /* _glfw3_h_ */
6547+
@@ -0,0 +1,663 @@
1+/*************************************************************************
2+ * GLFW 3.4 - www.glfw.org
3+ * A library for OpenGL, window and input
4+ *------------------------------------------------------------------------
5+ * Copyright (c) 2002-2006 Marcus Geelnard
6+ * Copyright (c) 2006-2018 Camilla Löwy <elmindreda@glfw.org>
7+ *
8+ * This software is provided 'as-is', without any express or implied
9+ * warranty. In no event will the authors be held liable for any damages
10+ * arising from the use of this software.
11+ *
12+ * Permission is granted to anyone to use this software for any purpose,
13+ * including commercial applications, and to alter it and redistribute it
14+ * freely, subject to the following restrictions:
15+ *
16+ * 1. The origin of this software must not be misrepresented; you must not
17+ * claim that you wrote the original software. If you use this software
18+ * in a product, an acknowledgment in the product documentation would
19+ * be appreciated but is not required.
20+ *
21+ * 2. Altered source versions must be plainly marked as such, and must not
22+ * be misrepresented as being the original software.
23+ *
24+ * 3. This notice may not be removed or altered from any source
25+ * distribution.
26+ *
27+ *************************************************************************/
28+
29+#ifndef _glfw3_native_h_
30+#define _glfw3_native_h_
31+
32+#ifdef __cplusplus
33+extern "C" {
34+#endif
35+
36+
37+/*************************************************************************
38+ * Doxygen documentation
39+ *************************************************************************/
40+
41+/*! @file glfw3native.h
42+ * @brief The header of the native access functions.
43+ *
44+ * This is the header file of the native access functions. See @ref native for
45+ * more information.
46+ */
47+/*! @defgroup native Native access
48+ * @brief Functions related to accessing native handles.
49+ *
50+ * **By using the native access functions you assert that you know what you're
51+ * doing and how to fix problems caused by using them. If you don't, you
52+ * shouldn't be using them.**
53+ *
54+ * Before the inclusion of @ref glfw3native.h, you may define zero or more
55+ * window system API macro and zero or more context creation API macros.
56+ *
57+ * The chosen backends must match those the library was compiled for. Failure
58+ * to do this will cause a link-time error.
59+ *
60+ * The available window API macros are:
61+ * * `GLFW_EXPOSE_NATIVE_WIN32`
62+ * * `GLFW_EXPOSE_NATIVE_COCOA`
63+ * * `GLFW_EXPOSE_NATIVE_X11`
64+ * * `GLFW_EXPOSE_NATIVE_WAYLAND`
65+ *
66+ * The available context API macros are:
67+ * * `GLFW_EXPOSE_NATIVE_WGL`
68+ * * `GLFW_EXPOSE_NATIVE_NSGL`
69+ * * `GLFW_EXPOSE_NATIVE_GLX`
70+ * * `GLFW_EXPOSE_NATIVE_EGL`
71+ * * `GLFW_EXPOSE_NATIVE_OSMESA`
72+ *
73+ * These macros select which of the native access functions that are declared
74+ * and which platform-specific headers to include. It is then up your (by
75+ * definition platform-specific) code to handle which of these should be
76+ * defined.
77+ *
78+ * If you do not want the platform-specific headers to be included, define
79+ * `GLFW_NATIVE_INCLUDE_NONE` before including the @ref glfw3native.h header.
80+ *
81+ * @code
82+ * #define GLFW_EXPOSE_NATIVE_WIN32
83+ * #define GLFW_EXPOSE_NATIVE_WGL
84+ * #define GLFW_NATIVE_INCLUDE_NONE
85+ * #include <GLFW/glfw3native.h>
86+ * @endcode
87+ */
88+
89+
90+/*************************************************************************
91+ * System headers and types
92+ *************************************************************************/
93+
94+#if !defined(GLFW_NATIVE_INCLUDE_NONE)
95+
96+ #if defined(GLFW_EXPOSE_NATIVE_WIN32) || defined(GLFW_EXPOSE_NATIVE_WGL)
97+ /* This is a workaround for the fact that glfw3.h needs to export APIENTRY (for
98+ * example to allow applications to correctly declare a GL_KHR_debug callback)
99+ * but windows.h assumes no one will define APIENTRY before it does
100+ */
101+ #if defined(GLFW_APIENTRY_DEFINED)
102+ #undef APIENTRY
103+ #undef GLFW_APIENTRY_DEFINED
104+ #endif
105+ #include <windows.h>
106+ #endif
107+
108+ #if defined(GLFW_EXPOSE_NATIVE_COCOA) || defined(GLFW_EXPOSE_NATIVE_NSGL)
109+ #if defined(__OBJC__)
110+ #import <Cocoa/Cocoa.h>
111+ #else
112+ #include <ApplicationServices/ApplicationServices.h>
113+ #include <objc/objc.h>
114+ #endif
115+ #endif
116+
117+ #if defined(GLFW_EXPOSE_NATIVE_X11) || defined(GLFW_EXPOSE_NATIVE_GLX)
118+ #include <X11/Xlib.h>
119+ #include <X11/extensions/Xrandr.h>
120+ #endif
121+
122+ #if defined(GLFW_EXPOSE_NATIVE_WAYLAND)
123+ #include <wayland-client.h>
124+ #endif
125+
126+ #if defined(GLFW_EXPOSE_NATIVE_WGL)
127+ /* WGL is declared by windows.h */
128+ #endif
129+ #if defined(GLFW_EXPOSE_NATIVE_NSGL)
130+ /* NSGL is declared by Cocoa.h */
131+ #endif
132+ #if defined(GLFW_EXPOSE_NATIVE_GLX)
133+ /* This is a workaround for the fact that glfw3.h defines GLAPIENTRY because by
134+ * default it also acts as an OpenGL header
135+ * However, glx.h will include gl.h, which will define it unconditionally
136+ */
137+ #if defined(GLFW_GLAPIENTRY_DEFINED)
138+ #undef GLAPIENTRY
139+ #undef GLFW_GLAPIENTRY_DEFINED
140+ #endif
141+ #include <GL/glx.h>
142+ #endif
143+ #if defined(GLFW_EXPOSE_NATIVE_EGL)
144+ #include <EGL/egl.h>
145+ #endif
146+ #if defined(GLFW_EXPOSE_NATIVE_OSMESA)
147+ /* This is a workaround for the fact that glfw3.h defines GLAPIENTRY because by
148+ * default it also acts as an OpenGL header
149+ * However, osmesa.h will include gl.h, which will define it unconditionally
150+ */
151+ #if defined(GLFW_GLAPIENTRY_DEFINED)
152+ #undef GLAPIENTRY
153+ #undef GLFW_GLAPIENTRY_DEFINED
154+ #endif
155+ #include <GL/osmesa.h>
156+ #endif
157+
158+#endif /*GLFW_NATIVE_INCLUDE_NONE*/
159+
160+
161+/*************************************************************************
162+ * Functions
163+ *************************************************************************/
164+
165+#if defined(GLFW_EXPOSE_NATIVE_WIN32)
166+/*! @brief Returns the adapter device name of the specified monitor.
167+ *
168+ * @return The UTF-8 encoded adapter device name (for example `\\.\DISPLAY1`)
169+ * of the specified monitor, or `NULL` if an [error](@ref error_handling)
170+ * occurred.
171+ *
172+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
173+ * GLFW_PLATFORM_UNAVAILABLE.
174+ *
175+ * @thread_safety This function may be called from any thread. Access is not
176+ * synchronized.
177+ *
178+ * @since Added in version 3.1.
179+ *
180+ * @ingroup native
181+ */
182+GLFWAPI const char* glfwGetWin32Adapter(GLFWmonitor* monitor);
183+
184+/*! @brief Returns the display device name of the specified monitor.
185+ *
186+ * @return The UTF-8 encoded display device name (for example
187+ * `\\.\DISPLAY1\Monitor0`) of the specified monitor, or `NULL` if an
188+ * [error](@ref error_handling) occurred.
189+ *
190+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
191+ * GLFW_PLATFORM_UNAVAILABLE.
192+ *
193+ * @thread_safety This function may be called from any thread. Access is not
194+ * synchronized.
195+ *
196+ * @since Added in version 3.1.
197+ *
198+ * @ingroup native
199+ */
200+GLFWAPI const char* glfwGetWin32Monitor(GLFWmonitor* monitor);
201+
202+/*! @brief Returns the `HWND` of the specified window.
203+ *
204+ * @return The `HWND` of the specified window, or `NULL` if an
205+ * [error](@ref error_handling) occurred.
206+ *
207+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
208+ * GLFW_PLATFORM_UNAVAILABLE.
209+ *
210+ * @remark The `HDC` associated with the window can be queried with the
211+ * [GetDC](https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getdc)
212+ * function.
213+ * @code
214+ * HDC dc = GetDC(glfwGetWin32Window(window));
215+ * @endcode
216+ * This DC is private and does not need to be released.
217+ *
218+ * @thread_safety This function may be called from any thread. Access is not
219+ * synchronized.
220+ *
221+ * @since Added in version 3.0.
222+ *
223+ * @ingroup native
224+ */
225+GLFWAPI HWND glfwGetWin32Window(GLFWwindow* window);
226+#endif
227+
228+#if defined(GLFW_EXPOSE_NATIVE_WGL)
229+/*! @brief Returns the `HGLRC` of the specified window.
230+ *
231+ * @return The `HGLRC` of the specified window, or `NULL` if an
232+ * [error](@ref error_handling) occurred.
233+ *
234+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref
235+ * GLFW_PLATFORM_UNAVAILABLE and @ref GLFW_NO_WINDOW_CONTEXT.
236+ *
237+ * @remark The `HDC` associated with the window can be queried with the
238+ * [GetDC](https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getdc)
239+ * function.
240+ * @code
241+ * HDC dc = GetDC(glfwGetWin32Window(window));
242+ * @endcode
243+ * This DC is private and does not need to be released.
244+ *
245+ * @thread_safety This function may be called from any thread. Access is not
246+ * synchronized.
247+ *
248+ * @since Added in version 3.0.
249+ *
250+ * @ingroup native
251+ */
252+GLFWAPI HGLRC glfwGetWGLContext(GLFWwindow* window);
253+#endif
254+
255+#if defined(GLFW_EXPOSE_NATIVE_COCOA)
256+/*! @brief Returns the `CGDirectDisplayID` of the specified monitor.
257+ *
258+ * @return The `CGDirectDisplayID` of the specified monitor, or
259+ * `kCGNullDirectDisplay` if an [error](@ref error_handling) occurred.
260+ *
261+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
262+ * GLFW_PLATFORM_UNAVAILABLE.
263+ *
264+ * @thread_safety This function may be called from any thread. Access is not
265+ * synchronized.
266+ *
267+ * @since Added in version 3.1.
268+ *
269+ * @ingroup native
270+ */
271+GLFWAPI CGDirectDisplayID glfwGetCocoaMonitor(GLFWmonitor* monitor);
272+
273+/*! @brief Returns the `NSWindow` of the specified window.
274+ *
275+ * @return The `NSWindow` of the specified window, or `nil` if an
276+ * [error](@ref error_handling) occurred.
277+ *
278+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
279+ * GLFW_PLATFORM_UNAVAILABLE.
280+ *
281+ * @thread_safety This function may be called from any thread. Access is not
282+ * synchronized.
283+ *
284+ * @since Added in version 3.0.
285+ *
286+ * @ingroup native
287+ */
288+GLFWAPI id glfwGetCocoaWindow(GLFWwindow* window);
289+
290+/*! @brief Returns the `NSView` of the specified window.
291+ *
292+ * @return The `NSView` of the specified window, or `nil` if an
293+ * [error](@ref error_handling) occurred.
294+ *
295+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
296+ * GLFW_PLATFORM_UNAVAILABLE.
297+ *
298+ * @thread_safety This function may be called from any thread. Access is not
299+ * synchronized.
300+ *
301+ * @since Added in version 3.4.
302+ *
303+ * @ingroup native
304+ */
305+GLFWAPI id glfwGetCocoaView(GLFWwindow* window);
306+#endif
307+
308+#if defined(GLFW_EXPOSE_NATIVE_NSGL)
309+/*! @brief Returns the `NSOpenGLContext` of the specified window.
310+ *
311+ * @return The `NSOpenGLContext` of the specified window, or `nil` if an
312+ * [error](@ref error_handling) occurred.
313+ *
314+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref
315+ * GLFW_PLATFORM_UNAVAILABLE and @ref GLFW_NO_WINDOW_CONTEXT.
316+ *
317+ * @thread_safety This function may be called from any thread. Access is not
318+ * synchronized.
319+ *
320+ * @since Added in version 3.0.
321+ *
322+ * @ingroup native
323+ */
324+GLFWAPI id glfwGetNSGLContext(GLFWwindow* window);
325+#endif
326+
327+#if defined(GLFW_EXPOSE_NATIVE_X11)
328+/*! @brief Returns the `Display` used by GLFW.
329+ *
330+ * @return The `Display` used by GLFW, or `NULL` if an
331+ * [error](@ref error_handling) occurred.
332+ *
333+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
334+ * GLFW_PLATFORM_UNAVAILABLE.
335+ *
336+ * @thread_safety This function may be called from any thread. Access is not
337+ * synchronized.
338+ *
339+ * @since Added in version 3.0.
340+ *
341+ * @ingroup native
342+ */
343+GLFWAPI Display* glfwGetX11Display(void);
344+
345+/*! @brief Returns the `RRCrtc` of the specified monitor.
346+ *
347+ * @return The `RRCrtc` of the specified monitor, or `None` if an
348+ * [error](@ref error_handling) occurred.
349+ *
350+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
351+ * GLFW_PLATFORM_UNAVAILABLE.
352+ *
353+ * @thread_safety This function may be called from any thread. Access is not
354+ * synchronized.
355+ *
356+ * @since Added in version 3.1.
357+ *
358+ * @ingroup native
359+ */
360+GLFWAPI RRCrtc glfwGetX11Adapter(GLFWmonitor* monitor);
361+
362+/*! @brief Returns the `RROutput` of the specified monitor.
363+ *
364+ * @return The `RROutput` of the specified monitor, or `None` if an
365+ * [error](@ref error_handling) occurred.
366+ *
367+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
368+ * GLFW_PLATFORM_UNAVAILABLE.
369+ *
370+ * @thread_safety This function may be called from any thread. Access is not
371+ * synchronized.
372+ *
373+ * @since Added in version 3.1.
374+ *
375+ * @ingroup native
376+ */
377+GLFWAPI RROutput glfwGetX11Monitor(GLFWmonitor* monitor);
378+
379+/*! @brief Returns the `Window` of the specified window.
380+ *
381+ * @return The `Window` of the specified window, or `None` if an
382+ * [error](@ref error_handling) occurred.
383+ *
384+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
385+ * GLFW_PLATFORM_UNAVAILABLE.
386+ *
387+ * @thread_safety This function may be called from any thread. Access is not
388+ * synchronized.
389+ *
390+ * @since Added in version 3.0.
391+ *
392+ * @ingroup native
393+ */
394+GLFWAPI Window glfwGetX11Window(GLFWwindow* window);
395+
396+/*! @brief Sets the current primary selection to the specified string.
397+ *
398+ * @param[in] string A UTF-8 encoded string.
399+ *
400+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref
401+ * GLFW_PLATFORM_UNAVAILABLE and @ref GLFW_PLATFORM_ERROR.
402+ *
403+ * @pointer_lifetime The specified string is copied before this function
404+ * returns.
405+ *
406+ * @thread_safety This function must only be called from the main thread.
407+ *
408+ * @sa @ref clipboard
409+ * @sa glfwGetX11SelectionString
410+ * @sa glfwSetClipboardString
411+ *
412+ * @since Added in version 3.3.
413+ *
414+ * @ingroup native
415+ */
416+GLFWAPI void glfwSetX11SelectionString(const char* string);
417+
418+/*! @brief Returns the contents of the current primary selection as a string.
419+ *
420+ * If the selection is empty or if its contents cannot be converted, `NULL`
421+ * is returned and a @ref GLFW_FORMAT_UNAVAILABLE error is generated.
422+ *
423+ * @return The contents of the selection as a UTF-8 encoded string, or `NULL`
424+ * if an [error](@ref error_handling) occurred.
425+ *
426+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref
427+ * GLFW_PLATFORM_UNAVAILABLE and @ref GLFW_PLATFORM_ERROR.
428+ *
429+ * @pointer_lifetime The returned string is allocated and freed by GLFW. You
430+ * should not free it yourself. It is valid until the next call to @ref
431+ * glfwGetX11SelectionString or @ref glfwSetX11SelectionString, or until the
432+ * library is terminated.
433+ *
434+ * @thread_safety This function must only be called from the main thread.
435+ *
436+ * @sa @ref clipboard
437+ * @sa glfwSetX11SelectionString
438+ * @sa glfwGetClipboardString
439+ *
440+ * @since Added in version 3.3.
441+ *
442+ * @ingroup native
443+ */
444+GLFWAPI const char* glfwGetX11SelectionString(void);
445+#endif
446+
447+#if defined(GLFW_EXPOSE_NATIVE_GLX)
448+/*! @brief Returns the `GLXContext` of the specified window.
449+ *
450+ * @return The `GLXContext` of the specified window, or `NULL` if an
451+ * [error](@ref error_handling) occurred.
452+ *
453+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref
454+ * GLFW_NO_WINDOW_CONTEXT and @ref GLFW_PLATFORM_UNAVAILABLE.
455+ *
456+ * @thread_safety This function may be called from any thread. Access is not
457+ * synchronized.
458+ *
459+ * @since Added in version 3.0.
460+ *
461+ * @ingroup native
462+ */
463+GLFWAPI GLXContext glfwGetGLXContext(GLFWwindow* window);
464+
465+/*! @brief Returns the `GLXWindow` of the specified window.
466+ *
467+ * @return The `GLXWindow` of the specified window, or `None` if an
468+ * [error](@ref error_handling) occurred.
469+ *
470+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref
471+ * GLFW_NO_WINDOW_CONTEXT and @ref GLFW_PLATFORM_UNAVAILABLE.
472+ *
473+ * @thread_safety This function may be called from any thread. Access is not
474+ * synchronized.
475+ *
476+ * @since Added in version 3.2.
477+ *
478+ * @ingroup native
479+ */
480+GLFWAPI GLXWindow glfwGetGLXWindow(GLFWwindow* window);
481+#endif
482+
483+#if defined(GLFW_EXPOSE_NATIVE_WAYLAND)
484+/*! @brief Returns the `struct wl_display*` used by GLFW.
485+ *
486+ * @return The `struct wl_display*` used by GLFW, or `NULL` if an
487+ * [error](@ref error_handling) occurred.
488+ *
489+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
490+ * GLFW_PLATFORM_UNAVAILABLE.
491+ *
492+ * @thread_safety This function may be called from any thread. Access is not
493+ * synchronized.
494+ *
495+ * @since Added in version 3.2.
496+ *
497+ * @ingroup native
498+ */
499+GLFWAPI struct wl_display* glfwGetWaylandDisplay(void);
500+
501+/*! @brief Returns the `struct wl_output*` of the specified monitor.
502+ *
503+ * @return The `struct wl_output*` of the specified monitor, or `NULL` if an
504+ * [error](@ref error_handling) occurred.
505+ *
506+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
507+ * GLFW_PLATFORM_UNAVAILABLE.
508+ *
509+ * @thread_safety This function may be called from any thread. Access is not
510+ * synchronized.
511+ *
512+ * @since Added in version 3.2.
513+ *
514+ * @ingroup native
515+ */
516+GLFWAPI struct wl_output* glfwGetWaylandMonitor(GLFWmonitor* monitor);
517+
518+/*! @brief Returns the main `struct wl_surface*` of the specified window.
519+ *
520+ * @return The main `struct wl_surface*` of the specified window, or `NULL` if
521+ * an [error](@ref error_handling) occurred.
522+ *
523+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
524+ * GLFW_PLATFORM_UNAVAILABLE.
525+ *
526+ * @thread_safety This function may be called from any thread. Access is not
527+ * synchronized.
528+ *
529+ * @since Added in version 3.2.
530+ *
531+ * @ingroup native
532+ */
533+GLFWAPI struct wl_surface* glfwGetWaylandWindow(GLFWwindow* window);
534+#endif
535+
536+#if defined(GLFW_EXPOSE_NATIVE_EGL)
537+/*! @brief Returns the `EGLDisplay` used by GLFW.
538+ *
539+ * @return The `EGLDisplay` used by GLFW, or `EGL_NO_DISPLAY` if an
540+ * [error](@ref error_handling) occurred.
541+ *
542+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
543+ *
544+ * @remark Because EGL is initialized on demand, this function will return
545+ * `EGL_NO_DISPLAY` until the first context has been created via EGL.
546+ *
547+ * @thread_safety This function may be called from any thread. Access is not
548+ * synchronized.
549+ *
550+ * @since Added in version 3.0.
551+ *
552+ * @ingroup native
553+ */
554+GLFWAPI EGLDisplay glfwGetEGLDisplay(void);
555+
556+/*! @brief Returns the `EGLContext` of the specified window.
557+ *
558+ * @return The `EGLContext` of the specified window, or `EGL_NO_CONTEXT` if an
559+ * [error](@ref error_handling) occurred.
560+ *
561+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
562+ * GLFW_NO_WINDOW_CONTEXT.
563+ *
564+ * @thread_safety This function may be called from any thread. Access is not
565+ * synchronized.
566+ *
567+ * @since Added in version 3.0.
568+ *
569+ * @ingroup native
570+ */
571+GLFWAPI EGLContext glfwGetEGLContext(GLFWwindow* window);
572+
573+/*! @brief Returns the `EGLSurface` of the specified window.
574+ *
575+ * @return The `EGLSurface` of the specified window, or `EGL_NO_SURFACE` if an
576+ * [error](@ref error_handling) occurred.
577+ *
578+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
579+ * GLFW_NO_WINDOW_CONTEXT.
580+ *
581+ * @thread_safety This function may be called from any thread. Access is not
582+ * synchronized.
583+ *
584+ * @since Added in version 3.0.
585+ *
586+ * @ingroup native
587+ */
588+GLFWAPI EGLSurface glfwGetEGLSurface(GLFWwindow* window);
589+#endif
590+
591+#if defined(GLFW_EXPOSE_NATIVE_OSMESA)
592+/*! @brief Retrieves the color buffer associated with the specified window.
593+ *
594+ * @param[in] window The window whose color buffer to retrieve.
595+ * @param[out] width Where to store the width of the color buffer, or `NULL`.
596+ * @param[out] height Where to store the height of the color buffer, or `NULL`.
597+ * @param[out] format Where to store the OSMesa pixel format of the color
598+ * buffer, or `NULL`.
599+ * @param[out] buffer Where to store the address of the color buffer, or
600+ * `NULL`.
601+ * @return `GLFW_TRUE` if successful, or `GLFW_FALSE` if an
602+ * [error](@ref error_handling) occurred.
603+ *
604+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
605+ * GLFW_NO_WINDOW_CONTEXT.
606+ *
607+ * @thread_safety This function may be called from any thread. Access is not
608+ * synchronized.
609+ *
610+ * @since Added in version 3.3.
611+ *
612+ * @ingroup native
613+ */
614+GLFWAPI int glfwGetOSMesaColorBuffer(GLFWwindow* window, int* width, int* height, int* format, void** buffer);
615+
616+/*! @brief Retrieves the depth buffer associated with the specified window.
617+ *
618+ * @param[in] window The window whose depth buffer to retrieve.
619+ * @param[out] width Where to store the width of the depth buffer, or `NULL`.
620+ * @param[out] height Where to store the height of the depth buffer, or `NULL`.
621+ * @param[out] bytesPerValue Where to store the number of bytes per depth
622+ * buffer element, or `NULL`.
623+ * @param[out] buffer Where to store the address of the depth buffer, or
624+ * `NULL`.
625+ * @return `GLFW_TRUE` if successful, or `GLFW_FALSE` if an
626+ * [error](@ref error_handling) occurred.
627+ *
628+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
629+ * GLFW_NO_WINDOW_CONTEXT.
630+ *
631+ * @thread_safety This function may be called from any thread. Access is not
632+ * synchronized.
633+ *
634+ * @since Added in version 3.3.
635+ *
636+ * @ingroup native
637+ */
638+GLFWAPI int glfwGetOSMesaDepthBuffer(GLFWwindow* window, int* width, int* height, int* bytesPerValue, void** buffer);
639+
640+/*! @brief Returns the `OSMesaContext` of the specified window.
641+ *
642+ * @return The `OSMesaContext` of the specified window, or `NULL` if an
643+ * [error](@ref error_handling) occurred.
644+ *
645+ * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
646+ * GLFW_NO_WINDOW_CONTEXT.
647+ *
648+ * @thread_safety This function may be called from any thread. Access is not
649+ * synchronized.
650+ *
651+ * @since Added in version 3.3.
652+ *
653+ * @ingroup native
654+ */
655+GLFWAPI OSMesaContext glfwGetOSMesaContext(GLFWwindow* window);
656+#endif
657+
658+#ifdef __cplusplus
659+}
660+#endif
661+
662+#endif /* _glfw3_native_h_ */
663+
@@ -0,0 +1,311 @@
1+#ifndef __khrplatform_h_
2+#define __khrplatform_h_
3+
4+/*
5+** Copyright (c) 2008-2018 The Khronos Group Inc.
6+**
7+** Permission is hereby granted, free of charge, to any person obtaining a
8+** copy of this software and/or associated documentation files (the
9+** "Materials"), to deal in the Materials without restriction, including
10+** without limitation the rights to use, copy, modify, merge, publish,
11+** distribute, sublicense, and/or sell copies of the Materials, and to
12+** permit persons to whom the Materials are furnished to do so, subject to
13+** the following conditions:
14+**
15+** The above copyright notice and this permission notice shall be included
16+** in all copies or substantial portions of the Materials.
17+**
18+** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
19+** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20+** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
21+** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
22+** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
23+** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
24+** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
25+*/
26+
27+/* Khronos platform-specific types and definitions.
28+ *
29+ * The master copy of khrplatform.h is maintained in the Khronos EGL
30+ * Registry repository at https://github.com/KhronosGroup/EGL-Registry
31+ * The last semantic modification to khrplatform.h was at commit ID:
32+ * 67a3e0864c2d75ea5287b9f3d2eb74a745936692
33+ *
34+ * Adopters may modify this file to suit their platform. Adopters are
35+ * encouraged to submit platform specific modifications to the Khronos
36+ * group so that they can be included in future versions of this file.
37+ * Please submit changes by filing pull requests or issues on
38+ * the EGL Registry repository linked above.
39+ *
40+ *
41+ * See the Implementer's Guidelines for information about where this file
42+ * should be located on your system and for more details of its use:
43+ * http://www.khronos.org/registry/implementers_guide.pdf
44+ *
45+ * This file should be included as
46+ * #include <KHR/khrplatform.h>
47+ * by Khronos client API header files that use its types and defines.
48+ *
49+ * The types in khrplatform.h should only be used to define API-specific types.
50+ *
51+ * Types defined in khrplatform.h:
52+ * khronos_int8_t signed 8 bit
53+ * khronos_uint8_t unsigned 8 bit
54+ * khronos_int16_t signed 16 bit
55+ * khronos_uint16_t unsigned 16 bit
56+ * khronos_int32_t signed 32 bit
57+ * khronos_uint32_t unsigned 32 bit
58+ * khronos_int64_t signed 64 bit
59+ * khronos_uint64_t unsigned 64 bit
60+ * khronos_intptr_t signed same number of bits as a pointer
61+ * khronos_uintptr_t unsigned same number of bits as a pointer
62+ * khronos_ssize_t signed size
63+ * khronos_usize_t unsigned size
64+ * khronos_float_t signed 32 bit floating point
65+ * khronos_time_ns_t unsigned 64 bit time in nanoseconds
66+ * khronos_utime_nanoseconds_t unsigned time interval or absolute time in
67+ * nanoseconds
68+ * khronos_stime_nanoseconds_t signed time interval in nanoseconds
69+ * khronos_boolean_enum_t enumerated boolean type. This should
70+ * only be used as a base type when a client API's boolean type is
71+ * an enum. Client APIs which use an integer or other type for
72+ * booleans cannot use this as the base type for their boolean.
73+ *
74+ * Tokens defined in khrplatform.h:
75+ *
76+ * KHRONOS_FALSE, KHRONOS_TRUE Enumerated boolean false/true values.
77+ *
78+ * KHRONOS_SUPPORT_INT64 is 1 if 64 bit integers are supported; otherwise 0.
79+ * KHRONOS_SUPPORT_FLOAT is 1 if floats are supported; otherwise 0.
80+ *
81+ * Calling convention macros defined in this file:
82+ * KHRONOS_APICALL
83+ * KHRONOS_APIENTRY
84+ * KHRONOS_APIATTRIBUTES
85+ *
86+ * These may be used in function prototypes as:
87+ *
88+ * KHRONOS_APICALL void KHRONOS_APIENTRY funcname(
89+ * int arg1,
90+ * int arg2) KHRONOS_APIATTRIBUTES;
91+ */
92+
93+#if defined(__SCITECH_SNAP__) && !defined(KHRONOS_STATIC)
94+# define KHRONOS_STATIC 1
95+#endif
96+
97+/*-------------------------------------------------------------------------
98+ * Definition of KHRONOS_APICALL
99+ *-------------------------------------------------------------------------
100+ * This precedes the return type of the function in the function prototype.
101+ */
102+#if defined(KHRONOS_STATIC)
103+ /* If the preprocessor constant KHRONOS_STATIC is defined, make the
104+ * header compatible with static linking. */
105+# define KHRONOS_APICALL
106+#elif defined(_WIN32)
107+# define KHRONOS_APICALL __declspec(dllimport)
108+#elif defined (__SYMBIAN32__)
109+# define KHRONOS_APICALL IMPORT_C
110+#elif defined(__ANDROID__)
111+# define KHRONOS_APICALL __attribute__((visibility("default")))
112+#else
113+# define KHRONOS_APICALL
114+#endif
115+
116+/*-------------------------------------------------------------------------
117+ * Definition of KHRONOS_APIENTRY
118+ *-------------------------------------------------------------------------
119+ * This follows the return type of the function and precedes the function
120+ * name in the function prototype.
121+ */
122+#if defined(_WIN32) && !defined(_WIN32_WCE) && !defined(__SCITECH_SNAP__)
123+ /* Win32 but not WinCE */
124+# define KHRONOS_APIENTRY __stdcall
125+#else
126+# define KHRONOS_APIENTRY
127+#endif
128+
129+/*-------------------------------------------------------------------------
130+ * Definition of KHRONOS_APIATTRIBUTES
131+ *-------------------------------------------------------------------------
132+ * This follows the closing parenthesis of the function prototype arguments.
133+ */
134+#if defined (__ARMCC_2__)
135+#define KHRONOS_APIATTRIBUTES __softfp
136+#else
137+#define KHRONOS_APIATTRIBUTES
138+#endif
139+
140+/*-------------------------------------------------------------------------
141+ * basic type definitions
142+ *-----------------------------------------------------------------------*/
143+#if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || defined(__GNUC__) || defined(__SCO__) || defined(__USLC__)
144+
145+
146+/*
147+ * Using <stdint.h>
148+ */
149+#include <stdint.h>
150+typedef int32_t khronos_int32_t;
151+typedef uint32_t khronos_uint32_t;
152+typedef int64_t khronos_int64_t;
153+typedef uint64_t khronos_uint64_t;
154+#define KHRONOS_SUPPORT_INT64 1
155+#define KHRONOS_SUPPORT_FLOAT 1
156+/*
157+ * To support platform where unsigned long cannot be used interchangeably with
158+ * inptr_t (e.g. CHERI-extended ISAs), we can use the stdint.h intptr_t.
159+ * Ideally, we could just use (u)intptr_t everywhere, but this could result in
160+ * ABI breakage if khronos_uintptr_t is changed from unsigned long to
161+ * unsigned long long or similar (this results in different C++ name mangling).
162+ * To avoid changes for existing platforms, we restrict usage of intptr_t to
163+ * platforms where the size of a pointer is larger than the size of long.
164+ */
165+#if defined(__SIZEOF_LONG__) && defined(__SIZEOF_POINTER__)
166+#if __SIZEOF_POINTER__ > __SIZEOF_LONG__
167+#define KHRONOS_USE_INTPTR_T
168+#endif
169+#endif
170+
171+#elif defined(__VMS ) || defined(__sgi)
172+
173+/*
174+ * Using <inttypes.h>
175+ */
176+#include <inttypes.h>
177+typedef int32_t khronos_int32_t;
178+typedef uint32_t khronos_uint32_t;
179+typedef int64_t khronos_int64_t;
180+typedef uint64_t khronos_uint64_t;
181+#define KHRONOS_SUPPORT_INT64 1
182+#define KHRONOS_SUPPORT_FLOAT 1
183+
184+#elif defined(_WIN32) && !defined(__SCITECH_SNAP__)
185+
186+/*
187+ * Win32
188+ */
189+typedef __int32 khronos_int32_t;
190+typedef unsigned __int32 khronos_uint32_t;
191+typedef __int64 khronos_int64_t;
192+typedef unsigned __int64 khronos_uint64_t;
193+#define KHRONOS_SUPPORT_INT64 1
194+#define KHRONOS_SUPPORT_FLOAT 1
195+
196+#elif defined(__sun__) || defined(__digital__)
197+
198+/*
199+ * Sun or Digital
200+ */
201+typedef int khronos_int32_t;
202+typedef unsigned int khronos_uint32_t;
203+#if defined(__arch64__) || defined(_LP64)
204+typedef long int khronos_int64_t;
205+typedef unsigned long int khronos_uint64_t;
206+#else
207+typedef long long int khronos_int64_t;
208+typedef unsigned long long int khronos_uint64_t;
209+#endif /* __arch64__ */
210+#define KHRONOS_SUPPORT_INT64 1
211+#define KHRONOS_SUPPORT_FLOAT 1
212+
213+#elif 0
214+
215+/*
216+ * Hypothetical platform with no float or int64 support
217+ */
218+typedef int khronos_int32_t;
219+typedef unsigned int khronos_uint32_t;
220+#define KHRONOS_SUPPORT_INT64 0
221+#define KHRONOS_SUPPORT_FLOAT 0
222+
223+#else
224+
225+/*
226+ * Generic fallback
227+ */
228+#include <stdint.h>
229+typedef int32_t khronos_int32_t;
230+typedef uint32_t khronos_uint32_t;
231+typedef int64_t khronos_int64_t;
232+typedef uint64_t khronos_uint64_t;
233+#define KHRONOS_SUPPORT_INT64 1
234+#define KHRONOS_SUPPORT_FLOAT 1
235+
236+#endif
237+
238+
239+/*
240+ * Types that are (so far) the same on all platforms
241+ */
242+typedef signed char khronos_int8_t;
243+typedef unsigned char khronos_uint8_t;
244+typedef signed short int khronos_int16_t;
245+typedef unsigned short int khronos_uint16_t;
246+
247+/*
248+ * Types that differ between LLP64 and LP64 architectures - in LLP64,
249+ * pointers are 64 bits, but 'long' is still 32 bits. Win64 appears
250+ * to be the only LLP64 architecture in current use.
251+ */
252+#ifdef KHRONOS_USE_INTPTR_T
253+typedef intptr_t khronos_intptr_t;
254+typedef uintptr_t khronos_uintptr_t;
255+#elif defined(_WIN64)
256+typedef signed long long int khronos_intptr_t;
257+typedef unsigned long long int khronos_uintptr_t;
258+#else
259+typedef signed long int khronos_intptr_t;
260+typedef unsigned long int khronos_uintptr_t;
261+#endif
262+
263+#if defined(_WIN64)
264+typedef signed long long int khronos_ssize_t;
265+typedef unsigned long long int khronos_usize_t;
266+#else
267+typedef signed long int khronos_ssize_t;
268+typedef unsigned long int khronos_usize_t;
269+#endif
270+
271+#if KHRONOS_SUPPORT_FLOAT
272+/*
273+ * Float type
274+ */
275+typedef float khronos_float_t;
276+#endif
277+
278+#if KHRONOS_SUPPORT_INT64
279+/* Time types
280+ *
281+ * These types can be used to represent a time interval in nanoseconds or
282+ * an absolute Unadjusted System Time. Unadjusted System Time is the number
283+ * of nanoseconds since some arbitrary system event (e.g. since the last
284+ * time the system booted). The Unadjusted System Time is an unsigned
285+ * 64 bit value that wraps back to 0 every 584 years. Time intervals
286+ * may be either signed or unsigned.
287+ */
288+typedef khronos_uint64_t khronos_utime_nanoseconds_t;
289+typedef khronos_int64_t khronos_stime_nanoseconds_t;
290+#endif
291+
292+/*
293+ * Dummy value used to pad enum types to 32 bits.
294+ */
295+#ifndef KHRONOS_MAX_ENUM
296+#define KHRONOS_MAX_ENUM 0x7FFFFFFF
297+#endif
298+
299+/*
300+ * Enumerated boolean type
301+ *
302+ * Values other than zero should be considered to be true. Therefore
303+ * comparisons should not be made against KHRONOS_TRUE.
304+ */
305+typedef enum {
306+ KHRONOS_FALSE = 0,
307+ KHRONOS_TRUE = 1,
308+ KHRONOS_BOOLEAN_ENUM_FORCE_SIZE = KHRONOS_MAX_ENUM
309+} khronos_boolean_enum_t;
310+
311+#endif /* __khrplatform_h_ */

長いので途中までです

@@ -0,0 +1,5131 @@
1+/*
2+
3+ OpenGL loader generated by glad 0.1.36 on Sat Jul 19 17:57:30 2025.
4+
5+ Language/Generator: C/C++
6+ Specification: gl
7+ APIs: gl=4.5
8+ Profile: compatibility
9+ Extensions:
10+
11+ Loader: True
12+ Local files: False
13+ Omit khrplatform: False
14+ Reproducible: False
15+
16+ Commandline:
17+ --profile="compatibility" --api="gl=4.5" --generator="c" --spec="gl" --extensions=""
18+ Online:
19+ https://glad.dav1d.de/#profile=compatibility&language=c&specification=gl&loader=on&api=gl%3D4.5
20+*/
21+
22+
23+#ifndef __glad_h_
24+#define __glad_h_
25+
26+#ifdef __gl_h_
27+#error OpenGL header already included, remove this include, glad already provides it
28+#endif
29+#define __gl_h_
30+
31+#if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__)
32+#define APIENTRY __stdcall
33+#endif
34+
35+#ifndef APIENTRY
36+#define APIENTRY
37+#endif
38+#ifndef APIENTRYP
39+#define APIENTRYP APIENTRY *
40+#endif
41+
42+#ifndef GLAPIENTRY
43+#define GLAPIENTRY APIENTRY
44+#endif
45+
46+#ifdef __cplusplus
47+extern "C" {
48+#endif
49+
50+struct gladGLversionStruct {
51+ int major;
52+ int minor;
53+};
54+
55+typedef void* (* GLADloadproc)(const char *name);
56+
57+#ifndef GLAPI
58+# if defined(GLAD_GLAPI_EXPORT)
59+# if defined(_WIN32) || defined(__CYGWIN__)
60+# if defined(GLAD_GLAPI_EXPORT_BUILD)
61+# if defined(__GNUC__)
62+# define GLAPI __attribute__ ((dllexport)) extern
63+# else
64+# define GLAPI __declspec(dllexport) extern
65+# endif
66+# else
67+# if defined(__GNUC__)
68+# define GLAPI __attribute__ ((dllimport)) extern
69+# else
70+# define GLAPI __declspec(dllimport) extern
71+# endif
72+# endif
73+# elif defined(__GNUC__) && defined(GLAD_GLAPI_EXPORT_BUILD)
74+# define GLAPI __attribute__ ((visibility ("default"))) extern
75+# else
76+# define GLAPI extern
77+# endif
78+# else
79+# define GLAPI extern
80+# endif
81+#endif
82+
83+GLAPI struct gladGLversionStruct GLVersion;
84+
85+GLAPI int gladLoadGL(void);
86+
87+GLAPI int gladLoadGLLoader(GLADloadproc);
88+
89+#include <KHR/khrplatform.h>
90+typedef unsigned int GLenum;
91+typedef unsigned char GLboolean;
92+typedef unsigned int GLbitfield;
93+typedef void GLvoid;
94+typedef khronos_int8_t GLbyte;
95+typedef khronos_uint8_t GLubyte;
96+typedef khronos_int16_t GLshort;
97+typedef khronos_uint16_t GLushort;
98+typedef int GLint;
99+typedef unsigned int GLuint;
100+typedef khronos_int32_t GLclampx;
101+typedef int GLsizei;
102+typedef khronos_float_t GLfloat;
103+typedef khronos_float_t GLclampf;
104+typedef double GLdouble;
105+typedef double GLclampd;
106+typedef void *GLeglClientBufferEXT;
107+typedef void *GLeglImageOES;
108+typedef char GLchar;
109+typedef char GLcharARB;
110+#ifdef __APPLE__
111+typedef void *GLhandleARB;
112+#else
113+typedef unsigned int GLhandleARB;
114+#endif
115+typedef khronos_uint16_t GLhalf;
116+typedef khronos_uint16_t GLhalfARB;
117+typedef khronos_int32_t GLfixed;
118+typedef khronos_intptr_t GLintptr;
119+typedef khronos_intptr_t GLintptrARB;
120+typedef khronos_ssize_t GLsizeiptr;
121+typedef khronos_ssize_t GLsizeiptrARB;
122+typedef khronos_int64_t GLint64;
123+typedef khronos_int64_t GLint64EXT;
124+typedef khronos_uint64_t GLuint64;
125+typedef khronos_uint64_t GLuint64EXT;
126+typedef struct __GLsync *GLsync;
127+struct _cl_context;
128+struct _cl_event;
129+typedef void (APIENTRY *GLDEBUGPROC)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam);
130+typedef void (APIENTRY *GLDEBUGPROCARB)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam);
131+typedef void (APIENTRY *GLDEBUGPROCKHR)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam);
132+typedef void (APIENTRY *GLDEBUGPROCAMD)(GLuint id,GLenum category,GLenum severity,GLsizei length,const GLchar *message,void *userParam);
133+typedef unsigned short GLhalfNV;
134+typedef GLintptr GLvdpauSurfaceNV;
135+typedef void (APIENTRY *GLVULKANPROCNV)(void);
136+#define GL_DEPTH_BUFFER_BIT 0x00000100
137+#define GL_STENCIL_BUFFER_BIT 0x00000400
138+#define GL_COLOR_BUFFER_BIT 0x00004000
139+#define GL_FALSE 0
140+#define GL_TRUE 1
141+#define GL_POINTS 0x0000
142+#define GL_LINES 0x0001
143+#define GL_LINE_LOOP 0x0002
144+#define GL_LINE_STRIP 0x0003
145+#define GL_TRIANGLES 0x0004
146+#define GL_TRIANGLE_STRIP 0x0005
147+#define GL_TRIANGLE_FAN 0x0006
148+#define GL_QUADS 0x0007
149+#define GL_NEVER 0x0200
150+#define GL_LESS 0x0201
151+#define GL_EQUAL 0x0202
152+#define GL_LEQUAL 0x0203
153+#define GL_GREATER 0x0204
154+#define GL_NOTEQUAL 0x0205
155+#define GL_GEQUAL 0x0206
156+#define GL_ALWAYS 0x0207
157+#define GL_ZERO 0
158+#define GL_ONE 1
159+#define GL_SRC_COLOR 0x0300
160+#define GL_ONE_MINUS_SRC_COLOR 0x0301
161+#define GL_SRC_ALPHA 0x0302
162+#define GL_ONE_MINUS_SRC_ALPHA 0x0303
163+#define GL_DST_ALPHA 0x0304
164+#define GL_ONE_MINUS_DST_ALPHA 0x0305
165+#define GL_DST_COLOR 0x0306
166+#define GL_ONE_MINUS_DST_COLOR 0x0307
167+#define GL_SRC_ALPHA_SATURATE 0x0308
168+#define GL_NONE 0
169+#define GL_FRONT_LEFT 0x0400
170+#define GL_FRONT_RIGHT 0x0401
171+#define GL_BACK_LEFT 0x0402
172+#define GL_BACK_RIGHT 0x0403
173+#define GL_FRONT 0x0404
174+#define GL_BACK 0x0405
175+#define GL_LEFT 0x0406
176+#define GL_RIGHT 0x0407
177+#define GL_FRONT_AND_BACK 0x0408
178+#define GL_NO_ERROR 0
179+#define GL_INVALID_ENUM 0x0500
180+#define GL_INVALID_VALUE 0x0501
181+#define GL_INVALID_OPERATION 0x0502
182+#define GL_OUT_OF_MEMORY 0x0505
183+#define GL_CW 0x0900
184+#define GL_CCW 0x0901
185+#define GL_POINT_SIZE 0x0B11
186+#define GL_POINT_SIZE_RANGE 0x0B12
187+#define GL_POINT_SIZE_GRANULARITY 0x0B13
188+#define GL_LINE_SMOOTH 0x0B20
189+#define GL_LINE_WIDTH 0x0B21
190+#define GL_LINE_WIDTH_RANGE 0x0B22
191+#define GL_LINE_WIDTH_GRANULARITY 0x0B23
192+#define GL_POLYGON_MODE 0x0B40
193+#define GL_POLYGON_SMOOTH 0x0B41
194+#define GL_CULL_FACE 0x0B44
195+#define GL_CULL_FACE_MODE 0x0B45
196+#define GL_FRONT_FACE 0x0B46
197+#define GL_DEPTH_RANGE 0x0B70
198+#define GL_DEPTH_TEST 0x0B71
199+#define GL_DEPTH_WRITEMASK 0x0B72
200+#define GL_DEPTH_CLEAR_VALUE 0x0B73
201+#define GL_DEPTH_FUNC 0x0B74
202+#define GL_STENCIL_TEST 0x0B90
203+#define GL_STENCIL_CLEAR_VALUE 0x0B91
204+#define GL_STENCIL_FUNC 0x0B92
205+#define GL_STENCIL_VALUE_MASK 0x0B93
206+#define GL_STENCIL_FAIL 0x0B94
207+#define GL_STENCIL_PASS_DEPTH_FAIL 0x0B95
208+#define GL_STENCIL_PASS_DEPTH_PASS 0x0B96
209+#define GL_STENCIL_REF 0x0B97
210+#define GL_STENCIL_WRITEMASK 0x0B98
211+#define GL_VIEWPORT 0x0BA2
212+#define GL_DITHER 0x0BD0
213+#define GL_BLEND_DST 0x0BE0
214+#define GL_BLEND_SRC 0x0BE1
215+#define GL_BLEND 0x0BE2
216+#define GL_LOGIC_OP_MODE 0x0BF0
217+#define GL_DRAW_BUFFER 0x0C01
218+#define GL_READ_BUFFER 0x0C02
219+#define GL_SCISSOR_BOX 0x0C10
220+#define GL_SCISSOR_TEST 0x0C11
221+#define GL_COLOR_CLEAR_VALUE 0x0C22
222+#define GL_COLOR_WRITEMASK 0x0C23
223+#define GL_DOUBLEBUFFER 0x0C32
224+#define GL_STEREO 0x0C33
225+#define GL_LINE_SMOOTH_HINT 0x0C52
226+#define GL_POLYGON_SMOOTH_HINT 0x0C53
227+#define GL_UNPACK_SWAP_BYTES 0x0CF0
228+#define GL_UNPACK_LSB_FIRST 0x0CF1
229+#define GL_UNPACK_ROW_LENGTH 0x0CF2
230+#define GL_UNPACK_SKIP_ROWS 0x0CF3
231+#define GL_UNPACK_SKIP_PIXELS 0x0CF4
232+#define GL_UNPACK_ALIGNMENT 0x0CF5
233+#define GL_PACK_SWAP_BYTES 0x0D00
234+#define GL_PACK_LSB_FIRST 0x0D01
235+#define GL_PACK_ROW_LENGTH 0x0D02
236+#define GL_PACK_SKIP_ROWS 0x0D03
237+#define GL_PACK_SKIP_PIXELS 0x0D04
238+#define GL_PACK_ALIGNMENT 0x0D05
239+#define GL_MAX_TEXTURE_SIZE 0x0D33
240+#define GL_MAX_VIEWPORT_DIMS 0x0D3A
241+#define GL_SUBPIXEL_BITS 0x0D50
242+#define GL_TEXTURE_1D 0x0DE0
243+#define GL_TEXTURE_2D 0x0DE1
244+#define GL_TEXTURE_WIDTH 0x1000
245+#define GL_TEXTURE_HEIGHT 0x1001
246+#define GL_TEXTURE_BORDER_COLOR 0x1004
247+#define GL_DONT_CARE 0x1100
248+#define GL_FASTEST 0x1101
249+#define GL_NICEST 0x1102
250+#define GL_BYTE 0x1400
251+#define GL_UNSIGNED_BYTE 0x1401
252+#define GL_SHORT 0x1402
253+#define GL_UNSIGNED_SHORT 0x1403
254+#define GL_INT 0x1404
255+#define GL_UNSIGNED_INT 0x1405
256+#define GL_FLOAT 0x1406
257+#define GL_STACK_OVERFLOW 0x0503
258+#define GL_STACK_UNDERFLOW 0x0504
259+#define GL_CLEAR 0x1500
260+#define GL_AND 0x1501
261+#define GL_AND_REVERSE 0x1502
262+#define GL_COPY 0x1503
263+#define GL_AND_INVERTED 0x1504
264+#define GL_NOOP 0x1505
265+#define GL_XOR 0x1506
266+#define GL_OR 0x1507
267+#define GL_NOR 0x1508
268+#define GL_EQUIV 0x1509
269+#define GL_INVERT 0x150A
270+#define GL_OR_REVERSE 0x150B
271+#define GL_COPY_INVERTED 0x150C
272+#define GL_OR_INVERTED 0x150D
273+#define GL_NAND 0x150E
274+#define GL_SET 0x150F
275+#define GL_TEXTURE 0x1702
276+#define GL_COLOR 0x1800
277+#define GL_DEPTH 0x1801
278+#define GL_STENCIL 0x1802
279+#define GL_STENCIL_INDEX 0x1901
280+#define GL_DEPTH_COMPONENT 0x1902
281+#define GL_RED 0x1903
282+#define GL_GREEN 0x1904
283+#define GL_BLUE 0x1905
284+#define GL_ALPHA 0x1906
285+#define GL_RGB 0x1907
286+#define GL_RGBA 0x1908
287+#define GL_POINT 0x1B00
288+#define GL_LINE 0x1B01
289+#define GL_FILL 0x1B02
290+#define GL_KEEP 0x1E00
291+#define GL_REPLACE 0x1E01
292+#define GL_INCR 0x1E02
293+#define GL_DECR 0x1E03
294+#define GL_VENDOR 0x1F00
295+#define GL_RENDERER 0x1F01
296+#define GL_VERSION 0x1F02
297+#define GL_EXTENSIONS 0x1F03
298+#define GL_NEAREST 0x2600
299+#define GL_LINEAR 0x2601
300+#define GL_NEAREST_MIPMAP_NEAREST 0x2700
301+#define GL_LINEAR_MIPMAP_NEAREST 0x2701
302+#define GL_NEAREST_MIPMAP_LINEAR 0x2702
303+#define GL_LINEAR_MIPMAP_LINEAR 0x2703
304+#define GL_TEXTURE_MAG_FILTER 0x2800
305+#define GL_TEXTURE_MIN_FILTER 0x2801
306+#define GL_TEXTURE_WRAP_S 0x2802
307+#define GL_TEXTURE_WRAP_T 0x2803
308+#define GL_REPEAT 0x2901
309+#define GL_CURRENT_BIT 0x00000001
310+#define GL_POINT_BIT 0x00000002
311+#define GL_LINE_BIT 0x00000004
312+#define GL_POLYGON_BIT 0x00000008
313+#define GL_POLYGON_STIPPLE_BIT 0x00000010
314+#define GL_PIXEL_MODE_BIT 0x00000020
315+#define GL_LIGHTING_BIT 0x00000040
316+#define GL_FOG_BIT 0x00000080
317+#define GL_ACCUM_BUFFER_BIT 0x00000200
318+#define GL_VIEWPORT_BIT 0x00000800
319+#define GL_TRANSFORM_BIT 0x00001000
320+#define GL_ENABLE_BIT 0x00002000
321+#define GL_HINT_BIT 0x00008000
322+#define GL_EVAL_BIT 0x00010000
323+#define GL_LIST_BIT 0x00020000
324+#define GL_TEXTURE_BIT 0x00040000
325+#define GL_SCISSOR_BIT 0x00080000
326+#define GL_ALL_ATTRIB_BITS 0xFFFFFFFF
327+#define GL_QUAD_STRIP 0x0008
328+#define GL_POLYGON 0x0009
329+#define GL_ACCUM 0x0100
330+#define GL_LOAD 0x0101
331+#define GL_RETURN 0x0102
332+#define GL_MULT 0x0103
333+#define GL_ADD 0x0104
334+#define GL_AUX0 0x0409
335+#define GL_AUX1 0x040A
336+#define GL_AUX2 0x040B
337+#define GL_AUX3 0x040C
338+#define GL_2D 0x0600
339+#define GL_3D 0x0601
340+#define GL_3D_COLOR 0x0602
341+#define GL_3D_COLOR_TEXTURE 0x0603
342+#define GL_4D_COLOR_TEXTURE 0x0604
343+#define GL_PASS_THROUGH_TOKEN 0x0700
344+#define GL_POINT_TOKEN 0x0701
345+#define GL_LINE_TOKEN 0x0702
346+#define GL_POLYGON_TOKEN 0x0703
347+#define GL_BITMAP_TOKEN 0x0704
348+#define GL_DRAW_PIXEL_TOKEN 0x0705
349+#define GL_COPY_PIXEL_TOKEN 0x0706
350+#define GL_LINE_RESET_TOKEN 0x0707
351+#define GL_EXP 0x0800
352+#define GL_EXP2 0x0801
353+#define GL_COEFF 0x0A00
354+#define GL_ORDER 0x0A01
355+#define GL_DOMAIN 0x0A02
356+#define GL_PIXEL_MAP_I_TO_I 0x0C70
357+#define GL_PIXEL_MAP_S_TO_S 0x0C71
358+#define GL_PIXEL_MAP_I_TO_R 0x0C72
359+#define GL_PIXEL_MAP_I_TO_G 0x0C73
360+#define GL_PIXEL_MAP_I_TO_B 0x0C74
361+#define GL_PIXEL_MAP_I_TO_A 0x0C75
362+#define GL_PIXEL_MAP_R_TO_R 0x0C76
363+#define GL_PIXEL_MAP_G_TO_G 0x0C77
364+#define GL_PIXEL_MAP_B_TO_B 0x0C78
365+#define GL_PIXEL_MAP_A_TO_A 0x0C79
366+#define GL_CURRENT_COLOR 0x0B00
367+#define GL_CURRENT_INDEX 0x0B01
368+#define GL_CURRENT_NORMAL 0x0B02
369+#define GL_CURRENT_TEXTURE_COORDS 0x0B03
370+#define GL_CURRENT_RASTER_COLOR 0x0B04
371+#define GL_CURRENT_RASTER_INDEX 0x0B05
372+#define GL_CURRENT_RASTER_TEXTURE_COORDS 0x0B06
373+#define GL_CURRENT_RASTER_POSITION 0x0B07
374+#define GL_CURRENT_RASTER_POSITION_VALID 0x0B08
375+#define GL_CURRENT_RASTER_DISTANCE 0x0B09
376+#define GL_POINT_SMOOTH 0x0B10
377+#define GL_LINE_STIPPLE 0x0B24
378+#define GL_LINE_STIPPLE_PATTERN 0x0B25
379+#define GL_LINE_STIPPLE_REPEAT 0x0B26
380+#define GL_LIST_MODE 0x0B30
381+#define GL_MAX_LIST_NESTING 0x0B31
382+#define GL_LIST_BASE 0x0B32
383+#define GL_LIST_INDEX 0x0B33
384+#define GL_POLYGON_STIPPLE 0x0B42
385+#define GL_EDGE_FLAG 0x0B43
386+#define GL_LIGHTING 0x0B50
387+#define GL_LIGHT_MODEL_LOCAL_VIEWER 0x0B51
388+#define GL_LIGHT_MODEL_TWO_SIDE 0x0B52
389+#define GL_LIGHT_MODEL_AMBIENT 0x0B53
390+#define GL_SHADE_MODEL 0x0B54
391+#define GL_COLOR_MATERIAL_FACE 0x0B55
392+#define GL_COLOR_MATERIAL_PARAMETER 0x0B56
393+#define GL_COLOR_MATERIAL 0x0B57
394+#define GL_FOG 0x0B60
395+#define GL_FOG_INDEX 0x0B61
396+#define GL_FOG_DENSITY 0x0B62
397+#define GL_FOG_START 0x0B63
398+#define GL_FOG_END 0x0B64
399+#define GL_FOG_MODE 0x0B65
400+#define GL_FOG_COLOR 0x0B66
401+#define GL_ACCUM_CLEAR_VALUE 0x0B80
402+#define GL_MATRIX_MODE 0x0BA0
403+#define GL_NORMALIZE 0x0BA1
404+#define GL_MODELVIEW_STACK_DEPTH 0x0BA3
405+#define GL_PROJECTION_STACK_DEPTH 0x0BA4
406+#define GL_TEXTURE_STACK_DEPTH 0x0BA5
407+#define GL_MODELVIEW_MATRIX 0x0BA6
408+#define GL_PROJECTION_MATRIX 0x0BA7
409+#define GL_TEXTURE_MATRIX 0x0BA8
410+#define GL_ATTRIB_STACK_DEPTH 0x0BB0
411+#define GL_ALPHA_TEST 0x0BC0
412+#define GL_ALPHA_TEST_FUNC 0x0BC1
413+#define GL_ALPHA_TEST_REF 0x0BC2
414+#define GL_LOGIC_OP 0x0BF1
415+#define GL_AUX_BUFFERS 0x0C00
416+#define GL_INDEX_CLEAR_VALUE 0x0C20
417+#define GL_INDEX_WRITEMASK 0x0C21
418+#define GL_INDEX_MODE 0x0C30
419+#define GL_RGBA_MODE 0x0C31
420+#define GL_RENDER_MODE 0x0C40
421+#define GL_PERSPECTIVE_CORRECTION_HINT 0x0C50
422+#define GL_POINT_SMOOTH_HINT 0x0C51
423+#define GL_FOG_HINT 0x0C54
424+#define GL_TEXTURE_GEN_S 0x0C60
425+#define GL_TEXTURE_GEN_T 0x0C61
426+#define GL_TEXTURE_GEN_R 0x0C62
427+#define GL_TEXTURE_GEN_Q 0x0C63
428+#define GL_PIXEL_MAP_I_TO_I_SIZE 0x0CB0
429+#define GL_PIXEL_MAP_S_TO_S_SIZE 0x0CB1
430+#define GL_PIXEL_MAP_I_TO_R_SIZE 0x0CB2
431+#define GL_PIXEL_MAP_I_TO_G_SIZE 0x0CB3
432+#define GL_PIXEL_MAP_I_TO_B_SIZE 0x0CB4
433+#define GL_PIXEL_MAP_I_TO_A_SIZE 0x0CB5
434+#define GL_PIXEL_MAP_R_TO_R_SIZE 0x0CB6
435+#define GL_PIXEL_MAP_G_TO_G_SIZE 0x0CB7
436+#define GL_PIXEL_MAP_B_TO_B_SIZE 0x0CB8
437+#define GL_PIXEL_MAP_A_TO_A_SIZE 0x0CB9
438+#define GL_MAP_COLOR 0x0D10
439+#define GL_MAP_STENCIL 0x0D11
440+#define GL_INDEX_SHIFT 0x0D12
441+#define GL_INDEX_OFFSET 0x0D13
442+#define GL_RED_SCALE 0x0D14
443+#define GL_RED_BIAS 0x0D15
444+#define GL_ZOOM_X 0x0D16
445+#define GL_ZOOM_Y 0x0D17
446+#define GL_GREEN_SCALE 0x0D18
447+#define GL_GREEN_BIAS 0x0D19
448+#define GL_BLUE_SCALE 0x0D1A
449+#define GL_BLUE_BIAS 0x0D1B
450+#define GL_ALPHA_SCALE 0x0D1C
451+#define GL_ALPHA_BIAS 0x0D1D
452+#define GL_DEPTH_SCALE 0x0D1E
453+#define GL_DEPTH_BIAS 0x0D1F
454+#define GL_MAX_EVAL_ORDER 0x0D30
455+#define GL_MAX_LIGHTS 0x0D31
456+#define GL_MAX_CLIP_PLANES 0x0D32
457+#define GL_MAX_PIXEL_MAP_TABLE 0x0D34
458+#define GL_MAX_ATTRIB_STACK_DEPTH 0x0D35
459+#define GL_MAX_MODELVIEW_STACK_DEPTH 0x0D36
460+#define GL_MAX_NAME_STACK_DEPTH 0x0D37
461+#define GL_MAX_PROJECTION_STACK_DEPTH 0x0D38
462+#define GL_MAX_TEXTURE_STACK_DEPTH 0x0D39
463+#define GL_INDEX_BITS 0x0D51
464+#define GL_RED_BITS 0x0D52
465+#define GL_GREEN_BITS 0x0D53
466+#define GL_BLUE_BITS 0x0D54
467+#define GL_ALPHA_BITS 0x0D55
468+#define GL_DEPTH_BITS 0x0D56
469+#define GL_STENCIL_BITS 0x0D57
470+#define GL_ACCUM_RED_BITS 0x0D58
471+#define GL_ACCUM_GREEN_BITS 0x0D59
472+#define GL_ACCUM_BLUE_BITS 0x0D5A
473+#define GL_ACCUM_ALPHA_BITS 0x0D5B
474+#define GL_NAME_STACK_DEPTH 0x0D70
475+#define GL_AUTO_NORMAL 0x0D80
476+#define GL_MAP1_COLOR_4 0x0D90
477+#define GL_MAP1_INDEX 0x0D91
478+#define GL_MAP1_NORMAL 0x0D92
479+#define GL_MAP1_TEXTURE_COORD_1 0x0D93
480+#define GL_MAP1_TEXTURE_COORD_2 0x0D94
481+#define GL_MAP1_TEXTURE_COORD_3 0x0D95
482+#define GL_MAP1_TEXTURE_COORD_4 0x0D96
483+#define GL_MAP1_VERTEX_3 0x0D97
484+#define GL_MAP1_VERTEX_4 0x0D98
485+#define GL_MAP2_COLOR_4 0x0DB0
486+#define GL_MAP2_INDEX 0x0DB1
487+#define GL_MAP2_NORMAL 0x0DB2
488+#define GL_MAP2_TEXTURE_COORD_1 0x0DB3
489+#define GL_MAP2_TEXTURE_COORD_2 0x0DB4
490+#define GL_MAP2_TEXTURE_COORD_3 0x0DB5
491+#define GL_MAP2_TEXTURE_COORD_4 0x0DB6
492+#define GL_MAP2_VERTEX_3 0x0DB7
493+#define GL_MAP2_VERTEX_4 0x0DB8
494+#define GL_MAP1_GRID_DOMAIN 0x0DD0
495+#define GL_MAP1_GRID_SEGMENTS 0x0DD1
496+#define GL_MAP2_GRID_DOMAIN 0x0DD2
497+#define GL_MAP2_GRID_SEGMENTS 0x0DD3
498+#define GL_TEXTURE_COMPONENTS 0x1003
499+#define GL_TEXTURE_BORDER 0x1005
500+#define GL_AMBIENT 0x1200
501+#define GL_DIFFUSE 0x1201
502+#define GL_SPECULAR 0x1202
503+#define GL_POSITION 0x1203
504+#define GL_SPOT_DIRECTION 0x1204
505+#define GL_SPOT_EXPONENT 0x1205
506+#define GL_SPOT_CUTOFF 0x1206
507+#define GL_CONSTANT_ATTENUATION 0x1207
508+#define GL_LINEAR_ATTENUATION 0x1208
509+#define GL_QUADRATIC_ATTENUATION 0x1209
510+#define GL_COMPILE 0x1300
511+#define GL_COMPILE_AND_EXECUTE 0x1301
512+#define GL_2_BYTES 0x1407
513+#define GL_3_BYTES 0x1408
514+#define GL_4_BYTES 0x1409
515+#define GL_EMISSION 0x1600
516+#define GL_SHININESS 0x1601
517+#define GL_AMBIENT_AND_DIFFUSE 0x1602
518+#define GL_COLOR_INDEXES 0x1603
519+#define GL_MODELVIEW 0x1700
520+#define GL_PROJECTION 0x1701
521+#define GL_COLOR_INDEX 0x1900
522+#define GL_LUMINANCE 0x1909
523+#define GL_LUMINANCE_ALPHA 0x190A
524+#define GL_BITMAP 0x1A00
525+#define GL_RENDER 0x1C00
526+#define GL_FEEDBACK 0x1C01
527+#define GL_SELECT 0x1C02
528+#define GL_FLAT 0x1D00
529+#define GL_SMOOTH 0x1D01
530+#define GL_S 0x2000
531+#define GL_T 0x2001
532+#define GL_R 0x2002
533+#define GL_Q 0x2003
534+#define GL_MODULATE 0x2100
535+#define GL_DECAL 0x2101
536+#define GL_TEXTURE_ENV_MODE 0x2200
537+#define GL_TEXTURE_ENV_COLOR 0x2201
538+#define GL_TEXTURE_ENV 0x2300
539+#define GL_EYE_LINEAR 0x2400
540+#define GL_OBJECT_LINEAR 0x2401
541+#define GL_SPHERE_MAP 0x2402
542+#define GL_TEXTURE_GEN_MODE 0x2500
543+#define GL_OBJECT_PLANE 0x2501
544+#define GL_EYE_PLANE 0x2502
545+#define GL_CLAMP 0x2900
546+#define GL_CLIP_PLANE0 0x3000
547+#define GL_CLIP_PLANE1 0x3001
548+#define GL_CLIP_PLANE2 0x3002
549+#define GL_CLIP_PLANE3 0x3003
550+#define GL_CLIP_PLANE4 0x3004
551+#define GL_CLIP_PLANE5 0x3005
552+#define GL_LIGHT0 0x4000
553+#define GL_LIGHT1 0x4001
554+#define GL_LIGHT2 0x4002
555+#define GL_LIGHT3 0x4003
556+#define GL_LIGHT4 0x4004
557+#define GL_LIGHT5 0x4005
558+#define GL_LIGHT6 0x4006
559+#define GL_LIGHT7 0x4007
560+#define GL_COLOR_LOGIC_OP 0x0BF2
561+#define GL_POLYGON_OFFSET_UNITS 0x2A00
562+#define GL_POLYGON_OFFSET_POINT 0x2A01
563+#define GL_POLYGON_OFFSET_LINE 0x2A02
564+#define GL_POLYGON_OFFSET_FILL 0x8037
565+#define GL_POLYGON_OFFSET_FACTOR 0x8038
566+#define GL_TEXTURE_BINDING_1D 0x8068
567+#define GL_TEXTURE_BINDING_2D 0x8069
568+#define GL_TEXTURE_INTERNAL_FORMAT 0x1003
569+#define GL_TEXTURE_RED_SIZE 0x805C
570+#define GL_TEXTURE_GREEN_SIZE 0x805D
571+#define GL_TEXTURE_BLUE_SIZE 0x805E
572+#define GL_TEXTURE_ALPHA_SIZE 0x805F
573+#define GL_DOUBLE 0x140A
574+#define GL_PROXY_TEXTURE_1D 0x8063
575+#define GL_PROXY_TEXTURE_2D 0x8064
576+#define GL_R3_G3_B2 0x2A10
577+#define GL_RGB4 0x804F
578+#define GL_RGB5 0x8050
579+#define GL_RGB8 0x8051
580+#define GL_RGB10 0x8052
581+#define GL_RGB12 0x8053
582+#define GL_RGB16 0x8054
583+#define GL_RGBA2 0x8055
584+#define GL_RGBA4 0x8056
585+#define GL_RGB5_A1 0x8057
586+#define GL_RGBA8 0x8058
587+#define GL_RGB10_A2 0x8059
588+#define GL_RGBA12 0x805A
589+#define GL_RGBA16 0x805B
590+#define GL_CLIENT_PIXEL_STORE_BIT 0x00000001
591+#define GL_CLIENT_VERTEX_ARRAY_BIT 0x00000002
592+#define GL_CLIENT_ALL_ATTRIB_BITS 0xFFFFFFFF
593+#define GL_VERTEX_ARRAY_POINTER 0x808E
594+#define GL_NORMAL_ARRAY_POINTER 0x808F
595+#define GL_COLOR_ARRAY_POINTER 0x8090
596+#define GL_INDEX_ARRAY_POINTER 0x8091
597+#define GL_TEXTURE_COORD_ARRAY_POINTER 0x8092
598+#define GL_EDGE_FLAG_ARRAY_POINTER 0x8093
599+#define GL_FEEDBACK_BUFFER_POINTER 0x0DF0
600+#define GL_SELECTION_BUFFER_POINTER 0x0DF3
601+#define GL_CLIENT_ATTRIB_STACK_DEPTH 0x0BB1
602+#define GL_INDEX_LOGIC_OP 0x0BF1
603+#define GL_MAX_CLIENT_ATTRIB_STACK_DEPTH 0x0D3B
604+#define GL_FEEDBACK_BUFFER_SIZE 0x0DF1
605+#define GL_FEEDBACK_BUFFER_TYPE 0x0DF2
606+#define GL_SELECTION_BUFFER_SIZE 0x0DF4
607+#define GL_VERTEX_ARRAY 0x8074
608+#define GL_NORMAL_ARRAY 0x8075
609+#define GL_COLOR_ARRAY 0x8076
610+#define GL_INDEX_ARRAY 0x8077
611+#define GL_TEXTURE_COORD_ARRAY 0x8078
612+#define GL_EDGE_FLAG_ARRAY 0x8079
613+#define GL_VERTEX_ARRAY_SIZE 0x807A
614+#define GL_VERTEX_ARRAY_TYPE 0x807B
615+#define GL_VERTEX_ARRAY_STRIDE 0x807C
616+#define GL_NORMAL_ARRAY_TYPE 0x807E
617+#define GL_NORMAL_ARRAY_STRIDE 0x807F
618+#define GL_COLOR_ARRAY_SIZE 0x8081
619+#define GL_COLOR_ARRAY_TYPE 0x8082
620+#define GL_COLOR_ARRAY_STRIDE 0x8083
621+#define GL_INDEX_ARRAY_TYPE 0x8085
622+#define GL_INDEX_ARRAY_STRIDE 0x8086
623+#define GL_TEXTURE_COORD_ARRAY_SIZE 0x8088
624+#define GL_TEXTURE_COORD_ARRAY_TYPE 0x8089
625+#define GL_TEXTURE_COORD_ARRAY_STRIDE 0x808A
626+#define GL_EDGE_FLAG_ARRAY_STRIDE 0x808C
627+#define GL_TEXTURE_LUMINANCE_SIZE 0x8060
628+#define GL_TEXTURE_INTENSITY_SIZE 0x8061
629+#define GL_TEXTURE_PRIORITY 0x8066
630+#define GL_TEXTURE_RESIDENT 0x8067
631+#define GL_ALPHA4 0x803B
632+#define GL_ALPHA8 0x803C
633+#define GL_ALPHA12 0x803D
634+#define GL_ALPHA16 0x803E
635+#define GL_LUMINANCE4 0x803F
636+#define GL_LUMINANCE8 0x8040
637+#define GL_LUMINANCE12 0x8041
638+#define GL_LUMINANCE16 0x8042
639+#define GL_LUMINANCE4_ALPHA4 0x8043
640+#define GL_LUMINANCE6_ALPHA2 0x8044
641+#define GL_LUMINANCE8_ALPHA8 0x8045
642+#define GL_LUMINANCE12_ALPHA4 0x8046
643+#define GL_LUMINANCE12_ALPHA12 0x8047
644+#define GL_LUMINANCE16_ALPHA16 0x8048
645+#define GL_INTENSITY 0x8049
646+#define GL_INTENSITY4 0x804A
647+#define GL_INTENSITY8 0x804B
648+#define GL_INTENSITY12 0x804C
649+#define GL_INTENSITY16 0x804D
650+#define GL_V2F 0x2A20
651+#define GL_V3F 0x2A21
652+#define GL_C4UB_V2F 0x2A22
653+#define GL_C4UB_V3F 0x2A23
654+#define GL_C3F_V3F 0x2A24
655+#define GL_N3F_V3F 0x2A25
656+#define GL_C4F_N3F_V3F 0x2A26
657+#define GL_T2F_V3F 0x2A27
658+#define GL_T4F_V4F 0x2A28
659+#define GL_T2F_C4UB_V3F 0x2A29
660+#define GL_T2F_C3F_V3F 0x2A2A
661+#define GL_T2F_N3F_V3F 0x2A2B
662+#define GL_T2F_C4F_N3F_V3F 0x2A2C
663+#define GL_T4F_C4F_N3F_V4F 0x2A2D
664+#define GL_UNSIGNED_BYTE_3_3_2 0x8032
665+#define GL_UNSIGNED_SHORT_4_4_4_4 0x8033
666+#define GL_UNSIGNED_SHORT_5_5_5_1 0x8034
667+#define GL_UNSIGNED_INT_8_8_8_8 0x8035
668+#define GL_UNSIGNED_INT_10_10_10_2 0x8036
669+#define GL_TEXTURE_BINDING_3D 0x806A
670+#define GL_PACK_SKIP_IMAGES 0x806B
671+#define GL_PACK_IMAGE_HEIGHT 0x806C
672+#define GL_UNPACK_SKIP_IMAGES 0x806D
673+#define GL_UNPACK_IMAGE_HEIGHT 0x806E
674+#define GL_TEXTURE_3D 0x806F
675+#define GL_PROXY_TEXTURE_3D 0x8070
676+#define GL_TEXTURE_DEPTH 0x8071
677+#define GL_TEXTURE_WRAP_R 0x8072
678+#define GL_MAX_3D_TEXTURE_SIZE 0x8073
679+#define GL_UNSIGNED_BYTE_2_3_3_REV 0x8362
680+#define GL_UNSIGNED_SHORT_5_6_5 0x8363
681+#define GL_UNSIGNED_SHORT_5_6_5_REV 0x8364
682+#define GL_UNSIGNED_SHORT_4_4_4_4_REV 0x8365
683+#define GL_UNSIGNED_SHORT_1_5_5_5_REV 0x8366
684+#define GL_UNSIGNED_INT_8_8_8_8_REV 0x8367
685+#define GL_UNSIGNED_INT_2_10_10_10_REV 0x8368
686+#define GL_BGR 0x80E0
687+#define GL_BGRA 0x80E1
688+#define GL_MAX_ELEMENTS_VERTICES 0x80E8
689+#define GL_MAX_ELEMENTS_INDICES 0x80E9
690+#define GL_CLAMP_TO_EDGE 0x812F
691+#define GL_TEXTURE_MIN_LOD 0x813A
692+#define GL_TEXTURE_MAX_LOD 0x813B
693+#define GL_TEXTURE_BASE_LEVEL 0x813C
694+#define GL_TEXTURE_MAX_LEVEL 0x813D
695+#define GL_SMOOTH_POINT_SIZE_RANGE 0x0B12
696+#define GL_SMOOTH_POINT_SIZE_GRANULARITY 0x0B13
697+#define GL_SMOOTH_LINE_WIDTH_RANGE 0x0B22
698+#define GL_SMOOTH_LINE_WIDTH_GRANULARITY 0x0B23
699+#define GL_ALIASED_LINE_WIDTH_RANGE 0x846E
700+#define GL_RESCALE_NORMAL 0x803A
701+#define GL_LIGHT_MODEL_COLOR_CONTROL 0x81F8
702+#define GL_SINGLE_COLOR 0x81F9
703+#define GL_SEPARATE_SPECULAR_COLOR 0x81FA
704+#define GL_ALIASED_POINT_SIZE_RANGE 0x846D
705+#define GL_TEXTURE0 0x84C0
706+#define GL_TEXTURE1 0x84C1
707+#define GL_TEXTURE2 0x84C2
708+#define GL_TEXTURE3 0x84C3
709+#define GL_TEXTURE4 0x84C4
710+#define GL_TEXTURE5 0x84C5
711+#define GL_TEXTURE6 0x84C6
712+#define GL_TEXTURE7 0x84C7
713+#define GL_TEXTURE8 0x84C8
714+#define GL_TEXTURE9 0x84C9
715+#define GL_TEXTURE10 0x84CA
716+#define GL_TEXTURE11 0x84CB
717+#define GL_TEXTURE12 0x84CC
718+#define GL_TEXTURE13 0x84CD
719+#define GL_TEXTURE14 0x84CE
720+#define GL_TEXTURE15 0x84CF
721+#define GL_TEXTURE16 0x84D0
722+#define GL_TEXTURE17 0x84D1
723+#define GL_TEXTURE18 0x84D2
724+#define GL_TEXTURE19 0x84D3
725+#define GL_TEXTURE20 0x84D4
726+#define GL_TEXTURE21 0x84D5
727+#define GL_TEXTURE22 0x84D6
728+#define GL_TEXTURE23 0x84D7
729+#define GL_TEXTURE24 0x84D8
730+#define GL_TEXTURE25 0x84D9
731+#define GL_TEXTURE26 0x84DA
732+#define GL_TEXTURE27 0x84DB
733+#define GL_TEXTURE28 0x84DC
734+#define GL_TEXTURE29 0x84DD
735+#define GL_TEXTURE30 0x84DE
736+#define GL_TEXTURE31 0x84DF
737+#define GL_ACTIVE_TEXTURE 0x84E0
738+#define GL_MULTISAMPLE 0x809D
739+#define GL_SAMPLE_ALPHA_TO_COVERAGE 0x809E
740+#define GL_SAMPLE_ALPHA_TO_ONE 0x809F
741+#define GL_SAMPLE_COVERAGE 0x80A0
742+#define GL_SAMPLE_BUFFERS 0x80A8
743+#define GL_SAMPLES 0x80A9
744+#define GL_SAMPLE_COVERAGE_VALUE 0x80AA
745+#define GL_SAMPLE_COVERAGE_INVERT 0x80AB
746+#define GL_TEXTURE_CUBE_MAP 0x8513
747+#define GL_TEXTURE_BINDING_CUBE_MAP 0x8514
748+#define GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x8515
749+#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x8516
750+#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x8517
751+#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x8518
752+#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x8519
753+#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x851A
754+#define GL_PROXY_TEXTURE_CUBE_MAP 0x851B
755+#define GL_MAX_CUBE_MAP_TEXTURE_SIZE 0x851C
756+#define GL_COMPRESSED_RGB 0x84ED
757+#define GL_COMPRESSED_RGBA 0x84EE
758+#define GL_TEXTURE_COMPRESSION_HINT 0x84EF
759+#define GL_TEXTURE_COMPRESSED_IMAGE_SIZE 0x86A0
760+#define GL_TEXTURE_COMPRESSED 0x86A1
761+#define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2
762+#define GL_COMPRESSED_TEXTURE_FORMATS 0x86A3
763+#define GL_CLAMP_TO_BORDER 0x812D
764+#define GL_CLIENT_ACTIVE_TEXTURE 0x84E1
765+#define GL_MAX_TEXTURE_UNITS 0x84E2
766+#define GL_TRANSPOSE_MODELVIEW_MATRIX 0x84E3
767+#define GL_TRANSPOSE_PROJECTION_MATRIX 0x84E4
768+#define GL_TRANSPOSE_TEXTURE_MATRIX 0x84E5
769+#define GL_TRANSPOSE_COLOR_MATRIX 0x84E6
770+#define GL_MULTISAMPLE_BIT 0x20000000
771+#define GL_NORMAL_MAP 0x8511
772+#define GL_REFLECTION_MAP 0x8512
773+#define GL_COMPRESSED_ALPHA 0x84E9
774+#define GL_COMPRESSED_LUMINANCE 0x84EA
775+#define GL_COMPRESSED_LUMINANCE_ALPHA 0x84EB
776+#define GL_COMPRESSED_INTENSITY 0x84EC
777+#define GL_COMBINE 0x8570
778+#define GL_COMBINE_RGB 0x8571
779+#define GL_COMBINE_ALPHA 0x8572
780+#define GL_SOURCE0_RGB 0x8580
781+#define GL_SOURCE1_RGB 0x8581
782+#define GL_SOURCE2_RGB 0x8582
783+#define GL_SOURCE0_ALPHA 0x8588
784+#define GL_SOURCE1_ALPHA 0x8589
785+#define GL_SOURCE2_ALPHA 0x858A
786+#define GL_OPERAND0_RGB 0x8590
787+#define GL_OPERAND1_RGB 0x8591
788+#define GL_OPERAND2_RGB 0x8592
789+#define GL_OPERAND0_ALPHA 0x8598
790+#define GL_OPERAND1_ALPHA 0x8599
791+#define GL_OPERAND2_ALPHA 0x859A
792+#define GL_RGB_SCALE 0x8573
793+#define GL_ADD_SIGNED 0x8574
794+#define GL_INTERPOLATE 0x8575
795+#define GL_SUBTRACT 0x84E7
796+#define GL_CONSTANT 0x8576
797+#define GL_PRIMARY_COLOR 0x8577
798+#define GL_PREVIOUS 0x8578
799+#define GL_DOT3_RGB 0x86AE
800+#define GL_DOT3_RGBA 0x86AF
801+#define GL_BLEND_DST_RGB 0x80C8
802+#define GL_BLEND_SRC_RGB 0x80C9
803+#define GL_BLEND_DST_ALPHA 0x80CA
804+#define GL_BLEND_SRC_ALPHA 0x80CB
805+#define GL_POINT_FADE_THRESHOLD_SIZE 0x8128
806+#define GL_DEPTH_COMPONENT16 0x81A5
807+#define GL_DEPTH_COMPONENT24 0x81A6
808+#define GL_DEPTH_COMPONENT32 0x81A7
809+#define GL_MIRRORED_REPEAT 0x8370
810+#define GL_MAX_TEXTURE_LOD_BIAS 0x84FD
811+#define GL_TEXTURE_LOD_BIAS 0x8501
812+#define GL_INCR_WRAP 0x8507
813+#define GL_DECR_WRAP 0x8508
814+#define GL_TEXTURE_DEPTH_SIZE 0x884A
815+#define GL_TEXTURE_COMPARE_MODE 0x884C
816+#define GL_TEXTURE_COMPARE_FUNC 0x884D
817+#define GL_POINT_SIZE_MIN 0x8126
818+#define GL_POINT_SIZE_MAX 0x8127
819+#define GL_POINT_DISTANCE_ATTENUATION 0x8129
820+#define GL_GENERATE_MIPMAP 0x8191
821+#define GL_GENERATE_MIPMAP_HINT 0x8192
822+#define GL_FOG_COORDINATE_SOURCE 0x8450
823+#define GL_FOG_COORDINATE 0x8451
824+#define GL_FRAGMENT_DEPTH 0x8452
825+#define GL_CURRENT_FOG_COORDINATE 0x8453
826+#define GL_FOG_COORDINATE_ARRAY_TYPE 0x8454
827+#define GL_FOG_COORDINATE_ARRAY_STRIDE 0x8455
828+#define GL_FOG_COORDINATE_ARRAY_POINTER 0x8456
829+#define GL_FOG_COORDINATE_ARRAY 0x8457
830+#define GL_COLOR_SUM 0x8458
831+#define GL_CURRENT_SECONDARY_COLOR 0x8459
832+#define GL_SECONDARY_COLOR_ARRAY_SIZE 0x845A
833+#define GL_SECONDARY_COLOR_ARRAY_TYPE 0x845B
834+#define GL_SECONDARY_COLOR_ARRAY_STRIDE 0x845C
835+#define GL_SECONDARY_COLOR_ARRAY_POINTER 0x845D
836+#define GL_SECONDARY_COLOR_ARRAY 0x845E
837+#define GL_TEXTURE_FILTER_CONTROL 0x8500
838+#define GL_DEPTH_TEXTURE_MODE 0x884B
839+#define GL_COMPARE_R_TO_TEXTURE 0x884E
840+#define GL_BLEND_COLOR 0x8005
841+#define GL_BLEND_EQUATION 0x8009
842+#define GL_CONSTANT_COLOR 0x8001
843+#define GL_ONE_MINUS_CONSTANT_COLOR 0x8002
844+#define GL_CONSTANT_ALPHA 0x8003
845+#define GL_ONE_MINUS_CONSTANT_ALPHA 0x8004
846+#define GL_FUNC_ADD 0x8006
847+#define GL_FUNC_REVERSE_SUBTRACT 0x800B
848+#define GL_FUNC_SUBTRACT 0x800A
849+#define GL_MIN 0x8007
850+#define GL_MAX 0x8008
851+#define GL_BUFFER_SIZE 0x8764
852+#define GL_BUFFER_USAGE 0x8765
853+#define GL_QUERY_COUNTER_BITS 0x8864
854+#define GL_CURRENT_QUERY 0x8865
855+#define GL_QUERY_RESULT 0x8866
856+#define GL_QUERY_RESULT_AVAILABLE 0x8867
857+#define GL_ARRAY_BUFFER 0x8892
858+#define GL_ELEMENT_ARRAY_BUFFER 0x8893
859+#define GL_ARRAY_BUFFER_BINDING 0x8894
860+#define GL_ELEMENT_ARRAY_BUFFER_BINDING 0x8895
861+#define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING 0x889F
862+#define GL_READ_ONLY 0x88B8
863+#define GL_WRITE_ONLY 0x88B9
864+#define GL_READ_WRITE 0x88BA
865+#define GL_BUFFER_ACCESS 0x88BB
866+#define GL_BUFFER_MAPPED 0x88BC
867+#define GL_BUFFER_MAP_POINTER 0x88BD
868+#define GL_STREAM_DRAW 0x88E0
869+#define GL_STREAM_READ 0x88E1
870+#define GL_STREAM_COPY 0x88E2
871+#define GL_STATIC_DRAW 0x88E4
872+#define GL_STATIC_READ 0x88E5
873+#define GL_STATIC_COPY 0x88E6
874+#define GL_DYNAMIC_DRAW 0x88E8
875+#define GL_DYNAMIC_READ 0x88E9
876+#define GL_DYNAMIC_COPY 0x88EA
877+#define GL_SAMPLES_PASSED 0x8914
878+#define GL_SRC1_ALPHA 0x8589
879+#define GL_VERTEX_ARRAY_BUFFER_BINDING 0x8896
880+#define GL_NORMAL_ARRAY_BUFFER_BINDING 0x8897
881+#define GL_COLOR_ARRAY_BUFFER_BINDING 0x8898
882+#define GL_INDEX_ARRAY_BUFFER_BINDING 0x8899
883+#define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING 0x889A
884+#define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING 0x889B
885+#define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING 0x889C
886+#define GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING 0x889D
887+#define GL_WEIGHT_ARRAY_BUFFER_BINDING 0x889E
888+#define GL_FOG_COORD_SRC 0x8450
889+#define GL_FOG_COORD 0x8451
890+#define GL_CURRENT_FOG_COORD 0x8453
891+#define GL_FOG_COORD_ARRAY_TYPE 0x8454
892+#define GL_FOG_COORD_ARRAY_STRIDE 0x8455
893+#define GL_FOG_COORD_ARRAY_POINTER 0x8456
894+#define GL_FOG_COORD_ARRAY 0x8457
895+#define GL_FOG_COORD_ARRAY_BUFFER_BINDING 0x889D
896+#define GL_SRC0_RGB 0x8580
897+#define GL_SRC1_RGB 0x8581
898+#define GL_SRC2_RGB 0x8582
899+#define GL_SRC0_ALPHA 0x8588
900+#define GL_SRC2_ALPHA 0x858A
901+#define GL_BLEND_EQUATION_RGB 0x8009
902+#define GL_VERTEX_ATTRIB_ARRAY_ENABLED 0x8622
903+#define GL_VERTEX_ATTRIB_ARRAY_SIZE 0x8623
904+#define GL_VERTEX_ATTRIB_ARRAY_STRIDE 0x8624
905+#define GL_VERTEX_ATTRIB_ARRAY_TYPE 0x8625
906+#define GL_CURRENT_VERTEX_ATTRIB 0x8626
907+#define GL_VERTEX_PROGRAM_POINT_SIZE 0x8642
908+#define GL_VERTEX_ATTRIB_ARRAY_POINTER 0x8645
909+#define GL_STENCIL_BACK_FUNC 0x8800
910+#define GL_STENCIL_BACK_FAIL 0x8801
911+#define GL_STENCIL_BACK_PASS_DEPTH_FAIL 0x8802
912+#define GL_STENCIL_BACK_PASS_DEPTH_PASS 0x8803
913+#define GL_MAX_DRAW_BUFFERS 0x8824
914+#define GL_DRAW_BUFFER0 0x8825
915+#define GL_DRAW_BUFFER1 0x8826
916+#define GL_DRAW_BUFFER2 0x8827
917+#define GL_DRAW_BUFFER3 0x8828
918+#define GL_DRAW_BUFFER4 0x8829
919+#define GL_DRAW_BUFFER5 0x882A
920+#define GL_DRAW_BUFFER6 0x882B
921+#define GL_DRAW_BUFFER7 0x882C
922+#define GL_DRAW_BUFFER8 0x882D
923+#define GL_DRAW_BUFFER9 0x882E
924+#define GL_DRAW_BUFFER10 0x882F
925+#define GL_DRAW_BUFFER11 0x8830
926+#define GL_DRAW_BUFFER12 0x8831
927+#define GL_DRAW_BUFFER13 0x8832
928+#define GL_DRAW_BUFFER14 0x8833
929+#define GL_DRAW_BUFFER15 0x8834
930+#define GL_BLEND_EQUATION_ALPHA 0x883D
931+#define GL_MAX_VERTEX_ATTRIBS 0x8869
932+#define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886A
933+#define GL_MAX_TEXTURE_IMAGE_UNITS 0x8872
934+#define GL_FRAGMENT_SHADER 0x8B30
935+#define GL_VERTEX_SHADER 0x8B31
936+#define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS 0x8B49
937+#define GL_MAX_VERTEX_UNIFORM_COMPONENTS 0x8B4A
938+#define GL_MAX_VARYING_FLOATS 0x8B4B
939+#define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8B4C
940+#define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D
941+#define GL_SHADER_TYPE 0x8B4F
942+#define GL_FLOAT_VEC2 0x8B50
943+#define GL_FLOAT_VEC3 0x8B51
944+#define GL_FLOAT_VEC4 0x8B52
945+#define GL_INT_VEC2 0x8B53
946+#define GL_INT_VEC3 0x8B54
947+#define GL_INT_VEC4 0x8B55
948+#define GL_BOOL 0x8B56
949+#define GL_BOOL_VEC2 0x8B57
950+#define GL_BOOL_VEC3 0x8B58
951+#define GL_BOOL_VEC4 0x8B59
952+#define GL_FLOAT_MAT2 0x8B5A
953+#define GL_FLOAT_MAT3 0x8B5B
954+#define GL_FLOAT_MAT4 0x8B5C
955+#define GL_SAMPLER_1D 0x8B5D
956+#define GL_SAMPLER_2D 0x8B5E
957+#define GL_SAMPLER_3D 0x8B5F
958+#define GL_SAMPLER_CUBE 0x8B60
959+#define GL_SAMPLER_1D_SHADOW 0x8B61
960+#define GL_SAMPLER_2D_SHADOW 0x8B62
961+#define GL_DELETE_STATUS 0x8B80
962+#define GL_COMPILE_STATUS 0x8B81
963+#define GL_LINK_STATUS 0x8B82
964+#define GL_VALIDATE_STATUS 0x8B83
965+#define GL_INFO_LOG_LENGTH 0x8B84
966+#define GL_ATTACHED_SHADERS 0x8B85
967+#define GL_ACTIVE_UNIFORMS 0x8B86
968+#define GL_ACTIVE_UNIFORM_MAX_LENGTH 0x8B87
969+#define GL_SHADER_SOURCE_LENGTH 0x8B88
970+#define GL_ACTIVE_ATTRIBUTES 0x8B89
971+#define GL_ACTIVE_ATTRIBUTE_MAX_LENGTH 0x8B8A
972+#define GL_FRAGMENT_SHADER_DERIVATIVE_HINT 0x8B8B
973+#define GL_SHADING_LANGUAGE_VERSION 0x8B8C
974+#define GL_CURRENT_PROGRAM 0x8B8D
975+#define GL_POINT_SPRITE_COORD_ORIGIN 0x8CA0
976+#define GL_LOWER_LEFT 0x8CA1
977+#define GL_UPPER_LEFT 0x8CA2
978+#define GL_STENCIL_BACK_REF 0x8CA3
979+#define GL_STENCIL_BACK_VALUE_MASK 0x8CA4
980+#define GL_STENCIL_BACK_WRITEMASK 0x8CA5
981+#define GL_VERTEX_PROGRAM_TWO_SIDE 0x8643
982+#define GL_POINT_SPRITE 0x8861
983+#define GL_COORD_REPLACE 0x8862
984+#define GL_MAX_TEXTURE_COORDS 0x8871
985+#define GL_PIXEL_PACK_BUFFER 0x88EB
986+#define GL_PIXEL_UNPACK_BUFFER 0x88EC
987+#define GL_PIXEL_PACK_BUFFER_BINDING 0x88ED
988+#define GL_PIXEL_UNPACK_BUFFER_BINDING 0x88EF
989+#define GL_FLOAT_MAT2x3 0x8B65
990+#define GL_FLOAT_MAT2x4 0x8B66
991+#define GL_FLOAT_MAT3x2 0x8B67
992+#define GL_FLOAT_MAT3x4 0x8B68
993+#define GL_FLOAT_MAT4x2 0x8B69
994+#define GL_FLOAT_MAT4x3 0x8B6A
995+#define GL_SRGB 0x8C40
996+#define GL_SRGB8 0x8C41
997+#define GL_SRGB_ALPHA 0x8C42
998+#define GL_SRGB8_ALPHA8 0x8C43
999+#define GL_COMPRESSED_SRGB 0x8C48
1000+#define GL_COMPRESSED_SRGB_ALPHA 0x8C49
1001+#define GL_CURRENT_RASTER_SECONDARY_COLOR 0x845F
1002+#define GL_SLUMINANCE_ALPHA 0x8C44
1003+#define GL_SLUMINANCE8_ALPHA8 0x8C45
1004+#define GL_SLUMINANCE 0x8C46
1005+#define GL_SLUMINANCE8 0x8C47
1006+#define GL_COMPRESSED_SLUMINANCE 0x8C4A
1007+#define GL_COMPRESSED_SLUMINANCE_ALPHA 0x8C4B
1008+#define GL_COMPARE_REF_TO_TEXTURE 0x884E
1009+#define GL_CLIP_DISTANCE0 0x3000
1010+#define GL_CLIP_DISTANCE1 0x3001
1011+#define GL_CLIP_DISTANCE2 0x3002
1012+#define GL_CLIP_DISTANCE3 0x3003
1013+#define GL_CLIP_DISTANCE4 0x3004
1014+#define GL_CLIP_DISTANCE5 0x3005
1015+#define GL_CLIP_DISTANCE6 0x3006
1016+#define GL_CLIP_DISTANCE7 0x3007
1017+#define GL_MAX_CLIP_DISTANCES 0x0D32
1018+#define GL_MAJOR_VERSION 0x821B
1019+#define GL_MINOR_VERSION 0x821C
1020+#define GL_NUM_EXTENSIONS 0x821D
1021+#define GL_CONTEXT_FLAGS 0x821E
1022+#define GL_COMPRESSED_RED 0x8225
1023+#define GL_COMPRESSED_RG 0x8226
1024+#define GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT 0x00000001
1025+#define GL_RGBA32F 0x8814
1026+#define GL_RGB32F 0x8815
1027+#define GL_RGBA16F 0x881A
1028+#define GL_RGB16F 0x881B
1029+#define GL_VERTEX_ATTRIB_ARRAY_INTEGER 0x88FD
1030+#define GL_MAX_ARRAY_TEXTURE_LAYERS 0x88FF
1031+#define GL_MIN_PROGRAM_TEXEL_OFFSET 0x8904
1032+#define GL_MAX_PROGRAM_TEXEL_OFFSET 0x8905
1033+#define GL_CLAMP_READ_COLOR 0x891C
1034+#define GL_FIXED_ONLY 0x891D
1035+#define GL_MAX_VARYING_COMPONENTS 0x8B4B
1036+#define GL_TEXTURE_1D_ARRAY 0x8C18
1037+#define GL_PROXY_TEXTURE_1D_ARRAY 0x8C19
1038+#define GL_TEXTURE_2D_ARRAY 0x8C1A
1039+#define GL_PROXY_TEXTURE_2D_ARRAY 0x8C1B
1040+#define GL_TEXTURE_BINDING_1D_ARRAY 0x8C1C
1041+#define GL_TEXTURE_BINDING_2D_ARRAY 0x8C1D
1042+#define GL_R11F_G11F_B10F 0x8C3A
1043+#define GL_UNSIGNED_INT_10F_11F_11F_REV 0x8C3B
1044+#define GL_RGB9_E5 0x8C3D
1045+#define GL_UNSIGNED_INT_5_9_9_9_REV 0x8C3E
1046+#define GL_TEXTURE_SHARED_SIZE 0x8C3F
1047+#define GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH 0x8C76
1048+#define GL_TRANSFORM_FEEDBACK_BUFFER_MODE 0x8C7F
1049+#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS 0x8C80
1050+#define GL_TRANSFORM_FEEDBACK_VARYINGS 0x8C83
1051+#define GL_TRANSFORM_FEEDBACK_BUFFER_START 0x8C84
1052+#define GL_TRANSFORM_FEEDBACK_BUFFER_SIZE 0x8C85
1053+#define GL_PRIMITIVES_GENERATED 0x8C87
1054+#define GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN 0x8C88
1055+#define GL_RASTERIZER_DISCARD 0x8C89
1056+#define GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS 0x8C8A
1057+#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS 0x8C8B
1058+#define GL_INTERLEAVED_ATTRIBS 0x8C8C
1059+#define GL_SEPARATE_ATTRIBS 0x8C8D
1060+#define GL_TRANSFORM_FEEDBACK_BUFFER 0x8C8E
1061+#define GL_TRANSFORM_FEEDBACK_BUFFER_BINDING 0x8C8F
1062+#define GL_RGBA32UI 0x8D70
1063+#define GL_RGB32UI 0x8D71
1064+#define GL_RGBA16UI 0x8D76
1065+#define GL_RGB16UI 0x8D77
1066+#define GL_RGBA8UI 0x8D7C
1067+#define GL_RGB8UI 0x8D7D
1068+#define GL_RGBA32I 0x8D82
1069+#define GL_RGB32I 0x8D83
1070+#define GL_RGBA16I 0x8D88
1071+#define GL_RGB16I 0x8D89
1072+#define GL_RGBA8I 0x8D8E
1073+#define GL_RGB8I 0x8D8F
1074+#define GL_RED_INTEGER 0x8D94
1075+#define GL_GREEN_INTEGER 0x8D95
1076+#define GL_BLUE_INTEGER 0x8D96
1077+#define GL_RGB_INTEGER 0x8D98
1078+#define GL_RGBA_INTEGER 0x8D99
1079+#define GL_BGR_INTEGER 0x8D9A
1080+#define GL_BGRA_INTEGER 0x8D9B
1081+#define GL_SAMPLER_1D_ARRAY 0x8DC0
1082+#define GL_SAMPLER_2D_ARRAY 0x8DC1
1083+#define GL_SAMPLER_1D_ARRAY_SHADOW 0x8DC3
1084+#define GL_SAMPLER_2D_ARRAY_SHADOW 0x8DC4
1085+#define GL_SAMPLER_CUBE_SHADOW 0x8DC5
1086+#define GL_UNSIGNED_INT_VEC2 0x8DC6
1087+#define GL_UNSIGNED_INT_VEC3 0x8DC7
1088+#define GL_UNSIGNED_INT_VEC4 0x8DC8
1089+#define GL_INT_SAMPLER_1D 0x8DC9
1090+#define GL_INT_SAMPLER_2D 0x8DCA
1091+#define GL_INT_SAMPLER_3D 0x8DCB
1092+#define GL_INT_SAMPLER_CUBE 0x8DCC
1093+#define GL_INT_SAMPLER_1D_ARRAY 0x8DCE
1094+#define GL_INT_SAMPLER_2D_ARRAY 0x8DCF
1095+#define GL_UNSIGNED_INT_SAMPLER_1D 0x8DD1
1096+#define GL_UNSIGNED_INT_SAMPLER_2D 0x8DD2
1097+#define GL_UNSIGNED_INT_SAMPLER_3D 0x8DD3
1098+#define GL_UNSIGNED_INT_SAMPLER_CUBE 0x8DD4
1099+#define GL_UNSIGNED_INT_SAMPLER_1D_ARRAY 0x8DD6
1100+#define GL_UNSIGNED_INT_SAMPLER_2D_ARRAY 0x8DD7
1101+#define GL_QUERY_WAIT 0x8E13
1102+#define GL_QUERY_NO_WAIT 0x8E14
1103+#define GL_QUERY_BY_REGION_WAIT 0x8E15
1104+#define GL_QUERY_BY_REGION_NO_WAIT 0x8E16
1105+#define GL_BUFFER_ACCESS_FLAGS 0x911F
1106+#define GL_BUFFER_MAP_LENGTH 0x9120
1107+#define GL_BUFFER_MAP_OFFSET 0x9121
1108+#define GL_DEPTH_COMPONENT32F 0x8CAC
1109+#define GL_DEPTH32F_STENCIL8 0x8CAD
1110+#define GL_FLOAT_32_UNSIGNED_INT_24_8_REV 0x8DAD
1111+#define GL_INVALID_FRAMEBUFFER_OPERATION 0x0506
1112+#define GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING 0x8210
1113+#define GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE 0x8211
1114+#define GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE 0x8212
1115+#define GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE 0x8213
1116+#define GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE 0x8214
1117+#define GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE 0x8215
1118+#define GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE 0x8216
1119+#define GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE 0x8217
1120+#define GL_FRAMEBUFFER_DEFAULT 0x8218
1121+#define GL_FRAMEBUFFER_UNDEFINED 0x8219
1122+#define GL_DEPTH_STENCIL_ATTACHMENT 0x821A
1123+#define GL_MAX_RENDERBUFFER_SIZE 0x84E8
1124+#define GL_DEPTH_STENCIL 0x84F9
1125+#define GL_UNSIGNED_INT_24_8 0x84FA
1126+#define GL_DEPTH24_STENCIL8 0x88F0
1127+#define GL_TEXTURE_STENCIL_SIZE 0x88F1
1128+#define GL_TEXTURE_RED_TYPE 0x8C10
1129+#define GL_TEXTURE_GREEN_TYPE 0x8C11
1130+#define GL_TEXTURE_BLUE_TYPE 0x8C12
1131+#define GL_TEXTURE_ALPHA_TYPE 0x8C13
1132+#define GL_TEXTURE_DEPTH_TYPE 0x8C16
1133+#define GL_UNSIGNED_NORMALIZED 0x8C17
1134+#define GL_FRAMEBUFFER_BINDING 0x8CA6
1135+#define GL_DRAW_FRAMEBUFFER_BINDING 0x8CA6
1136+#define GL_RENDERBUFFER_BINDING 0x8CA7
1137+#define GL_READ_FRAMEBUFFER 0x8CA8
1138+#define GL_DRAW_FRAMEBUFFER 0x8CA9
1139+#define GL_READ_FRAMEBUFFER_BINDING 0x8CAA
1140+#define GL_RENDERBUFFER_SAMPLES 0x8CAB
1141+#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE 0x8CD0
1142+#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME 0x8CD1
1143+#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL 0x8CD2
1144+#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE 0x8CD3
1145+#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER 0x8CD4
1146+#define GL_FRAMEBUFFER_COMPLETE 0x8CD5
1147+#define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT 0x8CD6
1148+#define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT 0x8CD7
1149+#define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER 0x8CDB
1150+#define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER 0x8CDC
1151+#define GL_FRAMEBUFFER_UNSUPPORTED 0x8CDD
1152+#define GL_MAX_COLOR_ATTACHMENTS 0x8CDF
1153+#define GL_COLOR_ATTACHMENT0 0x8CE0
1154+#define GL_COLOR_ATTACHMENT1 0x8CE1
1155+#define GL_COLOR_ATTACHMENT2 0x8CE2
1156+#define GL_COLOR_ATTACHMENT3 0x8CE3
1157+#define GL_COLOR_ATTACHMENT4 0x8CE4
1158+#define GL_COLOR_ATTACHMENT5 0x8CE5
1159+#define GL_COLOR_ATTACHMENT6 0x8CE6
1160+#define GL_COLOR_ATTACHMENT7 0x8CE7
1161+#define GL_COLOR_ATTACHMENT8 0x8CE8
1162+#define GL_COLOR_ATTACHMENT9 0x8CE9
1163+#define GL_COLOR_ATTACHMENT10 0x8CEA
1164+#define GL_COLOR_ATTACHMENT11 0x8CEB
1165+#define GL_COLOR_ATTACHMENT12 0x8CEC
1166+#define GL_COLOR_ATTACHMENT13 0x8CED
1167+#define GL_COLOR_ATTACHMENT14 0x8CEE
1168+#define GL_COLOR_ATTACHMENT15 0x8CEF
1169+#define GL_COLOR_ATTACHMENT16 0x8CF0
1170+#define GL_COLOR_ATTACHMENT17 0x8CF1
1171+#define GL_COLOR_ATTACHMENT18 0x8CF2
1172+#define GL_COLOR_ATTACHMENT19 0x8CF3
1173+#define GL_COLOR_ATTACHMENT20 0x8CF4
1174+#define GL_COLOR_ATTACHMENT21 0x8CF5
1175+#define GL_COLOR_ATTACHMENT22 0x8CF6
1176+#define GL_COLOR_ATTACHMENT23 0x8CF7
1177+#define GL_COLOR_ATTACHMENT24 0x8CF8
1178+#define GL_COLOR_ATTACHMENT25 0x8CF9
1179+#define GL_COLOR_ATTACHMENT26 0x8CFA
1180+#define GL_COLOR_ATTACHMENT27 0x8CFB
1181+#define GL_COLOR_ATTACHMENT28 0x8CFC
1182+#define GL_COLOR_ATTACHMENT29 0x8CFD
1183+#define GL_COLOR_ATTACHMENT30 0x8CFE
1184+#define GL_COLOR_ATTACHMENT31 0x8CFF
1185+#define GL_DEPTH_ATTACHMENT 0x8D00
1186+#define GL_STENCIL_ATTACHMENT 0x8D20
1187+#define GL_FRAMEBUFFER 0x8D40
1188+#define GL_RENDERBUFFER 0x8D41
1189+#define GL_RENDERBUFFER_WIDTH 0x8D42
1190+#define GL_RENDERBUFFER_HEIGHT 0x8D43
1191+#define GL_RENDERBUFFER_INTERNAL_FORMAT 0x8D44
1192+#define GL_STENCIL_INDEX1 0x8D46
1193+#define GL_STENCIL_INDEX4 0x8D47
1194+#define GL_STENCIL_INDEX8 0x8D48
1195+#define GL_STENCIL_INDEX16 0x8D49
1196+#define GL_RENDERBUFFER_RED_SIZE 0x8D50
1197+#define GL_RENDERBUFFER_GREEN_SIZE 0x8D51
1198+#define GL_RENDERBUFFER_BLUE_SIZE 0x8D52
1199+#define GL_RENDERBUFFER_ALPHA_SIZE 0x8D53
1200+#define GL_RENDERBUFFER_DEPTH_SIZE 0x8D54
1201+#define GL_RENDERBUFFER_STENCIL_SIZE 0x8D55
1202+#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE 0x8D56
1203+#define GL_MAX_SAMPLES 0x8D57
1204+#define GL_INDEX 0x8222
1205+#define GL_TEXTURE_LUMINANCE_TYPE 0x8C14
1206+#define GL_TEXTURE_INTENSITY_TYPE 0x8C15
1207+#define GL_FRAMEBUFFER_SRGB 0x8DB9
1208+#define GL_HALF_FLOAT 0x140B
1209+#define GL_MAP_READ_BIT 0x0001
1210+#define GL_MAP_WRITE_BIT 0x0002
1211+#define GL_MAP_INVALIDATE_RANGE_BIT 0x0004
1212+#define GL_MAP_INVALIDATE_BUFFER_BIT 0x0008
1213+#define GL_MAP_FLUSH_EXPLICIT_BIT 0x0010
1214+#define GL_MAP_UNSYNCHRONIZED_BIT 0x0020
1215+#define GL_COMPRESSED_RED_RGTC1 0x8DBB
1216+#define GL_COMPRESSED_SIGNED_RED_RGTC1 0x8DBC
1217+#define GL_COMPRESSED_RG_RGTC2 0x8DBD
1218+#define GL_COMPRESSED_SIGNED_RG_RGTC2 0x8DBE
1219+#define GL_RG 0x8227
1220+#define GL_RG_INTEGER 0x8228
1221+#define GL_R8 0x8229
1222+#define GL_R16 0x822A
1223+#define GL_RG8 0x822B
1224+#define GL_RG16 0x822C
1225+#define GL_R16F 0x822D
1226+#define GL_R32F 0x822E
1227+#define GL_RG16F 0x822F
1228+#define GL_RG32F 0x8230
1229+#define GL_R8I 0x8231
1230+#define GL_R8UI 0x8232
1231+#define GL_R16I 0x8233
1232+#define GL_R16UI 0x8234
1233+#define GL_R32I 0x8235
1234+#define GL_R32UI 0x8236
1235+#define GL_RG8I 0x8237
1236+#define GL_RG8UI 0x8238
1237+#define GL_RG16I 0x8239
1238+#define GL_RG16UI 0x823A
1239+#define GL_RG32I 0x823B
1240+#define GL_RG32UI 0x823C
1241+#define GL_VERTEX_ARRAY_BINDING 0x85B5
1242+#define GL_CLAMP_VERTEX_COLOR 0x891A
1243+#define GL_CLAMP_FRAGMENT_COLOR 0x891B
1244+#define GL_ALPHA_INTEGER 0x8D97
1245+#define GL_SAMPLER_2D_RECT 0x8B63
1246+#define GL_SAMPLER_2D_RECT_SHADOW 0x8B64
1247+#define GL_SAMPLER_BUFFER 0x8DC2
1248+#define GL_INT_SAMPLER_2D_RECT 0x8DCD
1249+#define GL_INT_SAMPLER_BUFFER 0x8DD0
1250+#define GL_UNSIGNED_INT_SAMPLER_2D_RECT 0x8DD5
1251+#define GL_UNSIGNED_INT_SAMPLER_BUFFER 0x8DD8
1252+#define GL_TEXTURE_BUFFER 0x8C2A
1253+#define GL_MAX_TEXTURE_BUFFER_SIZE 0x8C2B
1254+#define GL_TEXTURE_BINDING_BUFFER 0x8C2C
1255+#define GL_TEXTURE_BUFFER_DATA_STORE_BINDING 0x8C2D
1256+#define GL_TEXTURE_RECTANGLE 0x84F5
1257+#define GL_TEXTURE_BINDING_RECTANGLE 0x84F6
1258+#define GL_PROXY_TEXTURE_RECTANGLE 0x84F7
1259+#define GL_MAX_RECTANGLE_TEXTURE_SIZE 0x84F8
1260+#define GL_R8_SNORM 0x8F94
1261+#define GL_RG8_SNORM 0x8F95
1262+#define GL_RGB8_SNORM 0x8F96
1263+#define GL_RGBA8_SNORM 0x8F97
1264+#define GL_R16_SNORM 0x8F98
1265+#define GL_RG16_SNORM 0x8F99
1266+#define GL_RGB16_SNORM 0x8F9A
1267+#define GL_RGBA16_SNORM 0x8F9B
1268+#define GL_SIGNED_NORMALIZED 0x8F9C
1269+#define GL_PRIMITIVE_RESTART 0x8F9D
1270+#define GL_PRIMITIVE_RESTART_INDEX 0x8F9E
1271+#define GL_COPY_READ_BUFFER 0x8F36
1272+#define GL_COPY_WRITE_BUFFER 0x8F37
1273+#define GL_UNIFORM_BUFFER 0x8A11
1274+#define GL_UNIFORM_BUFFER_BINDING 0x8A28
1275+#define GL_UNIFORM_BUFFER_START 0x8A29
1276+#define GL_UNIFORM_BUFFER_SIZE 0x8A2A
1277+#define GL_MAX_VERTEX_UNIFORM_BLOCKS 0x8A2B
1278+#define GL_MAX_GEOMETRY_UNIFORM_BLOCKS 0x8A2C
1279+#define GL_MAX_FRAGMENT_UNIFORM_BLOCKS 0x8A2D
1280+#define GL_MAX_COMBINED_UNIFORM_BLOCKS 0x8A2E
1281+#define GL_MAX_UNIFORM_BUFFER_BINDINGS 0x8A2F
1282+#define GL_MAX_UNIFORM_BLOCK_SIZE 0x8A30
1283+#define GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS 0x8A31
1284+#define GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS 0x8A32
1285+#define GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS 0x8A33
1286+#define GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT 0x8A34
1287+#define GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH 0x8A35
1288+#define GL_ACTIVE_UNIFORM_BLOCKS 0x8A36
1289+#define GL_UNIFORM_TYPE 0x8A37
1290+#define GL_UNIFORM_SIZE 0x8A38
1291+#define GL_UNIFORM_NAME_LENGTH 0x8A39
1292+#define GL_UNIFORM_BLOCK_INDEX 0x8A3A
1293+#define GL_UNIFORM_OFFSET 0x8A3B
1294+#define GL_UNIFORM_ARRAY_STRIDE 0x8A3C
1295+#define GL_UNIFORM_MATRIX_STRIDE 0x8A3D
1296+#define GL_UNIFORM_IS_ROW_MAJOR 0x8A3E
1297+#define GL_UNIFORM_BLOCK_BINDING 0x8A3F
1298+#define GL_UNIFORM_BLOCK_DATA_SIZE 0x8A40
1299+#define GL_UNIFORM_BLOCK_NAME_LENGTH 0x8A41
1300+#define GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS 0x8A42
1301+#define GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES 0x8A43
1302+#define GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER 0x8A44
1303+#define GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER 0x8A45
1304+#define GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER 0x8A46
1305+#define GL_INVALID_INDEX 0xFFFFFFFF
1306+#define GL_CONTEXT_CORE_PROFILE_BIT 0x00000001
1307+#define GL_CONTEXT_COMPATIBILITY_PROFILE_BIT 0x00000002
1308+#define GL_LINES_ADJACENCY 0x000A
1309+#define GL_LINE_STRIP_ADJACENCY 0x000B
1310+#define GL_TRIANGLES_ADJACENCY 0x000C
1311+#define GL_TRIANGLE_STRIP_ADJACENCY 0x000D
1312+#define GL_PROGRAM_POINT_SIZE 0x8642
1313+#define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS 0x8C29
1314+#define GL_FRAMEBUFFER_ATTACHMENT_LAYERED 0x8DA7
1315+#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS 0x8DA8
1316+#define GL_GEOMETRY_SHADER 0x8DD9
1317+#define GL_GEOMETRY_VERTICES_OUT 0x8916
1318+#define GL_GEOMETRY_INPUT_TYPE 0x8917
1319+#define GL_GEOMETRY_OUTPUT_TYPE 0x8918
1320+#define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS 0x8DDF
1321+#define GL_MAX_GEOMETRY_OUTPUT_VERTICES 0x8DE0
1322+#define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS 0x8DE1
1323+#define GL_MAX_VERTEX_OUTPUT_COMPONENTS 0x9122
1324+#define GL_MAX_GEOMETRY_INPUT_COMPONENTS 0x9123
1325+#define GL_MAX_GEOMETRY_OUTPUT_COMPONENTS 0x9124
1326+#define GL_MAX_FRAGMENT_INPUT_COMPONENTS 0x9125
1327+#define GL_CONTEXT_PROFILE_MASK 0x9126
1328+#define GL_DEPTH_CLAMP 0x864F
1329+#define GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION 0x8E4C
1330+#define GL_FIRST_VERTEX_CONVENTION 0x8E4D
1331+#define GL_LAST_VERTEX_CONVENTION 0x8E4E
1332+#define GL_PROVOKING_VERTEX 0x8E4F
1333+#define GL_TEXTURE_CUBE_MAP_SEAMLESS 0x884F
1334+#define GL_MAX_SERVER_WAIT_TIMEOUT 0x9111
1335+#define GL_OBJECT_TYPE 0x9112
1336+#define GL_SYNC_CONDITION 0x9113
1337+#define GL_SYNC_STATUS 0x9114
1338+#define GL_SYNC_FLAGS 0x9115
1339+#define GL_SYNC_FENCE 0x9116
1340+#define GL_SYNC_GPU_COMMANDS_COMPLETE 0x9117
1341+#define GL_UNSIGNALED 0x9118
1342+#define GL_SIGNALED 0x9119
1343+#define GL_ALREADY_SIGNALED 0x911A
1344+#define GL_TIMEOUT_EXPIRED 0x911B
1345+#define GL_CONDITION_SATISFIED 0x911C
1346+#define GL_WAIT_FAILED 0x911D
1347+#define GL_TIMEOUT_IGNORED 0xFFFFFFFFFFFFFFFF
1348+#define GL_SYNC_FLUSH_COMMANDS_BIT 0x00000001
1349+#define GL_SAMPLE_POSITION 0x8E50
1350+#define GL_SAMPLE_MASK 0x8E51
1351+#define GL_SAMPLE_MASK_VALUE 0x8E52
1352+#define GL_MAX_SAMPLE_MASK_WORDS 0x8E59
1353+#define GL_TEXTURE_2D_MULTISAMPLE 0x9100
1354+#define GL_PROXY_TEXTURE_2D_MULTISAMPLE 0x9101
1355+#define GL_TEXTURE_2D_MULTISAMPLE_ARRAY 0x9102
1356+#define GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY 0x9103
1357+#define GL_TEXTURE_BINDING_2D_MULTISAMPLE 0x9104
1358+#define GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY 0x9105
1359+#define GL_TEXTURE_SAMPLES 0x9106
1360+#define GL_TEXTURE_FIXED_SAMPLE_LOCATIONS 0x9107
1361+#define GL_SAMPLER_2D_MULTISAMPLE 0x9108
1362+#define GL_INT_SAMPLER_2D_MULTISAMPLE 0x9109
1363+#define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE 0x910A
1364+#define GL_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910B
1365+#define GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910C
1366+#define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910D
1367+#define GL_MAX_COLOR_TEXTURE_SAMPLES 0x910E
1368+#define GL_MAX_DEPTH_TEXTURE_SAMPLES 0x910F
1369+#define GL_MAX_INTEGER_SAMPLES 0x9110
1370+#define GL_VERTEX_ATTRIB_ARRAY_DIVISOR 0x88FE
1371+#define GL_SRC1_COLOR 0x88F9
1372+#define GL_ONE_MINUS_SRC1_COLOR 0x88FA
1373+#define GL_ONE_MINUS_SRC1_ALPHA 0x88FB
1374+#define GL_MAX_DUAL_SOURCE_DRAW_BUFFERS 0x88FC
1375+#define GL_ANY_SAMPLES_PASSED 0x8C2F
1376+#define GL_SAMPLER_BINDING 0x8919
1377+#define GL_RGB10_A2UI 0x906F
1378+#define GL_TEXTURE_SWIZZLE_R 0x8E42
1379+#define GL_TEXTURE_SWIZZLE_G 0x8E43
1380+#define GL_TEXTURE_SWIZZLE_B 0x8E44
1381+#define GL_TEXTURE_SWIZZLE_A 0x8E45
1382+#define GL_TEXTURE_SWIZZLE_RGBA 0x8E46
1383+#define GL_TIME_ELAPSED 0x88BF
1384+#define GL_TIMESTAMP 0x8E28
1385+#define GL_INT_2_10_10_10_REV 0x8D9F
1386+#define GL_SAMPLE_SHADING 0x8C36
1387+#define GL_MIN_SAMPLE_SHADING_VALUE 0x8C37
1388+#define GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET 0x8E5E
1389+#define GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET 0x8E5F
1390+#define GL_TEXTURE_CUBE_MAP_ARRAY 0x9009
1391+#define GL_TEXTURE_BINDING_CUBE_MAP_ARRAY 0x900A
1392+#define GL_PROXY_TEXTURE_CUBE_MAP_ARRAY 0x900B
1393+#define GL_SAMPLER_CUBE_MAP_ARRAY 0x900C
1394+#define GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW 0x900D
1395+#define GL_INT_SAMPLER_CUBE_MAP_ARRAY 0x900E
1396+#define GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY 0x900F
1397+#define GL_DRAW_INDIRECT_BUFFER 0x8F3F
1398+#define GL_DRAW_INDIRECT_BUFFER_BINDING 0x8F43
1399+#define GL_GEOMETRY_SHADER_INVOCATIONS 0x887F
1400+#define GL_MAX_GEOMETRY_SHADER_INVOCATIONS 0x8E5A
1401+#define GL_MIN_FRAGMENT_INTERPOLATION_OFFSET 0x8E5B
1402+#define GL_MAX_FRAGMENT_INTERPOLATION_OFFSET 0x8E5C
1403+#define GL_FRAGMENT_INTERPOLATION_OFFSET_BITS 0x8E5D
1404+#define GL_MAX_VERTEX_STREAMS 0x8E71
1405+#define GL_DOUBLE_VEC2 0x8FFC
1406+#define GL_DOUBLE_VEC3 0x8FFD
1407+#define GL_DOUBLE_VEC4 0x8FFE
1408+#define GL_DOUBLE_MAT2 0x8F46
1409+#define GL_DOUBLE_MAT3 0x8F47
1410+#define GL_DOUBLE_MAT4 0x8F48
1411+#define GL_DOUBLE_MAT2x3 0x8F49
1412+#define GL_DOUBLE_MAT2x4 0x8F4A
1413+#define GL_DOUBLE_MAT3x2 0x8F4B
1414+#define GL_DOUBLE_MAT3x4 0x8F4C
1415+#define GL_DOUBLE_MAT4x2 0x8F4D
1416+#define GL_DOUBLE_MAT4x3 0x8F4E
1417+#define GL_ACTIVE_SUBROUTINES 0x8DE5
1418+#define GL_ACTIVE_SUBROUTINE_UNIFORMS 0x8DE6
1419+#define GL_ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS 0x8E47
1420+#define GL_ACTIVE_SUBROUTINE_MAX_LENGTH 0x8E48
1421+#define GL_ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH 0x8E49
1422+#define GL_MAX_SUBROUTINES 0x8DE7
1423+#define GL_MAX_SUBROUTINE_UNIFORM_LOCATIONS 0x8DE8
1424+#define GL_NUM_COMPATIBLE_SUBROUTINES 0x8E4A
1425+#define GL_COMPATIBLE_SUBROUTINES 0x8E4B
1426+#define GL_PATCHES 0x000E
1427+#define GL_PATCH_VERTICES 0x8E72
1428+#define GL_PATCH_DEFAULT_INNER_LEVEL 0x8E73
1429+#define GL_PATCH_DEFAULT_OUTER_LEVEL 0x8E74
1430+#define GL_TESS_CONTROL_OUTPUT_VERTICES 0x8E75
1431+#define GL_TESS_GEN_MODE 0x8E76
1432+#define GL_TESS_GEN_SPACING 0x8E77
1433+#define GL_TESS_GEN_VERTEX_ORDER 0x8E78
1434+#define GL_TESS_GEN_POINT_MODE 0x8E79
1435+#define GL_ISOLINES 0x8E7A
1436+#define GL_FRACTIONAL_ODD 0x8E7B
1437+#define GL_FRACTIONAL_EVEN 0x8E7C
1438+#define GL_MAX_PATCH_VERTICES 0x8E7D
1439+#define GL_MAX_TESS_GEN_LEVEL 0x8E7E
1440+#define GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS 0x8E7F
1441+#define GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS 0x8E80
1442+#define GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS 0x8E81
1443+#define GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS 0x8E82
1444+#define GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS 0x8E83
1445+#define GL_MAX_TESS_PATCH_COMPONENTS 0x8E84
1446+#define GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS 0x8E85
1447+#define GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS 0x8E86
1448+#define GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS 0x8E89
1449+#define GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS 0x8E8A
1450+#define GL_MAX_TESS_CONTROL_INPUT_COMPONENTS 0x886C
1451+#define GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS 0x886D
1452+#define GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS 0x8E1E
1453+#define GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS 0x8E1F
1454+#define GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER 0x84F0
1455+#define GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER 0x84F1
1456+#define GL_TESS_EVALUATION_SHADER 0x8E87
1457+#define GL_TESS_CONTROL_SHADER 0x8E88
1458+#define GL_TRANSFORM_FEEDBACK 0x8E22
1459+#define GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED 0x8E23
1460+#define GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE 0x8E24
1461+#define GL_TRANSFORM_FEEDBACK_BINDING 0x8E25
1462+#define GL_MAX_TRANSFORM_FEEDBACK_BUFFERS 0x8E70
1463+#define GL_FIXED 0x140C
1464+#define GL_IMPLEMENTATION_COLOR_READ_TYPE 0x8B9A
1465+#define GL_IMPLEMENTATION_COLOR_READ_FORMAT 0x8B9B
1466+#define GL_LOW_FLOAT 0x8DF0
1467+#define GL_MEDIUM_FLOAT 0x8DF1
1468+#define GL_HIGH_FLOAT 0x8DF2
1469+#define GL_LOW_INT 0x8DF3
1470+#define GL_MEDIUM_INT 0x8DF4
1471+#define GL_HIGH_INT 0x8DF5
1472+#define GL_SHADER_COMPILER 0x8DFA
1473+#define GL_SHADER_BINARY_FORMATS 0x8DF8
1474+#define GL_NUM_SHADER_BINARY_FORMATS 0x8DF9
1475+#define GL_MAX_VERTEX_UNIFORM_VECTORS 0x8DFB
1476+#define GL_MAX_VARYING_VECTORS 0x8DFC
1477+#define GL_MAX_FRAGMENT_UNIFORM_VECTORS 0x8DFD
1478+#define GL_RGB565 0x8D62
1479+#define GL_PROGRAM_BINARY_RETRIEVABLE_HINT 0x8257
1480+#define GL_PROGRAM_BINARY_LENGTH 0x8741
1481+#define GL_NUM_PROGRAM_BINARY_FORMATS 0x87FE
1482+#define GL_PROGRAM_BINARY_FORMATS 0x87FF
1483+#define GL_VERTEX_SHADER_BIT 0x00000001
1484+#define GL_FRAGMENT_SHADER_BIT 0x00000002
1485+#define GL_GEOMETRY_SHADER_BIT 0x00000004
1486+#define GL_TESS_CONTROL_SHADER_BIT 0x00000008
1487+#define GL_TESS_EVALUATION_SHADER_BIT 0x00000010
1488+#define GL_ALL_SHADER_BITS 0xFFFFFFFF
1489+#define GL_PROGRAM_SEPARABLE 0x8258
1490+#define GL_ACTIVE_PROGRAM 0x8259
1491+#define GL_PROGRAM_PIPELINE_BINDING 0x825A
1492+#define GL_MAX_VIEWPORTS 0x825B
1493+#define GL_VIEWPORT_SUBPIXEL_BITS 0x825C
1494+#define GL_VIEWPORT_BOUNDS_RANGE 0x825D
1495+#define GL_LAYER_PROVOKING_VERTEX 0x825E
1496+#define GL_VIEWPORT_INDEX_PROVOKING_VERTEX 0x825F
1497+#define GL_UNDEFINED_VERTEX 0x8260
1498+#define GL_COPY_READ_BUFFER_BINDING 0x8F36
1499+#define GL_COPY_WRITE_BUFFER_BINDING 0x8F37
1500+#define GL_TRANSFORM_FEEDBACK_ACTIVE 0x8E24
1501+#define GL_TRANSFORM_FEEDBACK_PAUSED 0x8E23
1502+#define GL_UNPACK_COMPRESSED_BLOCK_WIDTH 0x9127
1503+#define GL_UNPACK_COMPRESSED_BLOCK_HEIGHT 0x9128
1504+#define GL_UNPACK_COMPRESSED_BLOCK_DEPTH 0x9129
1505+#define GL_UNPACK_COMPRESSED_BLOCK_SIZE 0x912A
1506+#define GL_PACK_COMPRESSED_BLOCK_WIDTH 0x912B
1507+#define GL_PACK_COMPRESSED_BLOCK_HEIGHT 0x912C
1508+#define GL_PACK_COMPRESSED_BLOCK_DEPTH 0x912D
1509+#define GL_PACK_COMPRESSED_BLOCK_SIZE 0x912E
1510+#define GL_NUM_SAMPLE_COUNTS 0x9380
1511+#define GL_MIN_MAP_BUFFER_ALIGNMENT 0x90BC
1512+#define GL_ATOMIC_COUNTER_BUFFER 0x92C0
1513+#define GL_ATOMIC_COUNTER_BUFFER_BINDING 0x92C1
1514+#define GL_ATOMIC_COUNTER_BUFFER_START 0x92C2
1515+#define GL_ATOMIC_COUNTER_BUFFER_SIZE 0x92C3
1516+#define GL_ATOMIC_COUNTER_BUFFER_DATA_SIZE 0x92C4
1517+#define GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTERS 0x92C5
1518+#define GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTER_INDICES 0x92C6
1519+#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_VERTEX_SHADER 0x92C7
1520+#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_CONTROL_SHADER 0x92C8
1521+#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_EVALUATION_SHADER 0x92C9
1522+#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_GEOMETRY_SHADER 0x92CA
1523+#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_FRAGMENT_SHADER 0x92CB
1524+#define GL_MAX_VERTEX_ATOMIC_COUNTER_BUFFERS 0x92CC
1525+#define GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS 0x92CD
1526+#define GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS 0x92CE
1527+#define GL_MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS 0x92CF
1528+#define GL_MAX_FRAGMENT_ATOMIC_COUNTER_BUFFERS 0x92D0
1529+#define GL_MAX_COMBINED_ATOMIC_COUNTER_BUFFERS 0x92D1
1530+#define GL_MAX_VERTEX_ATOMIC_COUNTERS 0x92D2
1531+#define GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS 0x92D3
1532+#define GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS 0x92D4
1533+#define GL_MAX_GEOMETRY_ATOMIC_COUNTERS 0x92D5
1534+#define GL_MAX_FRAGMENT_ATOMIC_COUNTERS 0x92D6
1535+#define GL_MAX_COMBINED_ATOMIC_COUNTERS 0x92D7
1536+#define GL_MAX_ATOMIC_COUNTER_BUFFER_SIZE 0x92D8
1537+#define GL_MAX_ATOMIC_COUNTER_BUFFER_BINDINGS 0x92DC
1538+#define GL_ACTIVE_ATOMIC_COUNTER_BUFFERS 0x92D9
1539+#define GL_UNIFORM_ATOMIC_COUNTER_BUFFER_INDEX 0x92DA
1540+#define GL_UNSIGNED_INT_ATOMIC_COUNTER 0x92DB
1541+#define GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT 0x00000001
1542+#define GL_ELEMENT_ARRAY_BARRIER_BIT 0x00000002
1543+#define GL_UNIFORM_BARRIER_BIT 0x00000004
1544+#define GL_TEXTURE_FETCH_BARRIER_BIT 0x00000008
1545+#define GL_SHADER_IMAGE_ACCESS_BARRIER_BIT 0x00000020
1546+#define GL_COMMAND_BARRIER_BIT 0x00000040
1547+#define GL_PIXEL_BUFFER_BARRIER_BIT 0x00000080
1548+#define GL_TEXTURE_UPDATE_BARRIER_BIT 0x00000100
1549+#define GL_BUFFER_UPDATE_BARRIER_BIT 0x00000200
1550+#define GL_FRAMEBUFFER_BARRIER_BIT 0x00000400
1551+#define GL_TRANSFORM_FEEDBACK_BARRIER_BIT 0x00000800
1552+#define GL_ATOMIC_COUNTER_BARRIER_BIT 0x00001000
1553+#define GL_ALL_BARRIER_BITS 0xFFFFFFFF
1554+#define GL_MAX_IMAGE_UNITS 0x8F38
1555+#define GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS 0x8F39
1556+#define GL_IMAGE_BINDING_NAME 0x8F3A
1557+#define GL_IMAGE_BINDING_LEVEL 0x8F3B
1558+#define GL_IMAGE_BINDING_LAYERED 0x8F3C
1559+#define GL_IMAGE_BINDING_LAYER 0x8F3D
1560+#define GL_IMAGE_BINDING_ACCESS 0x8F3E
1561+#define GL_IMAGE_1D 0x904C
1562+#define GL_IMAGE_2D 0x904D
1563+#define GL_IMAGE_3D 0x904E
1564+#define GL_IMAGE_2D_RECT 0x904F
1565+#define GL_IMAGE_CUBE 0x9050
1566+#define GL_IMAGE_BUFFER 0x9051
1567+#define GL_IMAGE_1D_ARRAY 0x9052
1568+#define GL_IMAGE_2D_ARRAY 0x9053
1569+#define GL_IMAGE_CUBE_MAP_ARRAY 0x9054
1570+#define GL_IMAGE_2D_MULTISAMPLE 0x9055
1571+#define GL_IMAGE_2D_MULTISAMPLE_ARRAY 0x9056
1572+#define GL_INT_IMAGE_1D 0x9057
1573+#define GL_INT_IMAGE_2D 0x9058
1574+#define GL_INT_IMAGE_3D 0x9059
1575+#define GL_INT_IMAGE_2D_RECT 0x905A
1576+#define GL_INT_IMAGE_CUBE 0x905B
1577+#define GL_INT_IMAGE_BUFFER 0x905C
1578+#define GL_INT_IMAGE_1D_ARRAY 0x905D
1579+#define GL_INT_IMAGE_2D_ARRAY 0x905E
1580+#define GL_INT_IMAGE_CUBE_MAP_ARRAY 0x905F
1581+#define GL_INT_IMAGE_2D_MULTISAMPLE 0x9060
1582+#define GL_INT_IMAGE_2D_MULTISAMPLE_ARRAY 0x9061
1583+#define GL_UNSIGNED_INT_IMAGE_1D 0x9062
1584+#define GL_UNSIGNED_INT_IMAGE_2D 0x9063
1585+#define GL_UNSIGNED_INT_IMAGE_3D 0x9064
1586+#define GL_UNSIGNED_INT_IMAGE_2D_RECT 0x9065
1587+#define GL_UNSIGNED_INT_IMAGE_CUBE 0x9066
1588+#define GL_UNSIGNED_INT_IMAGE_BUFFER 0x9067
1589+#define GL_UNSIGNED_INT_IMAGE_1D_ARRAY 0x9068
1590+#define GL_UNSIGNED_INT_IMAGE_2D_ARRAY 0x9069
1591+#define GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY 0x906A
1592+#define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE 0x906B
1593+#define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY 0x906C
1594+#define GL_MAX_IMAGE_SAMPLES 0x906D
1595+#define GL_IMAGE_BINDING_FORMAT 0x906E
1596+#define GL_IMAGE_FORMAT_COMPATIBILITY_TYPE 0x90C7
1597+#define GL_IMAGE_FORMAT_COMPATIBILITY_BY_SIZE 0x90C8
1598+#define GL_IMAGE_FORMAT_COMPATIBILITY_BY_CLASS 0x90C9
1599+#define GL_MAX_VERTEX_IMAGE_UNIFORMS 0x90CA
1600+#define GL_MAX_TESS_CONTROL_IMAGE_UNIFORMS 0x90CB
1601+#define GL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS 0x90CC
1602+#define GL_MAX_GEOMETRY_IMAGE_UNIFORMS 0x90CD
1603+#define GL_MAX_FRAGMENT_IMAGE_UNIFORMS 0x90CE
1604+#define GL_MAX_COMBINED_IMAGE_UNIFORMS 0x90CF
1605+#define GL_COMPRESSED_RGBA_BPTC_UNORM 0x8E8C
1606+#define GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM 0x8E8D
1607+#define GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT 0x8E8E
1608+#define GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT 0x8E8F
1609+#define GL_TEXTURE_IMMUTABLE_FORMAT 0x912F
1610+#define GL_NUM_SHADING_LANGUAGE_VERSIONS 0x82E9
1611+#define GL_VERTEX_ATTRIB_ARRAY_LONG 0x874E
1612+#define GL_COMPRESSED_RGB8_ETC2 0x9274
1613+#define GL_COMPRESSED_SRGB8_ETC2 0x9275
1614+#define GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 0x9276
1615+#define GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 0x9277
1616+#define GL_COMPRESSED_RGBA8_ETC2_EAC 0x9278
1617+#define GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC 0x9279
1618+#define GL_COMPRESSED_R11_EAC 0x9270
1619+#define GL_COMPRESSED_SIGNED_R11_EAC 0x9271
1620+#define GL_COMPRESSED_RG11_EAC 0x9272
1621+#define GL_COMPRESSED_SIGNED_RG11_EAC 0x9273
1622+#define GL_PRIMITIVE_RESTART_FIXED_INDEX 0x8D69
1623+#define GL_ANY_SAMPLES_PASSED_CONSERVATIVE 0x8D6A
1624+#define GL_MAX_ELEMENT_INDEX 0x8D6B
1625+#define GL_COMPUTE_SHADER 0x91B9
1626+#define GL_MAX_COMPUTE_UNIFORM_BLOCKS 0x91BB
1627+#define GL_MAX_COMPUTE_TEXTURE_IMAGE_UNITS 0x91BC
1628+#define GL_MAX_COMPUTE_IMAGE_UNIFORMS 0x91BD
1629+#define GL_MAX_COMPUTE_SHARED_MEMORY_SIZE 0x8262
1630+#define GL_MAX_COMPUTE_UNIFORM_COMPONENTS 0x8263
1631+#define GL_MAX_COMPUTE_ATOMIC_COUNTER_BUFFERS 0x8264
1632+#define GL_MAX_COMPUTE_ATOMIC_COUNTERS 0x8265
1633+#define GL_MAX_COMBINED_COMPUTE_UNIFORM_COMPONENTS 0x8266
1634+#define GL_MAX_COMPUTE_WORK_GROUP_INVOCATIONS 0x90EB
1635+#define GL_MAX_COMPUTE_WORK_GROUP_COUNT 0x91BE
1636+#define GL_MAX_COMPUTE_WORK_GROUP_SIZE 0x91BF
1637+#define GL_COMPUTE_WORK_GROUP_SIZE 0x8267
1638+#define GL_UNIFORM_BLOCK_REFERENCED_BY_COMPUTE_SHADER 0x90EC
1639+#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_COMPUTE_SHADER 0x90ED
1640+#define GL_DISPATCH_INDIRECT_BUFFER 0x90EE
1641+#define GL_DISPATCH_INDIRECT_BUFFER_BINDING 0x90EF
1642+#define GL_COMPUTE_SHADER_BIT 0x00000020
1643+#define GL_DEBUG_OUTPUT_SYNCHRONOUS 0x8242
1644+#define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH 0x8243
1645+#define GL_DEBUG_CALLBACK_FUNCTION 0x8244
1646+#define GL_DEBUG_CALLBACK_USER_PARAM 0x8245
1647+#define GL_DEBUG_SOURCE_API 0x8246
1648+#define GL_DEBUG_SOURCE_WINDOW_SYSTEM 0x8247
1649+#define GL_DEBUG_SOURCE_SHADER_COMPILER 0x8248
1650+#define GL_DEBUG_SOURCE_THIRD_PARTY 0x8249
1651+#define GL_DEBUG_SOURCE_APPLICATION 0x824A
1652+#define GL_DEBUG_SOURCE_OTHER 0x824B
1653+#define GL_DEBUG_TYPE_ERROR 0x824C
1654+#define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR 0x824D
1655+#define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR 0x824E
1656+#define GL_DEBUG_TYPE_PORTABILITY 0x824F
1657+#define GL_DEBUG_TYPE_PERFORMANCE 0x8250
1658+#define GL_DEBUG_TYPE_OTHER 0x8251
1659+#define GL_MAX_DEBUG_MESSAGE_LENGTH 0x9143
1660+#define GL_MAX_DEBUG_LOGGED_MESSAGES 0x9144
1661+#define GL_DEBUG_LOGGED_MESSAGES 0x9145
1662+#define GL_DEBUG_SEVERITY_HIGH 0x9146
1663+#define GL_DEBUG_SEVERITY_MEDIUM 0x9147
1664+#define GL_DEBUG_SEVERITY_LOW 0x9148
1665+#define GL_DEBUG_TYPE_MARKER 0x8268
1666+#define GL_DEBUG_TYPE_PUSH_GROUP 0x8269
1667+#define GL_DEBUG_TYPE_POP_GROUP 0x826A
1668+#define GL_DEBUG_SEVERITY_NOTIFICATION 0x826B
1669+#define GL_MAX_DEBUG_GROUP_STACK_DEPTH 0x826C
1670+#define GL_DEBUG_GROUP_STACK_DEPTH 0x826D
1671+#define GL_BUFFER 0x82E0
1672+#define GL_SHADER 0x82E1
1673+#define GL_PROGRAM 0x82E2
1674+#define GL_QUERY 0x82E3
1675+#define GL_PROGRAM_PIPELINE 0x82E4
1676+#define GL_SAMPLER 0x82E6
1677+#define GL_MAX_LABEL_LENGTH 0x82E8
1678+#define GL_DEBUG_OUTPUT 0x92E0
1679+#define GL_CONTEXT_FLAG_DEBUG_BIT 0x00000002
1680+#define GL_MAX_UNIFORM_LOCATIONS 0x826E
1681+#define GL_FRAMEBUFFER_DEFAULT_WIDTH 0x9310
1682+#define GL_FRAMEBUFFER_DEFAULT_HEIGHT 0x9311
1683+#define GL_FRAMEBUFFER_DEFAULT_LAYERS 0x9312
1684+#define GL_FRAMEBUFFER_DEFAULT_SAMPLES 0x9313
1685+#define GL_FRAMEBUFFER_DEFAULT_FIXED_SAMPLE_LOCATIONS 0x9314
1686+#define GL_MAX_FRAMEBUFFER_WIDTH 0x9315
1687+#define GL_MAX_FRAMEBUFFER_HEIGHT 0x9316
1688+#define GL_MAX_FRAMEBUFFER_LAYERS 0x9317
1689+#define GL_MAX_FRAMEBUFFER_SAMPLES 0x9318
1690+#define GL_INTERNALFORMAT_SUPPORTED 0x826F
1691+#define GL_INTERNALFORMAT_PREFERRED 0x8270
1692+#define GL_INTERNALFORMAT_RED_SIZE 0x8271
1693+#define GL_INTERNALFORMAT_GREEN_SIZE 0x8272
1694+#define GL_INTERNALFORMAT_BLUE_SIZE 0x8273
1695+#define GL_INTERNALFORMAT_ALPHA_SIZE 0x8274
1696+#define GL_INTERNALFORMAT_DEPTH_SIZE 0x8275
1697+#define GL_INTERNALFORMAT_STENCIL_SIZE 0x8276
1698+#define GL_INTERNALFORMAT_SHARED_SIZE 0x8277
1699+#define GL_INTERNALFORMAT_RED_TYPE 0x8278
1700+#define GL_INTERNALFORMAT_GREEN_TYPE 0x8279
1701+#define GL_INTERNALFORMAT_BLUE_TYPE 0x827A
1702+#define GL_INTERNALFORMAT_ALPHA_TYPE 0x827B
1703+#define GL_INTERNALFORMAT_DEPTH_TYPE 0x827C
1704+#define GL_INTERNALFORMAT_STENCIL_TYPE 0x827D
1705+#define GL_MAX_WIDTH 0x827E
1706+#define GL_MAX_HEIGHT 0x827F
1707+#define GL_MAX_DEPTH 0x8280
1708+#define GL_MAX_LAYERS 0x8281
1709+#define GL_MAX_COMBINED_DIMENSIONS 0x8282
1710+#define GL_COLOR_COMPONENTS 0x8283
1711+#define GL_DEPTH_COMPONENTS 0x8284
1712+#define GL_STENCIL_COMPONENTS 0x8285
1713+#define GL_COLOR_RENDERABLE 0x8286
1714+#define GL_DEPTH_RENDERABLE 0x8287
1715+#define GL_STENCIL_RENDERABLE 0x8288
1716+#define GL_FRAMEBUFFER_RENDERABLE 0x8289
1717+#define GL_FRAMEBUFFER_RENDERABLE_LAYERED 0x828A
1718+#define GL_FRAMEBUFFER_BLEND 0x828B
1719+#define GL_READ_PIXELS 0x828C
1720+#define GL_READ_PIXELS_FORMAT 0x828D
1721+#define GL_READ_PIXELS_TYPE 0x828E
1722+#define GL_TEXTURE_IMAGE_FORMAT 0x828F
1723+#define GL_TEXTURE_IMAGE_TYPE 0x8290
1724+#define GL_GET_TEXTURE_IMAGE_FORMAT 0x8291
1725+#define GL_GET_TEXTURE_IMAGE_TYPE 0x8292
1726+#define GL_MIPMAP 0x8293
1727+#define GL_MANUAL_GENERATE_MIPMAP 0x8294
1728+#define GL_AUTO_GENERATE_MIPMAP 0x8295
1729+#define GL_COLOR_ENCODING 0x8296
1730+#define GL_SRGB_READ 0x8297
1731+#define GL_SRGB_WRITE 0x8298
1732+#define GL_FILTER 0x829A
1733+#define GL_VERTEX_TEXTURE 0x829B
1734+#define GL_TESS_CONTROL_TEXTURE 0x829C
1735+#define GL_TESS_EVALUATION_TEXTURE 0x829D
1736+#define GL_GEOMETRY_TEXTURE 0x829E
1737+#define GL_FRAGMENT_TEXTURE 0x829F
1738+#define GL_COMPUTE_TEXTURE 0x82A0
1739+#define GL_TEXTURE_SHADOW 0x82A1
1740+#define GL_TEXTURE_GATHER 0x82A2
1741+#define GL_TEXTURE_GATHER_SHADOW 0x82A3
1742+#define GL_SHADER_IMAGE_LOAD 0x82A4
1743+#define GL_SHADER_IMAGE_STORE 0x82A5
1744+#define GL_SHADER_IMAGE_ATOMIC 0x82A6
1745+#define GL_IMAGE_TEXEL_SIZE 0x82A7
1746+#define GL_IMAGE_COMPATIBILITY_CLASS 0x82A8
1747+#define GL_IMAGE_PIXEL_FORMAT 0x82A9
1748+#define GL_IMAGE_PIXEL_TYPE 0x82AA
1749+#define GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_TEST 0x82AC
1750+#define GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_TEST 0x82AD
1751+#define GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_WRITE 0x82AE
1752+#define GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_WRITE 0x82AF
1753+#define GL_TEXTURE_COMPRESSED_BLOCK_WIDTH 0x82B1
1754+#define GL_TEXTURE_COMPRESSED_BLOCK_HEIGHT 0x82B2
1755+#define GL_TEXTURE_COMPRESSED_BLOCK_SIZE 0x82B3
1756+#define GL_CLEAR_BUFFER 0x82B4
1757+#define GL_TEXTURE_VIEW 0x82B5
1758+#define GL_VIEW_COMPATIBILITY_CLASS 0x82B6
1759+#define GL_FULL_SUPPORT 0x82B7
1760+#define GL_CAVEAT_SUPPORT 0x82B8
1761+#define GL_IMAGE_CLASS_4_X_32 0x82B9
1762+#define GL_IMAGE_CLASS_2_X_32 0x82BA
1763+#define GL_IMAGE_CLASS_1_X_32 0x82BB
1764+#define GL_IMAGE_CLASS_4_X_16 0x82BC
1765+#define GL_IMAGE_CLASS_2_X_16 0x82BD
1766+#define GL_IMAGE_CLASS_1_X_16 0x82BE
1767+#define GL_IMAGE_CLASS_4_X_8 0x82BF
1768+#define GL_IMAGE_CLASS_2_X_8 0x82C0
1769+#define GL_IMAGE_CLASS_1_X_8 0x82C1
1770+#define GL_IMAGE_CLASS_11_11_10 0x82C2
1771+#define GL_IMAGE_CLASS_10_10_10_2 0x82C3
1772+#define GL_VIEW_CLASS_128_BITS 0x82C4
1773+#define GL_VIEW_CLASS_96_BITS 0x82C5
1774+#define GL_VIEW_CLASS_64_BITS 0x82C6
1775+#define GL_VIEW_CLASS_48_BITS 0x82C7
1776+#define GL_VIEW_CLASS_32_BITS 0x82C8
1777+#define GL_VIEW_CLASS_24_BITS 0x82C9
1778+#define GL_VIEW_CLASS_16_BITS 0x82CA
1779+#define GL_VIEW_CLASS_8_BITS 0x82CB
1780+#define GL_VIEW_CLASS_S3TC_DXT1_RGB 0x82CC
1781+#define GL_VIEW_CLASS_S3TC_DXT1_RGBA 0x82CD
1782+#define GL_VIEW_CLASS_S3TC_DXT3_RGBA 0x82CE
1783+#define GL_VIEW_CLASS_S3TC_DXT5_RGBA 0x82CF
1784+#define GL_VIEW_CLASS_RGTC1_RED 0x82D0
1785+#define GL_VIEW_CLASS_RGTC2_RG 0x82D1
1786+#define GL_VIEW_CLASS_BPTC_UNORM 0x82D2
1787+#define GL_VIEW_CLASS_BPTC_FLOAT 0x82D3
1788+#define GL_UNIFORM 0x92E1
1789+#define GL_UNIFORM_BLOCK 0x92E2
1790+#define GL_PROGRAM_INPUT 0x92E3
1791+#define GL_PROGRAM_OUTPUT 0x92E4
1792+#define GL_BUFFER_VARIABLE 0x92E5
1793+#define GL_SHADER_STORAGE_BLOCK 0x92E6
1794+#define GL_VERTEX_SUBROUTINE 0x92E8
1795+#define GL_TESS_CONTROL_SUBROUTINE 0x92E9
1796+#define GL_TESS_EVALUATION_SUBROUTINE 0x92EA
1797+#define GL_GEOMETRY_SUBROUTINE 0x92EB
1798+#define GL_FRAGMENT_SUBROUTINE 0x92EC
1799+#define GL_COMPUTE_SUBROUTINE 0x92ED
1800+#define GL_VERTEX_SUBROUTINE_UNIFORM 0x92EE
1801+#define GL_TESS_CONTROL_SUBROUTINE_UNIFORM 0x92EF
1802+#define GL_TESS_EVALUATION_SUBROUTINE_UNIFORM 0x92F0
1803+#define GL_GEOMETRY_SUBROUTINE_UNIFORM 0x92F1
1804+#define GL_FRAGMENT_SUBROUTINE_UNIFORM 0x92F2
1805+#define GL_COMPUTE_SUBROUTINE_UNIFORM 0x92F3
1806+#define GL_TRANSFORM_FEEDBACK_VARYING 0x92F4
1807+#define GL_ACTIVE_RESOURCES 0x92F5
1808+#define GL_MAX_NAME_LENGTH 0x92F6
1809+#define GL_MAX_NUM_ACTIVE_VARIABLES 0x92F7
1810+#define GL_MAX_NUM_COMPATIBLE_SUBROUTINES 0x92F8
1811+#define GL_NAME_LENGTH 0x92F9
1812+#define GL_TYPE 0x92FA
1813+#define GL_ARRAY_SIZE 0x92FB
1814+#define GL_OFFSET 0x92FC
1815+#define GL_BLOCK_INDEX 0x92FD
1816+#define GL_ARRAY_STRIDE 0x92FE
1817+#define GL_MATRIX_STRIDE 0x92FF
1818+#define GL_IS_ROW_MAJOR 0x9300
1819+#define GL_ATOMIC_COUNTER_BUFFER_INDEX 0x9301
1820+#define GL_BUFFER_BINDING 0x9302
1821+#define GL_BUFFER_DATA_SIZE 0x9303
1822+#define GL_NUM_ACTIVE_VARIABLES 0x9304
1823+#define GL_ACTIVE_VARIABLES 0x9305
1824+#define GL_REFERENCED_BY_VERTEX_SHADER 0x9306
1825+#define GL_REFERENCED_BY_TESS_CONTROL_SHADER 0x9307
1826+#define GL_REFERENCED_BY_TESS_EVALUATION_SHADER 0x9308
1827+#define GL_REFERENCED_BY_GEOMETRY_SHADER 0x9309
1828+#define GL_REFERENCED_BY_FRAGMENT_SHADER 0x930A
1829+#define GL_REFERENCED_BY_COMPUTE_SHADER 0x930B
1830+#define GL_TOP_LEVEL_ARRAY_SIZE 0x930C
1831+#define GL_TOP_LEVEL_ARRAY_STRIDE 0x930D
1832+#define GL_LOCATION 0x930E
1833+#define GL_LOCATION_INDEX 0x930F
1834+#define GL_IS_PER_PATCH 0x92E7
1835+#define GL_SHADER_STORAGE_BUFFER 0x90D2
1836+#define GL_SHADER_STORAGE_BUFFER_BINDING 0x90D3
1837+#define GL_SHADER_STORAGE_BUFFER_START 0x90D4
1838+#define GL_SHADER_STORAGE_BUFFER_SIZE 0x90D5
1839+#define GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS 0x90D6
1840+#define GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS 0x90D7
1841+#define GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS 0x90D8
1842+#define GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS 0x90D9
1843+#define GL_MAX_FRAGMENT_SHADER_STORAGE_BLOCKS 0x90DA
1844+#define GL_MAX_COMPUTE_SHADER_STORAGE_BLOCKS 0x90DB
1845+#define GL_MAX_COMBINED_SHADER_STORAGE_BLOCKS 0x90DC
1846+#define GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS 0x90DD
1847+#define GL_MAX_SHADER_STORAGE_BLOCK_SIZE 0x90DE
1848+#define GL_SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT 0x90DF
1849+#define GL_SHADER_STORAGE_BARRIER_BIT 0x00002000
1850+#define GL_MAX_COMBINED_SHADER_OUTPUT_RESOURCES 0x8F39
1851+#define GL_DEPTH_STENCIL_TEXTURE_MODE 0x90EA
1852+#define GL_TEXTURE_BUFFER_OFFSET 0x919D
1853+#define GL_TEXTURE_BUFFER_SIZE 0x919E
1854+#define GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT 0x919F
1855+#define GL_TEXTURE_VIEW_MIN_LEVEL 0x82DB
1856+#define GL_TEXTURE_VIEW_NUM_LEVELS 0x82DC
1857+#define GL_TEXTURE_VIEW_MIN_LAYER 0x82DD
1858+#define GL_TEXTURE_VIEW_NUM_LAYERS 0x82DE
1859+#define GL_TEXTURE_IMMUTABLE_LEVELS 0x82DF
1860+#define GL_VERTEX_ATTRIB_BINDING 0x82D4
1861+#define GL_VERTEX_ATTRIB_RELATIVE_OFFSET 0x82D5
1862+#define GL_VERTEX_BINDING_DIVISOR 0x82D6
1863+#define GL_VERTEX_BINDING_OFFSET 0x82D7
1864+#define GL_VERTEX_BINDING_STRIDE 0x82D8
1865+#define GL_MAX_VERTEX_ATTRIB_RELATIVE_OFFSET 0x82D9
1866+#define GL_MAX_VERTEX_ATTRIB_BINDINGS 0x82DA
1867+#define GL_VERTEX_BINDING_BUFFER 0x8F4F
1868+#define GL_DISPLAY_LIST 0x82E7
1869+#define GL_MAX_VERTEX_ATTRIB_STRIDE 0x82E5
1870+#define GL_PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTED 0x8221
1871+#define GL_TEXTURE_BUFFER_BINDING 0x8C2A
1872+#define GL_MAP_PERSISTENT_BIT 0x0040
1873+#define GL_MAP_COHERENT_BIT 0x0080
1874+#define GL_DYNAMIC_STORAGE_BIT 0x0100
1875+#define GL_CLIENT_STORAGE_BIT 0x0200
1876+#define GL_CLIENT_MAPPED_BUFFER_BARRIER_BIT 0x00004000
1877+#define GL_BUFFER_IMMUTABLE_STORAGE 0x821F
1878+#define GL_BUFFER_STORAGE_FLAGS 0x8220
1879+#define GL_CLEAR_TEXTURE 0x9365
1880+#define GL_LOCATION_COMPONENT 0x934A
1881+#define GL_TRANSFORM_FEEDBACK_BUFFER_INDEX 0x934B
1882+#define GL_TRANSFORM_FEEDBACK_BUFFER_STRIDE 0x934C
1883+#define GL_QUERY_BUFFER 0x9192
1884+#define GL_QUERY_BUFFER_BARRIER_BIT 0x00008000
1885+#define GL_QUERY_BUFFER_BINDING 0x9193
1886+#define GL_QUERY_RESULT_NO_WAIT 0x9194
1887+#define GL_MIRROR_CLAMP_TO_EDGE 0x8743
1888+#define GL_CONTEXT_LOST 0x0507
1889+#define GL_NEGATIVE_ONE_TO_ONE 0x935E
1890+#define GL_ZERO_TO_ONE 0x935F
1891+#define GL_CLIP_ORIGIN 0x935C
1892+#define GL_CLIP_DEPTH_MODE 0x935D
1893+#define GL_QUERY_WAIT_INVERTED 0x8E17
1894+#define GL_QUERY_NO_WAIT_INVERTED 0x8E18
1895+#define GL_QUERY_BY_REGION_WAIT_INVERTED 0x8E19
1896+#define GL_QUERY_BY_REGION_NO_WAIT_INVERTED 0x8E1A
1897+#define GL_MAX_CULL_DISTANCES 0x82F9
1898+#define GL_MAX_COMBINED_CLIP_AND_CULL_DISTANCES 0x82FA
1899+#define GL_TEXTURE_TARGET 0x1006
1900+#define GL_QUERY_TARGET 0x82EA
1901+#define GL_GUILTY_CONTEXT_RESET 0x8253
1902+#define GL_INNOCENT_CONTEXT_RESET 0x8254
1903+#define GL_UNKNOWN_CONTEXT_RESET 0x8255
1904+#define GL_RESET_NOTIFICATION_STRATEGY 0x8256
1905+#define GL_LOSE_CONTEXT_ON_RESET 0x8252
1906+#define GL_NO_RESET_NOTIFICATION 0x8261
1907+#define GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT 0x00000004
1908+#define GL_COLOR_TABLE 0x80D0
1909+#define GL_POST_CONVOLUTION_COLOR_TABLE 0x80D1
1910+#define GL_POST_COLOR_MATRIX_COLOR_TABLE 0x80D2
1911+#define GL_PROXY_COLOR_TABLE 0x80D3
1912+#define GL_PROXY_POST_CONVOLUTION_COLOR_TABLE 0x80D4
1913+#define GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE 0x80D5
1914+#define GL_CONVOLUTION_1D 0x8010
1915+#define GL_CONVOLUTION_2D 0x8011
1916+#define GL_SEPARABLE_2D 0x8012
1917+#define GL_HISTOGRAM 0x8024
1918+#define GL_PROXY_HISTOGRAM 0x8025
1919+#define GL_MINMAX 0x802E
1920+#define GL_CONTEXT_RELEASE_BEHAVIOR 0x82FB
1921+#define GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH 0x82FC
1922+#ifndef GL_VERSION_1_0
1923+#define GL_VERSION_1_0 1
1924+GLAPI int GLAD_GL_VERSION_1_0;
1925+typedef void (APIENTRYP PFNGLCULLFACEPROC)(GLenum mode);
1926+GLAPI PFNGLCULLFACEPROC glad_glCullFace;
1927+#define glCullFace glad_glCullFace
1928+typedef void (APIENTRYP PFNGLFRONTFACEPROC)(GLenum mode);
1929+GLAPI PFNGLFRONTFACEPROC glad_glFrontFace;
1930+#define glFrontFace glad_glFrontFace
1931+typedef void (APIENTRYP PFNGLHINTPROC)(GLenum target, GLenum mode);
1932+GLAPI PFNGLHINTPROC glad_glHint;
1933+#define glHint glad_glHint
1934+typedef void (APIENTRYP PFNGLLINEWIDTHPROC)(GLfloat width);
1935+GLAPI PFNGLLINEWIDTHPROC glad_glLineWidth;
1936+#define glLineWidth glad_glLineWidth
1937+typedef void (APIENTRYP PFNGLPOINTSIZEPROC)(GLfloat size);
1938+GLAPI PFNGLPOINTSIZEPROC glad_glPointSize;
1939+#define glPointSize glad_glPointSize
1940+typedef void (APIENTRYP PFNGLPOLYGONMODEPROC)(GLenum face, GLenum mode);
1941+GLAPI PFNGLPOLYGONMODEPROC glad_glPolygonMode;
1942+#define glPolygonMode glad_glPolygonMode
1943+typedef void (APIENTRYP PFNGLSCISSORPROC)(GLint x, GLint y, GLsizei width, GLsizei height);
1944+GLAPI PFNGLSCISSORPROC glad_glScissor;
1945+#define glScissor glad_glScissor
1946+typedef void (APIENTRYP PFNGLTEXPARAMETERFPROC)(GLenum target, GLenum pname, GLfloat param);
1947+GLAPI PFNGLTEXPARAMETERFPROC glad_glTexParameterf;
1948+#define glTexParameterf glad_glTexParameterf
1949+typedef void (APIENTRYP PFNGLTEXPARAMETERFVPROC)(GLenum target, GLenum pname, const GLfloat *params);
1950+GLAPI PFNGLTEXPARAMETERFVPROC glad_glTexParameterfv;
1951+#define glTexParameterfv glad_glTexParameterfv
1952+typedef void (APIENTRYP PFNGLTEXPARAMETERIPROC)(GLenum target, GLenum pname, GLint param);
1953+GLAPI PFNGLTEXPARAMETERIPROC glad_glTexParameteri;
1954+#define glTexParameteri glad_glTexParameteri
1955+typedef void (APIENTRYP PFNGLTEXPARAMETERIVPROC)(GLenum target, GLenum pname, const GLint *params);
1956+GLAPI PFNGLTEXPARAMETERIVPROC glad_glTexParameteriv;
1957+#define glTexParameteriv glad_glTexParameteriv
1958+typedef void (APIENTRYP PFNGLTEXIMAGE1DPROC)(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void *pixels);
1959+GLAPI PFNGLTEXIMAGE1DPROC glad_glTexImage1D;
1960+#define glTexImage1D glad_glTexImage1D
1961+typedef void (APIENTRYP PFNGLTEXIMAGE2DPROC)(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels);
1962+GLAPI PFNGLTEXIMAGE2DPROC glad_glTexImage2D;
1963+#define glTexImage2D glad_glTexImage2D
1964+typedef void (APIENTRYP PFNGLDRAWBUFFERPROC)(GLenum buf);
1965+GLAPI PFNGLDRAWBUFFERPROC glad_glDrawBuffer;
1966+#define glDrawBuffer glad_glDrawBuffer
1967+typedef void (APIENTRYP PFNGLCLEARPROC)(GLbitfield mask);
1968+GLAPI PFNGLCLEARPROC glad_glClear;
1969+#define glClear glad_glClear
1970+typedef void (APIENTRYP PFNGLCLEARCOLORPROC)(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
1971+GLAPI PFNGLCLEARCOLORPROC glad_glClearColor;
1972+#define glClearColor glad_glClearColor
1973+typedef void (APIENTRYP PFNGLCLEARSTENCILPROC)(GLint s);
1974+GLAPI PFNGLCLEARSTENCILPROC glad_glClearStencil;
1975+#define glClearStencil glad_glClearStencil
1976+typedef void (APIENTRYP PFNGLCLEARDEPTHPROC)(GLdouble depth);
1977+GLAPI PFNGLCLEARDEPTHPROC glad_glClearDepth;
1978+#define glClearDepth glad_glClearDepth
1979+typedef void (APIENTRYP PFNGLSTENCILMASKPROC)(GLuint mask);
1980+GLAPI PFNGLSTENCILMASKPROC glad_glStencilMask;
1981+#define glStencilMask glad_glStencilMask
1982+typedef void (APIENTRYP PFNGLCOLORMASKPROC)(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
1983+GLAPI PFNGLCOLORMASKPROC glad_glColorMask;
1984+#define glColorMask glad_glColorMask
1985+typedef void (APIENTRYP PFNGLDEPTHMASKPROC)(GLboolean flag);
1986+GLAPI PFNGLDEPTHMASKPROC glad_glDepthMask;
1987+#define glDepthMask glad_glDepthMask
1988+typedef void (APIENTRYP PFNGLDISABLEPROC)(GLenum cap);
1989+GLAPI PFNGLDISABLEPROC glad_glDisable;
1990+#define glDisable glad_glDisable
1991+typedef void (APIENTRYP PFNGLENABLEPROC)(GLenum cap);
1992+GLAPI PFNGLENABLEPROC glad_glEnable;
1993+#define glEnable glad_glEnable
1994+typedef void (APIENTRYP PFNGLFINISHPROC)(void);
1995+GLAPI PFNGLFINISHPROC glad_glFinish;
1996+#define glFinish glad_glFinish
1997+typedef void (APIENTRYP PFNGLFLUSHPROC)(void);
1998+GLAPI PFNGLFLUSHPROC glad_glFlush;
1999+#define glFlush glad_glFlush
2000+typedef void (APIENTRYP PFNGLBLENDFUNCPROC)(GLenum sfactor, GLenum dfactor);
2001+GLAPI PFNGLBLENDFUNCPROC glad_glBlendFunc;
2002+#define glBlendFunc glad_glBlendFunc
2003+typedef void (APIENTRYP PFNGLLOGICOPPROC)(GLenum opcode);
2004+GLAPI PFNGLLOGICOPPROC glad_glLogicOp;
2005+#define glLogicOp glad_glLogicOp
2006+typedef void (APIENTRYP PFNGLSTENCILFUNCPROC)(GLenum func, GLint ref, GLuint mask);
2007+GLAPI PFNGLSTENCILFUNCPROC glad_glStencilFunc;
2008+#define glStencilFunc glad_glStencilFunc
2009+typedef void (APIENTRYP PFNGLSTENCILOPPROC)(GLenum fail, GLenum zfail, GLenum zpass);
2010+GLAPI PFNGLSTENCILOPPROC glad_glStencilOp;
2011+#define glStencilOp glad_glStencilOp
2012+typedef void (APIENTRYP PFNGLDEPTHFUNCPROC)(GLenum func);
2013+GLAPI PFNGLDEPTHFUNCPROC glad_glDepthFunc;
2014+#define glDepthFunc glad_glDepthFunc
2015+typedef void (APIENTRYP PFNGLPIXELSTOREFPROC)(GLenum pname, GLfloat param);
2016+GLAPI PFNGLPIXELSTOREFPROC glad_glPixelStoref;
2017+#define glPixelStoref glad_glPixelStoref
2018+typedef void (APIENTRYP PFNGLPIXELSTOREIPROC)(GLenum pname, GLint param);
2019+GLAPI PFNGLPIXELSTOREIPROC glad_glPixelStorei;
2020+#define glPixelStorei glad_glPixelStorei
2021+typedef void (APIENTRYP PFNGLREADBUFFERPROC)(GLenum src);
2022+GLAPI PFNGLREADBUFFERPROC glad_glReadBuffer;
2023+#define glReadBuffer glad_glReadBuffer
2024+typedef void (APIENTRYP PFNGLREADPIXELSPROC)(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void *pixels);
2025+GLAPI PFNGLREADPIXELSPROC glad_glReadPixels;
2026+#define glReadPixels glad_glReadPixels
2027+typedef void (APIENTRYP PFNGLGETBOOLEANVPROC)(GLenum pname, GLboolean *data);
2028+GLAPI PFNGLGETBOOLEANVPROC glad_glGetBooleanv;
2029+#define glGetBooleanv glad_glGetBooleanv
2030+typedef void (APIENTRYP PFNGLGETDOUBLEVPROC)(GLenum pname, GLdouble *data);
2031+GLAPI PFNGLGETDOUBLEVPROC glad_glGetDoublev;
2032+#define glGetDoublev glad_glGetDoublev
2033+typedef GLenum (APIENTRYP PFNGLGETERRORPROC)(void);
2034+GLAPI PFNGLGETERRORPROC glad_glGetError;
2035+#define glGetError glad_glGetError
2036+typedef void (APIENTRYP PFNGLGETFLOATVPROC)(GLenum pname, GLfloat *data);
2037+GLAPI PFNGLGETFLOATVPROC glad_glGetFloatv;
2038+#define glGetFloatv glad_glGetFloatv
2039+typedef void (APIENTRYP PFNGLGETINTEGERVPROC)(GLenum pname, GLint *data);
2040+GLAPI PFNGLGETINTEGERVPROC glad_glGetIntegerv;
2041+#define glGetIntegerv glad_glGetIntegerv
2042+typedef const GLubyte * (APIENTRYP PFNGLGETSTRINGPROC)(GLenum name);
2043+GLAPI PFNGLGETSTRINGPROC glad_glGetString;
2044+#define glGetString glad_glGetString
2045+typedef void (APIENTRYP PFNGLGETTEXIMAGEPROC)(GLenum target, GLint level, GLenum format, GLenum type, void *pixels);
2046+GLAPI PFNGLGETTEXIMAGEPROC glad_glGetTexImage;
2047+#define glGetTexImage glad_glGetTexImage
2048+typedef void (APIENTRYP PFNGLGETTEXPARAMETERFVPROC)(GLenum target, GLenum pname, GLfloat *params);
2049+GLAPI PFNGLGETTEXPARAMETERFVPROC glad_glGetTexParameterfv;
2050+#define glGetTexParameterfv glad_glGetTexParameterfv
2051+typedef void (APIENTRYP PFNGLGETTEXPARAMETERIVPROC)(GLenum target, GLenum pname, GLint *params);
2052+GLAPI PFNGLGETTEXPARAMETERIVPROC glad_glGetTexParameteriv;
2053+#define glGetTexParameteriv glad_glGetTexParameteriv
2054+typedef void (APIENTRYP PFNGLGETTEXLEVELPARAMETERFVPROC)(GLenum target, GLint level, GLenum pname, GLfloat *params);
2055+GLAPI PFNGLGETTEXLEVELPARAMETERFVPROC glad_glGetTexLevelParameterfv;
2056+#define glGetTexLevelParameterfv glad_glGetTexLevelParameterfv
2057+typedef void (APIENTRYP PFNGLGETTEXLEVELPARAMETERIVPROC)(GLenum target, GLint level, GLenum pname, GLint *params);
2058+GLAPI PFNGLGETTEXLEVELPARAMETERIVPROC glad_glGetTexLevelParameteriv;
2059+#define glGetTexLevelParameteriv glad_glGetTexLevelParameteriv
2060+typedef GLboolean (APIENTRYP PFNGLISENABLEDPROC)(GLenum cap);
2061+GLAPI PFNGLISENABLEDPROC glad_glIsEnabled;
2062+#define glIsEnabled glad_glIsEnabled
2063+typedef void (APIENTRYP PFNGLDEPTHRANGEPROC)(GLdouble n, GLdouble f);
2064+GLAPI PFNGLDEPTHRANGEPROC glad_glDepthRange;
2065+#define glDepthRange glad_glDepthRange
2066+typedef void (APIENTRYP PFNGLVIEWPORTPROC)(GLint x, GLint y, GLsizei width, GLsizei height);
2067+GLAPI PFNGLVIEWPORTPROC glad_glViewport;
2068+#define glViewport glad_glViewport
2069+typedef void (APIENTRYP PFNGLNEWLISTPROC)(GLuint list, GLenum mode);
2070+GLAPI PFNGLNEWLISTPROC glad_glNewList;
2071+#define glNewList glad_glNewList
2072+typedef void (APIENTRYP PFNGLENDLISTPROC)(void);
2073+GLAPI PFNGLENDLISTPROC glad_glEndList;
2074+#define glEndList glad_glEndList
2075+typedef void (APIENTRYP PFNGLCALLLISTPROC)(GLuint list);
2076+GLAPI PFNGLCALLLISTPROC glad_glCallList;
2077+#define glCallList glad_glCallList
2078+typedef void (APIENTRYP PFNGLCALLLISTSPROC)(GLsizei n, GLenum type, const void *lists);
2079+GLAPI PFNGLCALLLISTSPROC glad_glCallLists;
2080+#define glCallLists glad_glCallLists
2081+typedef void (APIENTRYP PFNGLDELETELISTSPROC)(GLuint list, GLsizei range);
2082+GLAPI PFNGLDELETELISTSPROC glad_glDeleteLists;
2083+#define glDeleteLists glad_glDeleteLists
2084+typedef GLuint (APIENTRYP PFNGLGENLISTSPROC)(GLsizei range);
2085+GLAPI PFNGLGENLISTSPROC glad_glGenLists;
2086+#define glGenLists glad_glGenLists
2087+typedef void (APIENTRYP PFNGLLISTBASEPROC)(GLuint base);
2088+GLAPI PFNGLLISTBASEPROC glad_glListBase;
2089+#define glListBase glad_glListBase
2090+typedef void (APIENTRYP PFNGLBEGINPROC)(GLenum mode);
2091+GLAPI PFNGLBEGINPROC glad_glBegin;
2092+#define glBegin glad_glBegin
2093+typedef void (APIENTRYP PFNGLBITMAPPROC)(GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap);
2094+GLAPI PFNGLBITMAPPROC glad_glBitmap;
2095+#define glBitmap glad_glBitmap
2096+typedef void (APIENTRYP PFNGLCOLOR3BPROC)(GLbyte red, GLbyte green, GLbyte blue);
2097+GLAPI PFNGLCOLOR3BPROC glad_glColor3b;
2098+#define glColor3b glad_glColor3b
2099+typedef void (APIENTRYP PFNGLCOLOR3BVPROC)(const GLbyte *v);
2100+GLAPI PFNGLCOLOR3BVPROC glad_glColor3bv;
2101+#define glColor3bv glad_glColor3bv
2102+typedef void (APIENTRYP PFNGLCOLOR3DPROC)(GLdouble red, GLdouble green, GLdouble blue);
2103+GLAPI PFNGLCOLOR3DPROC glad_glColor3d;
2104+#define glColor3d glad_glColor3d
2105+typedef void (APIENTRYP PFNGLCOLOR3DVPROC)(const GLdouble *v);
2106+GLAPI PFNGLCOLOR3DVPROC glad_glColor3dv;
2107+#define glColor3dv glad_glColor3dv
2108+typedef void (APIENTRYP PFNGLCOLOR3FPROC)(GLfloat red, GLfloat green, GLfloat blue);
2109+GLAPI PFNGLCOLOR3FPROC glad_glColor3f;
2110+#define glColor3f glad_glColor3f
2111+typedef void (APIENTRYP PFNGLCOLOR3FVPROC)(const GLfloat *v);
2112+GLAPI PFNGLCOLOR3FVPROC glad_glColor3fv;
2113+#define glColor3fv glad_glColor3fv
2114+typedef void (APIENTRYP PFNGLCOLOR3IPROC)(GLint red, GLint green, GLint blue);
2115+GLAPI PFNGLCOLOR3IPROC glad_glColor3i;
2116+#define glColor3i glad_glColor3i
2117+typedef void (APIENTRYP PFNGLCOLOR3IVPROC)(const GLint *v);
2118+GLAPI PFNGLCOLOR3IVPROC glad_glColor3iv;
2119+#define glColor3iv glad_glColor3iv
2120+typedef void (APIENTRYP PFNGLCOLOR3SPROC)(GLshort red, GLshort green, GLshort blue);
2121+GLAPI PFNGLCOLOR3SPROC glad_glColor3s;
2122+#define glColor3s glad_glColor3s
2123+typedef void (APIENTRYP PFNGLCOLOR3SVPROC)(const GLshort *v);
2124+GLAPI PFNGLCOLOR3SVPROC glad_glColor3sv;
2125+#define glColor3sv glad_glColor3sv
2126+typedef void (APIENTRYP PFNGLCOLOR3UBPROC)(GLubyte red, GLubyte green, GLubyte blue);
2127+GLAPI PFNGLCOLOR3UBPROC glad_glColor3ub;
2128+#define glColor3ub glad_glColor3ub
2129+typedef void (APIENTRYP PFNGLCOLOR3UBVPROC)(const GLubyte *v);
2130+GLAPI PFNGLCOLOR3UBVPROC glad_glColor3ubv;
2131+#define glColor3ubv glad_glColor3ubv
2132+typedef void (APIENTRYP PFNGLCOLOR3UIPROC)(GLuint red, GLuint green, GLuint blue);
2133+GLAPI PFNGLCOLOR3UIPROC glad_glColor3ui;
2134+#define glColor3ui glad_glColor3ui
2135+typedef void (APIENTRYP PFNGLCOLOR3UIVPROC)(const GLuint *v);
2136+GLAPI PFNGLCOLOR3UIVPROC glad_glColor3uiv;
2137+#define glColor3uiv glad_glColor3uiv
2138+typedef void (APIENTRYP PFNGLCOLOR3USPROC)(GLushort red, GLushort green, GLushort blue);
2139+GLAPI PFNGLCOLOR3USPROC glad_glColor3us;
2140+#define glColor3us glad_glColor3us
2141+typedef void (APIENTRYP PFNGLCOLOR3USVPROC)(const GLushort *v);
2142+GLAPI PFNGLCOLOR3USVPROC glad_glColor3usv;
2143+#define glColor3usv glad_glColor3usv
2144+typedef void (APIENTRYP PFNGLCOLOR4BPROC)(GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha);
2145+GLAPI PFNGLCOLOR4BPROC glad_glColor4b;
2146+#define glColor4b glad_glColor4b
2147+typedef void (APIENTRYP PFNGLCOLOR4BVPROC)(const GLbyte *v);
2148+GLAPI PFNGLCOLOR4BVPROC glad_glColor4bv;
2149+#define glColor4bv glad_glColor4bv
2150+typedef void (APIENTRYP PFNGLCOLOR4DPROC)(GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha);
2151+GLAPI PFNGLCOLOR4DPROC glad_glColor4d;
2152+#define glColor4d glad_glColor4d
2153+typedef void (APIENTRYP PFNGLCOLOR4DVPROC)(const GLdouble *v);
2154+GLAPI PFNGLCOLOR4DVPROC glad_glColor4dv;
2155+#define glColor4dv glad_glColor4dv
2156+typedef void (APIENTRYP PFNGLCOLOR4FPROC)(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
2157+GLAPI PFNGLCOLOR4FPROC glad_glColor4f;
2158+#define glColor4f glad_glColor4f
2159+typedef void (APIENTRYP PFNGLCOLOR4FVPROC)(const GLfloat *v);
2160+GLAPI PFNGLCOLOR4FVPROC glad_glColor4fv;
2161+#define glColor4fv glad_glColor4fv
2162+typedef void (APIENTRYP PFNGLCOLOR4IPROC)(GLint red, GLint green, GLint blue, GLint alpha);
2163+GLAPI PFNGLCOLOR4IPROC glad_glColor4i;
2164+#define glColor4i glad_glColor4i
2165+typedef void (APIENTRYP PFNGLCOLOR4IVPROC)(const GLint *v);
2166+GLAPI PFNGLCOLOR4IVPROC glad_glColor4iv;
2167+#define glColor4iv glad_glColor4iv
2168+typedef void (APIENTRYP PFNGLCOLOR4SPROC)(GLshort red, GLshort green, GLshort blue, GLshort alpha);
2169+GLAPI PFNGLCOLOR4SPROC glad_glColor4s;
2170+#define glColor4s glad_glColor4s
2171+typedef void (APIENTRYP PFNGLCOLOR4SVPROC)(const GLshort *v);
2172+GLAPI PFNGLCOLOR4SVPROC glad_glColor4sv;
2173+#define glColor4sv glad_glColor4sv
2174+typedef void (APIENTRYP PFNGLCOLOR4UBPROC)(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha);
2175+GLAPI PFNGLCOLOR4UBPROC glad_glColor4ub;
2176+#define glColor4ub glad_glColor4ub
2177+typedef void (APIENTRYP PFNGLCOLOR4UBVPROC)(const GLubyte *v);
2178+GLAPI PFNGLCOLOR4UBVPROC glad_glColor4ubv;
2179+#define glColor4ubv glad_glColor4ubv
2180+typedef void (APIENTRYP PFNGLCOLOR4UIPROC)(GLuint red, GLuint green, GLuint blue, GLuint alpha);
2181+GLAPI PFNGLCOLOR4UIPROC glad_glColor4ui;
2182+#define glColor4ui glad_glColor4ui
2183+typedef void (APIENTRYP PFNGLCOLOR4UIVPROC)(const GLuint *v);
2184+GLAPI PFNGLCOLOR4UIVPROC glad_glColor4uiv;
2185+#define glColor4uiv glad_glColor4uiv
2186+typedef void (APIENTRYP PFNGLCOLOR4USPROC)(GLushort red, GLushort green, GLushort blue, GLushort alpha);
2187+GLAPI PFNGLCOLOR4USPROC glad_glColor4us;
2188+#define glColor4us glad_glColor4us
2189+typedef void (APIENTRYP PFNGLCOLOR4USVPROC)(const GLushort *v);
2190+GLAPI PFNGLCOLOR4USVPROC glad_glColor4usv;
2191+#define glColor4usv glad_glColor4usv
2192+typedef void (APIENTRYP PFNGLEDGEFLAGPROC)(GLboolean flag);
2193+GLAPI PFNGLEDGEFLAGPROC glad_glEdgeFlag;
2194+#define glEdgeFlag glad_glEdgeFlag
2195+typedef void (APIENTRYP PFNGLEDGEFLAGVPROC)(const GLboolean *flag);
2196+GLAPI PFNGLEDGEFLAGVPROC glad_glEdgeFlagv;
2197+#define glEdgeFlagv glad_glEdgeFlagv
2198+typedef void (APIENTRYP PFNGLENDPROC)(void);
2199+GLAPI PFNGLENDPROC glad_glEnd;
2200+#define glEnd glad_glEnd
2201+typedef void (APIENTRYP PFNGLINDEXDPROC)(GLdouble c);
2202+GLAPI PFNGLINDEXDPROC glad_glIndexd;
2203+#define glIndexd glad_glIndexd
2204+typedef void (APIENTRYP PFNGLINDEXDVPROC)(const GLdouble *c);
2205+GLAPI PFNGLINDEXDVPROC glad_glIndexdv;
2206+#define glIndexdv glad_glIndexdv
2207+typedef void (APIENTRYP PFNGLINDEXFPROC)(GLfloat c);
2208+GLAPI PFNGLINDEXFPROC glad_glIndexf;
2209+#define glIndexf glad_glIndexf
2210+typedef void (APIENTRYP PFNGLINDEXFVPROC)(const GLfloat *c);
2211+GLAPI PFNGLINDEXFVPROC glad_glIndexfv;
2212+#define glIndexfv glad_glIndexfv
2213+typedef void (APIENTRYP PFNGLINDEXIPROC)(GLint c);
2214+GLAPI PFNGLINDEXIPROC glad_glIndexi;
2215+#define glIndexi glad_glIndexi
2216+typedef void (APIENTRYP PFNGLINDEXIVPROC)(const GLint *c);
2217+GLAPI PFNGLINDEXIVPROC glad_glIndexiv;
2218+#define glIndexiv glad_glIndexiv
2219+typedef void (APIENTRYP PFNGLINDEXSPROC)(GLshort c);
2220+GLAPI PFNGLINDEXSPROC glad_glIndexs;
2221+#define glIndexs glad_glIndexs
2222+typedef void (APIENTRYP PFNGLINDEXSVPROC)(const GLshort *c);
2223+GLAPI PFNGLINDEXSVPROC glad_glIndexsv;
2224+#define glIndexsv glad_glIndexsv
2225+typedef void (APIENTRYP PFNGLNORMAL3BPROC)(GLbyte nx, GLbyte ny, GLbyte nz);
2226+GLAPI PFNGLNORMAL3BPROC glad_glNormal3b;
2227+#define glNormal3b glad_glNormal3b
2228+typedef void (APIENTRYP PFNGLNORMAL3BVPROC)(const GLbyte *v);
2229+GLAPI PFNGLNORMAL3BVPROC glad_glNormal3bv;
2230+#define glNormal3bv glad_glNormal3bv
2231+typedef void (APIENTRYP PFNGLNORMAL3DPROC)(GLdouble nx, GLdouble ny, GLdouble nz);
2232+GLAPI PFNGLNORMAL3DPROC glad_glNormal3d;
2233+#define glNormal3d glad_glNormal3d
2234+typedef void (APIENTRYP PFNGLNORMAL3DVPROC)(const GLdouble *v);
2235+GLAPI PFNGLNORMAL3DVPROC glad_glNormal3dv;
2236+#define glNormal3dv glad_glNormal3dv
2237+typedef void (APIENTRYP PFNGLNORMAL3FPROC)(GLfloat nx, GLfloat ny, GLfloat nz);
2238+GLAPI PFNGLNORMAL3FPROC glad_glNormal3f;
2239+#define glNormal3f glad_glNormal3f
2240+typedef void (APIENTRYP PFNGLNORMAL3FVPROC)(const GLfloat *v);
2241+GLAPI PFNGLNORMAL3FVPROC glad_glNormal3fv;
2242+#define glNormal3fv glad_glNormal3fv
2243+typedef void (APIENTRYP PFNGLNORMAL3IPROC)(GLint nx, GLint ny, GLint nz);
2244+GLAPI PFNGLNORMAL3IPROC glad_glNormal3i;
2245+#define glNormal3i glad_glNormal3i
2246+typedef void (APIENTRYP PFNGLNORMAL3IVPROC)(const GLint *v);
2247+GLAPI PFNGLNORMAL3IVPROC glad_glNormal3iv;
2248+#define glNormal3iv glad_glNormal3iv
2249+typedef void (APIENTRYP PFNGLNORMAL3SPROC)(GLshort nx, GLshort ny, GLshort nz);
2250+GLAPI PFNGLNORMAL3SPROC glad_glNormal3s;
2251+#define glNormal3s glad_glNormal3s
2252+typedef void (APIENTRYP PFNGLNORMAL3SVPROC)(const GLshort *v);
2253+GLAPI PFNGLNORMAL3SVPROC glad_glNormal3sv;
2254+#define glNormal3sv glad_glNormal3sv
2255+typedef void (APIENTRYP PFNGLRASTERPOS2DPROC)(GLdouble x, GLdouble y);
2256+GLAPI PFNGLRASTERPOS2DPROC glad_glRasterPos2d;
2257+#define glRasterPos2d glad_glRasterPos2d
2258+typedef void (APIENTRYP PFNGLRASTERPOS2DVPROC)(const GLdouble *v);
2259+GLAPI PFNGLRASTERPOS2DVPROC glad_glRasterPos2dv;
2260+#define glRasterPos2dv glad_glRasterPos2dv
2261+typedef void (APIENTRYP PFNGLRASTERPOS2FPROC)(GLfloat x, GLfloat y);
2262+GLAPI PFNGLRASTERPOS2FPROC glad_glRasterPos2f;
2263+#define glRasterPos2f glad_glRasterPos2f
2264+typedef void (APIENTRYP PFNGLRASTERPOS2FVPROC)(const GLfloat *v);
2265+GLAPI PFNGLRASTERPOS2FVPROC glad_glRasterPos2fv;
2266+#define glRasterPos2fv glad_glRasterPos2fv
2267+typedef void (APIENTRYP PFNGLRASTERPOS2IPROC)(GLint x, GLint y);
2268+GLAPI PFNGLRASTERPOS2IPROC glad_glRasterPos2i;
2269+#define glRasterPos2i glad_glRasterPos2i
2270+typedef void (APIENTRYP PFNGLRASTERPOS2IVPROC)(const GLint *v);
2271+GLAPI PFNGLRASTERPOS2IVPROC glad_glRasterPos2iv;
2272+#define glRasterPos2iv glad_glRasterPos2iv
2273+typedef void (APIENTRYP PFNGLRASTERPOS2SPROC)(GLshort x, GLshort y);
2274+GLAPI PFNGLRASTERPOS2SPROC glad_glRasterPos2s;
2275+#define glRasterPos2s glad_glRasterPos2s
2276+typedef void (APIENTRYP PFNGLRASTERPOS2SVPROC)(const GLshort *v);
2277+GLAPI PFNGLRASTERPOS2SVPROC glad_glRasterPos2sv;
2278+#define glRasterPos2sv glad_glRasterPos2sv
2279+typedef void (APIENTRYP PFNGLRASTERPOS3DPROC)(GLdouble x, GLdouble y, GLdouble z);
2280+GLAPI PFNGLRASTERPOS3DPROC glad_glRasterPos3d;
2281+#define glRasterPos3d glad_glRasterPos3d
2282+typedef void (APIENTRYP PFNGLRASTERPOS3DVPROC)(const GLdouble *v);
2283+GLAPI PFNGLRASTERPOS3DVPROC glad_glRasterPos3dv;
2284+#define glRasterPos3dv glad_glRasterPos3dv
2285+typedef void (APIENTRYP PFNGLRASTERPOS3FPROC)(GLfloat x, GLfloat y, GLfloat z);
2286+GLAPI PFNGLRASTERPOS3FPROC glad_glRasterPos3f;
2287+#define glRasterPos3f glad_glRasterPos3f
2288+typedef void (APIENTRYP PFNGLRASTERPOS3FVPROC)(const GLfloat *v);
2289+GLAPI PFNGLRASTERPOS3FVPROC glad_glRasterPos3fv;
2290+#define glRasterPos3fv glad_glRasterPos3fv
2291+typedef void (APIENTRYP PFNGLRASTERPOS3IPROC)(GLint x, GLint y, GLint z);
2292+GLAPI PFNGLRASTERPOS3IPROC glad_glRasterPos3i;
2293+#define glRasterPos3i glad_glRasterPos3i
2294+typedef void (APIENTRYP PFNGLRASTERPOS3IVPROC)(const GLint *v);
2295+GLAPI PFNGLRASTERPOS3IVPROC glad_glRasterPos3iv;
2296+#define glRasterPos3iv glad_glRasterPos3iv
2297+typedef void (APIENTRYP PFNGLRASTERPOS3SPROC)(GLshort x, GLshort y, GLshort z);
2298+GLAPI PFNGLRASTERPOS3SPROC glad_glRasterPos3s;
2299+#define glRasterPos3s glad_glRasterPos3s
2300+typedef void (APIENTRYP PFNGLRASTERPOS3SVPROC)(const GLshort *v);
2301+GLAPI PFNGLRASTERPOS3SVPROC glad_glRasterPos3sv;
2302+#define glRasterPos3sv glad_glRasterPos3sv
2303+typedef void (APIENTRYP PFNGLRASTERPOS4DPROC)(GLdouble x, GLdouble y, GLdouble z, GLdouble w);
2304+GLAPI PFNGLRASTERPOS4DPROC glad_glRasterPos4d;
2305+#define glRasterPos4d glad_glRasterPos4d
2306+typedef void (APIENTRYP PFNGLRASTERPOS4DVPROC)(const GLdouble *v);
2307+GLAPI PFNGLRASTERPOS4DVPROC glad_glRasterPos4dv;
2308+#define glRasterPos4dv glad_glRasterPos4dv
2309+typedef void (APIENTRYP PFNGLRASTERPOS4FPROC)(GLfloat x, GLfloat y, GLfloat z, GLfloat w);
2310+GLAPI PFNGLRASTERPOS4FPROC glad_glRasterPos4f;
2311+#define glRasterPos4f glad_glRasterPos4f
2312+typedef void (APIENTRYP PFNGLRASTERPOS4FVPROC)(const GLfloat *v);
2313+GLAPI PFNGLRASTERPOS4FVPROC glad_glRasterPos4fv;
2314+#define glRasterPos4fv glad_glRasterPos4fv
2315+typedef void (APIENTRYP PFNGLRASTERPOS4IPROC)(GLint x, GLint y, GLint z, GLint w);
2316+GLAPI PFNGLRASTERPOS4IPROC glad_glRasterPos4i;
2317+#define glRasterPos4i glad_glRasterPos4i
2318+typedef void (APIENTRYP PFNGLRASTERPOS4IVPROC)(const GLint *v);
2319+GLAPI PFNGLRASTERPOS4IVPROC glad_glRasterPos4iv;
2320+#define glRasterPos4iv glad_glRasterPos4iv
2321+typedef void (APIENTRYP PFNGLRASTERPOS4SPROC)(GLshort x, GLshort y, GLshort z, GLshort w);
2322+GLAPI PFNGLRASTERPOS4SPROC glad_glRasterPos4s;
2323+#define glRasterPos4s glad_glRasterPos4s
2324+typedef void (APIENTRYP PFNGLRASTERPOS4SVPROC)(const GLshort *v);
2325+GLAPI PFNGLRASTERPOS4SVPROC glad_glRasterPos4sv;
2326+#define glRasterPos4sv glad_glRasterPos4sv
2327+typedef void (APIENTRYP PFNGLRECTDPROC)(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2);
2328+GLAPI PFNGLRECTDPROC glad_glRectd;
2329+#define glRectd glad_glRectd
2330+typedef void (APIENTRYP PFNGLRECTDVPROC)(const GLdouble *v1, const GLdouble *v2);
2331+GLAPI PFNGLRECTDVPROC glad_glRectdv;
2332+#define glRectdv glad_glRectdv
2333+typedef void (APIENTRYP PFNGLRECTFPROC)(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2);
2334+GLAPI PFNGLRECTFPROC glad_glRectf;
2335+#define glRectf glad_glRectf
2336+typedef void (APIENTRYP PFNGLRECTFVPROC)(const GLfloat *v1, const GLfloat *v2);
2337+GLAPI PFNGLRECTFVPROC glad_glRectfv;
2338+#define glRectfv glad_glRectfv
2339+typedef void (APIENTRYP PFNGLRECTIPROC)(GLint x1, GLint y1, GLint x2, GLint y2);
2340+GLAPI PFNGLRECTIPROC glad_glRecti;
2341+#define glRecti glad_glRecti
2342+typedef void (APIENTRYP PFNGLRECTIVPROC)(const GLint *v1, const GLint *v2);
2343+GLAPI PFNGLRECTIVPROC glad_glRectiv;
2344+#define glRectiv glad_glRectiv
2345+typedef void (APIENTRYP PFNGLRECTSPROC)(GLshort x1, GLshort y1, GLshort x2, GLshort y2);
2346+GLAPI PFNGLRECTSPROC glad_glRects;
2347+#define glRects glad_glRects
2348+typedef void (APIENTRYP PFNGLRECTSVPROC)(const GLshort *v1, const GLshort *v2);
2349+GLAPI PFNGLRECTSVPROC glad_glRectsv;
2350+#define glRectsv glad_glRectsv
2351+typedef void (APIENTRYP PFNGLTEXCOORD1DPROC)(GLdouble s);
2352+GLAPI PFNGLTEXCOORD1DPROC glad_glTexCoord1d;
2353+#define glTexCoord1d glad_glTexCoord1d
2354+typedef void (APIENTRYP PFNGLTEXCOORD1DVPROC)(const GLdouble *v);
2355+GLAPI PFNGLTEXCOORD1DVPROC glad_glTexCoord1dv;
2356+#define glTexCoord1dv glad_glTexCoord1dv
2357+typedef void (APIENTRYP PFNGLTEXCOORD1FPROC)(GLfloat s);
2358+GLAPI PFNGLTEXCOORD1FPROC glad_glTexCoord1f;
2359+#define glTexCoord1f glad_glTexCoord1f
2360+typedef void (APIENTRYP PFNGLTEXCOORD1FVPROC)(const GLfloat *v);
2361+GLAPI PFNGLTEXCOORD1FVPROC glad_glTexCoord1fv;
2362+#define glTexCoord1fv glad_glTexCoord1fv
2363+typedef void (APIENTRYP PFNGLTEXCOORD1IPROC)(GLint s);
2364+GLAPI PFNGLTEXCOORD1IPROC glad_glTexCoord1i;
2365+#define glTexCoord1i glad_glTexCoord1i
2366+typedef void (APIENTRYP PFNGLTEXCOORD1IVPROC)(const GLint *v);
2367+GLAPI PFNGLTEXCOORD1IVPROC glad_glTexCoord1iv;
2368+#define glTexCoord1iv glad_glTexCoord1iv
2369+typedef void (APIENTRYP PFNGLTEXCOORD1SPROC)(GLshort s);
2370+GLAPI PFNGLTEXCOORD1SPROC glad_glTexCoord1s;
2371+#define glTexCoord1s glad_glTexCoord1s
2372+typedef void (APIENTRYP PFNGLTEXCOORD1SVPROC)(const GLshort *v);
2373+GLAPI PFNGLTEXCOORD1SVPROC glad_glTexCoord1sv;
2374+#define glTexCoord1sv glad_glTexCoord1sv
2375+typedef void (APIENTRYP PFNGLTEXCOORD2DPROC)(GLdouble s, GLdouble t);
2376+GLAPI PFNGLTEXCOORD2DPROC glad_glTexCoord2d;
2377+#define glTexCoord2d glad_glTexCoord2d
2378+typedef void (APIENTRYP PFNGLTEXCOORD2DVPROC)(const GLdouble *v);
2379+GLAPI PFNGLTEXCOORD2DVPROC glad_glTexCoord2dv;
2380+#define glTexCoord2dv glad_glTexCoord2dv
2381+typedef void (APIENTRYP PFNGLTEXCOORD2FPROC)(GLfloat s, GLfloat t);
2382+GLAPI PFNGLTEXCOORD2FPROC glad_glTexCoord2f;
2383+#define glTexCoord2f glad_glTexCoord2f
2384+typedef void (APIENTRYP PFNGLTEXCOORD2FVPROC)(const GLfloat *v);
2385+GLAPI PFNGLTEXCOORD2FVPROC glad_glTexCoord2fv;
2386+#define glTexCoord2fv glad_glTexCoord2fv
2387+typedef void (APIENTRYP PFNGLTEXCOORD2IPROC)(GLint s, GLint t);
2388+GLAPI PFNGLTEXCOORD2IPROC glad_glTexCoord2i;
2389+#define glTexCoord2i glad_glTexCoord2i
2390+typedef void (APIENTRYP PFNGLTEXCOORD2IVPROC)(const GLint *v);
2391+GLAPI PFNGLTEXCOORD2IVPROC glad_glTexCoord2iv;
2392+#define glTexCoord2iv glad_glTexCoord2iv
2393+typedef void (APIENTRYP PFNGLTEXCOORD2SPROC)(GLshort s, GLshort t);
2394+GLAPI PFNGLTEXCOORD2SPROC glad_glTexCoord2s;
2395+#define glTexCoord2s glad_glTexCoord2s
2396+typedef void (APIENTRYP PFNGLTEXCOORD2SVPROC)(const GLshort *v);
2397+GLAPI PFNGLTEXCOORD2SVPROC glad_glTexCoord2sv;
2398+#define glTexCoord2sv glad_glTexCoord2sv
2399+typedef void (APIENTRYP PFNGLTEXCOORD3DPROC)(GLdouble s, GLdouble t, GLdouble r);
2400+GLAPI PFNGLTEXCOORD3DPROC glad_glTexCoord3d;
2401+#define glTexCoord3d glad_glTexCoord3d
2402+typedef void (APIENTRYP PFNGLTEXCOORD3DVPROC)(const GLdouble *v);
2403+GLAPI PFNGLTEXCOORD3DVPROC glad_glTexCoord3dv;
2404+#define glTexCoord3dv glad_glTexCoord3dv
2405+typedef void (APIENTRYP PFNGLTEXCOORD3FPROC)(GLfloat s, GLfloat t, GLfloat r);
2406+GLAPI PFNGLTEXCOORD3FPROC glad_glTexCoord3f;
2407+#define glTexCoord3f glad_glTexCoord3f
2408+typedef void (APIENTRYP PFNGLTEXCOORD3FVPROC)(const GLfloat *v);
2409+GLAPI PFNGLTEXCOORD3FVPROC glad_glTexCoord3fv;
2410+#define glTexCoord3fv glad_glTexCoord3fv
2411+typedef void (APIENTRYP PFNGLTEXCOORD3IPROC)(GLint s, GLint t, GLint r);
2412+GLAPI PFNGLTEXCOORD3IPROC glad_glTexCoord3i;
2413+#define glTexCoord3i glad_glTexCoord3i
2414+typedef void (APIENTRYP PFNGLTEXCOORD3IVPROC)(const GLint *v);
2415+GLAPI PFNGLTEXCOORD3IVPROC glad_glTexCoord3iv;
2416+#define glTexCoord3iv glad_glTexCoord3iv
2417+typedef void (APIENTRYP PFNGLTEXCOORD3SPROC)(GLshort s, GLshort t, GLshort r);
2418+GLAPI PFNGLTEXCOORD3SPROC glad_glTexCoord3s;
2419+#define glTexCoord3s glad_glTexCoord3s
2420+typedef void (APIENTRYP PFNGLTEXCOORD3SVPROC)(const GLshort *v);
2421+GLAPI PFNGLTEXCOORD3SVPROC glad_glTexCoord3sv;
2422+#define glTexCoord3sv glad_glTexCoord3sv
2423+typedef void (APIENTRYP PFNGLTEXCOORD4DPROC)(GLdouble s, GLdouble t, GLdouble r, GLdouble q);
2424+GLAPI PFNGLTEXCOORD4DPROC glad_glTexCoord4d;
2425+#define glTexCoord4d glad_glTexCoord4d
2426+typedef void (APIENTRYP PFNGLTEXCOORD4DVPROC)(const GLdouble *v);
2427+GLAPI PFNGLTEXCOORD4DVPROC glad_glTexCoord4dv;
2428+#define glTexCoord4dv glad_glTexCoord4dv
2429+typedef void (APIENTRYP PFNGLTEXCOORD4FPROC)(GLfloat s, GLfloat t, GLfloat r, GLfloat q);
2430+GLAPI PFNGLTEXCOORD4FPROC glad_glTexCoord4f;
2431+#define glTexCoord4f glad_glTexCoord4f
2432+typedef void (APIENTRYP PFNGLTEXCOORD4FVPROC)(const GLfloat *v);
2433+GLAPI PFNGLTEXCOORD4FVPROC glad_glTexCoord4fv;
2434+#define glTexCoord4fv glad_glTexCoord4fv
2435+typedef void (APIENTRYP PFNGLTEXCOORD4IPROC)(GLint s, GLint t, GLint r, GLint q);
2436+GLAPI PFNGLTEXCOORD4IPROC glad_glTexCoord4i;
2437+#define glTexCoord4i glad_glTexCoord4i
2438+typedef void (APIENTRYP PFNGLTEXCOORD4IVPROC)(const GLint *v);
2439+GLAPI PFNGLTEXCOORD4IVPROC glad_glTexCoord4iv;
2440+#define glTexCoord4iv glad_glTexCoord4iv
2441+typedef void (APIENTRYP PFNGLTEXCOORD4SPROC)(GLshort s, GLshort t, GLshort r, GLshort q);
2442+GLAPI PFNGLTEXCOORD4SPROC glad_glTexCoord4s;
2443+#define glTexCoord4s glad_glTexCoord4s
2444+typedef void (APIENTRYP PFNGLTEXCOORD4SVPROC)(const GLshort *v);
2445+GLAPI PFNGLTEXCOORD4SVPROC glad_glTexCoord4sv;
2446+#define glTexCoord4sv glad_glTexCoord4sv
2447+typedef void (APIENTRYP PFNGLVERTEX2DPROC)(GLdouble x, GLdouble y);
2448+GLAPI PFNGLVERTEX2DPROC glad_glVertex2d;
2449+#define glVertex2d glad_glVertex2d
2450+typedef void (APIENTRYP PFNGLVERTEX2DVPROC)(const GLdouble *v);
2451+GLAPI PFNGLVERTEX2DVPROC glad_glVertex2dv;
2452+#define glVertex2dv glad_glVertex2dv
2453+typedef void (APIENTRYP PFNGLVERTEX2FPROC)(GLfloat x, GLfloat y);
2454+GLAPI PFNGLVERTEX2FPROC glad_glVertex2f;
2455+#define glVertex2f glad_glVertex2f
2456+typedef void (APIENTRYP PFNGLVERTEX2FVPROC)(const GLfloat *v);
2457+GLAPI PFNGLVERTEX2FVPROC glad_glVertex2fv;
2458+#define glVertex2fv glad_glVertex2fv
2459+typedef void (APIENTRYP PFNGLVERTEX2IPROC)(GLint x, GLint y);
2460+GLAPI PFNGLVERTEX2IPROC glad_glVertex2i;
2461+#define glVertex2i glad_glVertex2i
2462+typedef void (APIENTRYP PFNGLVERTEX2IVPROC)(const GLint *v);
2463+GLAPI PFNGLVERTEX2IVPROC glad_glVertex2iv;
2464+#define glVertex2iv glad_glVertex2iv
2465+typedef void (APIENTRYP PFNGLVERTEX2SPROC)(GLshort x, GLshort y);
2466+GLAPI PFNGLVERTEX2SPROC glad_glVertex2s;
2467+#define glVertex2s glad_glVertex2s
2468+typedef void (APIENTRYP PFNGLVERTEX2SVPROC)(const GLshort *v);
2469+GLAPI PFNGLVERTEX2SVPROC glad_glVertex2sv;
2470+#define glVertex2sv glad_glVertex2sv
2471+typedef void (APIENTRYP PFNGLVERTEX3DPROC)(GLdouble x, GLdouble y, GLdouble z);
2472+GLAPI PFNGLVERTEX3DPROC glad_glVertex3d;
2473+#define glVertex3d glad_glVertex3d
2474+typedef void (APIENTRYP PFNGLVERTEX3DVPROC)(const GLdouble *v);
2475+GLAPI PFNGLVERTEX3DVPROC glad_glVertex3dv;
2476+#define glVertex3dv glad_glVertex3dv
2477+typedef void (APIENTRYP PFNGLVERTEX3FPROC)(GLfloat x, GLfloat y, GLfloat z);
2478+GLAPI PFNGLVERTEX3FPROC glad_glVertex3f;
2479+#define glVertex3f glad_glVertex3f
2480+typedef void (APIENTRYP PFNGLVERTEX3FVPROC)(const GLfloat *v);
2481+GLAPI PFNGLVERTEX3FVPROC glad_glVertex3fv;
2482+#define glVertex3fv glad_glVertex3fv
2483+typedef void (APIENTRYP PFNGLVERTEX3IPROC)(GLint x, GLint y, GLint z);
2484+GLAPI PFNGLVERTEX3IPROC glad_glVertex3i;
2485+#define glVertex3i glad_glVertex3i
2486+typedef void (APIENTRYP PFNGLVERTEX3IVPROC)(const GLint *v);
2487+GLAPI PFNGLVERTEX3IVPROC glad_glVertex3iv;
2488+#define glVertex3iv glad_glVertex3iv
2489+typedef void (APIENTRYP PFNGLVERTEX3SPROC)(GLshort x, GLshort y, GLshort z);
2490+GLAPI PFNGLVERTEX3SPROC glad_glVertex3s;
2491+#define glVertex3s glad_glVertex3s
2492+typedef void (APIENTRYP PFNGLVERTEX3SVPROC)(const GLshort *v);
2493+GLAPI PFNGLVERTEX3SVPROC glad_glVertex3sv;
2494+#define glVertex3sv glad_glVertex3sv
2495+typedef void (APIENTRYP PFNGLVERTEX4DPROC)(GLdouble x, GLdouble y, GLdouble z, GLdouble w);
2496+GLAPI PFNGLVERTEX4DPROC glad_glVertex4d;
2497+#define glVertex4d glad_glVertex4d
2498+typedef void (APIENTRYP PFNGLVERTEX4DVPROC)(const GLdouble *v);
2499+GLAPI PFNGLVERTEX4DVPROC glad_glVertex4dv;
2500+#define glVertex4dv glad_glVertex4dv
2501+typedef void (APIENTRYP PFNGLVERTEX4FPROC)(GLfloat x, GLfloat y, GLfloat z, GLfloat w);
2502+GLAPI PFNGLVERTEX4FPROC glad_glVertex4f;
2503+#define glVertex4f glad_glVertex4f
2504+typedef void (APIENTRYP PFNGLVERTEX4FVPROC)(const GLfloat *v);
2505+GLAPI PFNGLVERTEX4FVPROC glad_glVertex4fv;
2506+#define glVertex4fv glad_glVertex4fv
2507+typedef void (APIENTRYP PFNGLVERTEX4IPROC)(GLint x, GLint y, GLint z, GLint w);
2508+GLAPI PFNGLVERTEX4IPROC glad_glVertex4i;
2509+#define glVertex4i glad_glVertex4i
2510+typedef void (APIENTRYP PFNGLVERTEX4IVPROC)(const GLint *v);
2511+GLAPI PFNGLVERTEX4IVPROC glad_glVertex4iv;
2512+#define glVertex4iv glad_glVertex4iv
2513+typedef void (APIENTRYP PFNGLVERTEX4SPROC)(GLshort x, GLshort y, GLshort z, GLshort w);
2514+GLAPI PFNGLVERTEX4SPROC glad_glVertex4s;
2515+#define glVertex4s glad_glVertex4s
2516+typedef void (APIENTRYP PFNGLVERTEX4SVPROC)(const GLshort *v);
2517+GLAPI PFNGLVERTEX4SVPROC glad_glVertex4sv;
2518+#define glVertex4sv glad_glVertex4sv
2519+typedef void (APIENTRYP PFNGLCLIPPLANEPROC)(GLenum plane, const GLdouble *equation);
2520+GLAPI PFNGLCLIPPLANEPROC glad_glClipPlane;
2521+#define glClipPlane glad_glClipPlane
2522+typedef void (APIENTRYP PFNGLCOLORMATERIALPROC)(GLenum face, GLenum mode);
2523+GLAPI PFNGLCOLORMATERIALPROC glad_glColorMaterial;
2524+#define glColorMaterial glad_glColorMaterial
2525+typedef void (APIENTRYP PFNGLFOGFPROC)(GLenum pname, GLfloat param);
2526+GLAPI PFNGLFOGFPROC glad_glFogf;
2527+#define glFogf glad_glFogf
2528+typedef void (APIENTRYP PFNGLFOGFVPROC)(GLenum pname, const GLfloat *params);
2529+GLAPI PFNGLFOGFVPROC glad_glFogfv;
2530+#define glFogfv glad_glFogfv
2531+typedef void (APIENTRYP PFNGLFOGIPROC)(GLenum pname, GLint param);
2532+GLAPI PFNGLFOGIPROC glad_glFogi;
2533+#define glFogi glad_glFogi
2534+typedef void (APIENTRYP PFNGLFOGIVPROC)(GLenum pname, const GLint *params);
2535+GLAPI PFNGLFOGIVPROC glad_glFogiv;
2536+#define glFogiv glad_glFogiv
2537+typedef void (APIENTRYP PFNGLLIGHTFPROC)(GLenum light, GLenum pname, GLfloat param);
2538+GLAPI PFNGLLIGHTFPROC glad_glLightf;
2539+#define glLightf glad_glLightf
2540+typedef void (APIENTRYP PFNGLLIGHTFVPROC)(GLenum light, GLenum pname, const GLfloat *params);
2541+GLAPI PFNGLLIGHTFVPROC glad_glLightfv;
2542+#define glLightfv glad_glLightfv
2543+typedef void (APIENTRYP PFNGLLIGHTIPROC)(GLenum light, GLenum pname, GLint param);
2544+GLAPI PFNGLLIGHTIPROC glad_glLighti;
2545+#define glLighti glad_glLighti
2546+typedef void (APIENTRYP PFNGLLIGHTIVPROC)(GLenum light, GLenum pname, const GLint *params);
2547+GLAPI PFNGLLIGHTIVPROC glad_glLightiv;
2548+#define glLightiv glad_glLightiv
2549+typedef void (APIENTRYP PFNGLLIGHTMODELFPROC)(GLenum pname, GLfloat param);
2550+GLAPI PFNGLLIGHTMODELFPROC glad_glLightModelf;
2551+#define glLightModelf glad_glLightModelf
2552+typedef void (APIENTRYP PFNGLLIGHTMODELFVPROC)(GLenum pname, const GLfloat *params);
2553+GLAPI PFNGLLIGHTMODELFVPROC glad_glLightModelfv;
2554+#define glLightModelfv glad_glLightModelfv
2555+typedef void (APIENTRYP PFNGLLIGHTMODELIPROC)(GLenum pname, GLint param);
2556+GLAPI PFNGLLIGHTMODELIPROC glad_glLightModeli;
2557+#define glLightModeli glad_glLightModeli
2558+typedef void (APIENTRYP PFNGLLIGHTMODELIVPROC)(GLenum pname, const GLint *params);
2559+GLAPI PFNGLLIGHTMODELIVPROC glad_glLightModeliv;
2560+#define glLightModeliv glad_glLightModeliv
2561+typedef void (APIENTRYP PFNGLLINESTIPPLEPROC)(GLint factor, GLushort pattern);
2562+GLAPI PFNGLLINESTIPPLEPROC glad_glLineStipple;
2563+#define glLineStipple glad_glLineStipple
2564+typedef void (APIENTRYP PFNGLMATERIALFPROC)(GLenum face, GLenum pname, GLfloat param);
2565+GLAPI PFNGLMATERIALFPROC glad_glMaterialf;
2566+#define glMaterialf glad_glMaterialf
2567+typedef void (APIENTRYP PFNGLMATERIALFVPROC)(GLenum face, GLenum pname, const GLfloat *params);
2568+GLAPI PFNGLMATERIALFVPROC glad_glMaterialfv;
2569+#define glMaterialfv glad_glMaterialfv
2570+typedef void (APIENTRYP PFNGLMATERIALIPROC)(GLenum face, GLenum pname, GLint param);
2571+GLAPI PFNGLMATERIALIPROC glad_glMateriali;
2572+#define glMateriali glad_glMateriali
2573+typedef void (APIENTRYP PFNGLMATERIALIVPROC)(GLenum face, GLenum pname, const GLint *params);
2574+GLAPI PFNGLMATERIALIVPROC glad_glMaterialiv;
2575+#define glMaterialiv glad_glMaterialiv
2576+typedef void (APIENTRYP PFNGLPOLYGONSTIPPLEPROC)(const GLubyte *mask);
2577+GLAPI PFNGLPOLYGONSTIPPLEPROC glad_glPolygonStipple;
2578+#define glPolygonStipple glad_glPolygonStipple
2579+typedef void (APIENTRYP PFNGLSHADEMODELPROC)(GLenum mode);
2580+GLAPI PFNGLSHADEMODELPROC glad_glShadeModel;
2581+#define glShadeModel glad_glShadeModel
2582+typedef void (APIENTRYP PFNGLTEXENVFPROC)(GLenum target, GLenum pname, GLfloat param);
2583+GLAPI PFNGLTEXENVFPROC glad_glTexEnvf;
2584+#define glTexEnvf glad_glTexEnvf
2585+typedef void (APIENTRYP PFNGLTEXENVFVPROC)(GLenum target, GLenum pname, const GLfloat *params);
2586+GLAPI PFNGLTEXENVFVPROC glad_glTexEnvfv;
2587+#define glTexEnvfv glad_glTexEnvfv
2588+typedef void (APIENTRYP PFNGLTEXENVIPROC)(GLenum target, GLenum pname, GLint param);
2589+GLAPI PFNGLTEXENVIPROC glad_glTexEnvi;
2590+#define glTexEnvi glad_glTexEnvi
2591+typedef void (APIENTRYP PFNGLTEXENVIVPROC)(GLenum target, GLenum pname, const GLint *params);
2592+GLAPI PFNGLTEXENVIVPROC glad_glTexEnviv;
2593+#define glTexEnviv glad_glTexEnviv
2594+typedef void (APIENTRYP PFNGLTEXGENDPROC)(GLenum coord, GLenum pname, GLdouble param);
2595+GLAPI PFNGLTEXGENDPROC glad_glTexGend;
2596+#define glTexGend glad_glTexGend
2597+typedef void (APIENTRYP PFNGLTEXGENDVPROC)(GLenum coord, GLenum pname, const GLdouble *params);
2598+GLAPI PFNGLTEXGENDVPROC glad_glTexGendv;
2599+#define glTexGendv glad_glTexGendv
2600+typedef void (APIENTRYP PFNGLTEXGENFPROC)(GLenum coord, GLenum pname, GLfloat param);
2601+GLAPI PFNGLTEXGENFPROC glad_glTexGenf;
2602+#define glTexGenf glad_glTexGenf
2603+typedef void (APIENTRYP PFNGLTEXGENFVPROC)(GLenum coord, GLenum pname, const GLfloat *params);
2604+GLAPI PFNGLTEXGENFVPROC glad_glTexGenfv;
2605+#define glTexGenfv glad_glTexGenfv
2606+typedef void (APIENTRYP PFNGLTEXGENIPROC)(GLenum coord, GLenum pname, GLint param);
2607+GLAPI PFNGLTEXGENIPROC glad_glTexGeni;
2608+#define glTexGeni glad_glTexGeni
2609+typedef void (APIENTRYP PFNGLTEXGENIVPROC)(GLenum coord, GLenum pname, const GLint *params);
2610+GLAPI PFNGLTEXGENIVPROC glad_glTexGeniv;
2611+#define glTexGeniv glad_glTexGeniv
2612+typedef void (APIENTRYP PFNGLFEEDBACKBUFFERPROC)(GLsizei size, GLenum type, GLfloat *buffer);
2613+GLAPI PFNGLFEEDBACKBUFFERPROC glad_glFeedbackBuffer;
2614+#define glFeedbackBuffer glad_glFeedbackBuffer
2615+typedef void (APIENTRYP PFNGLSELECTBUFFERPROC)(GLsizei size, GLuint *buffer);
2616+GLAPI PFNGLSELECTBUFFERPROC glad_glSelectBuffer;
2617+#define glSelectBuffer glad_glSelectBuffer
2618+typedef GLint (APIENTRYP PFNGLRENDERMODEPROC)(GLenum mode);
2619+GLAPI PFNGLRENDERMODEPROC glad_glRenderMode;
2620+#define glRenderMode glad_glRenderMode
2621+typedef void (APIENTRYP PFNGLINITNAMESPROC)(void);
2622+GLAPI PFNGLINITNAMESPROC glad_glInitNames;
2623+#define glInitNames glad_glInitNames
2624+typedef void (APIENTRYP PFNGLLOADNAMEPROC)(GLuint name);
2625+GLAPI PFNGLLOADNAMEPROC glad_glLoadName;
2626+#define glLoadName glad_glLoadName
2627+typedef void (APIENTRYP PFNGLPASSTHROUGHPROC)(GLfloat token);
2628+GLAPI PFNGLPASSTHROUGHPROC glad_glPassThrough;
2629+#define glPassThrough glad_glPassThrough
2630+typedef void (APIENTRYP PFNGLPOPNAMEPROC)(void);
2631+GLAPI PFNGLPOPNAMEPROC glad_glPopName;
2632+#define glPopName glad_glPopName
2633+typedef void (APIENTRYP PFNGLPUSHNAMEPROC)(GLuint name);
2634+GLAPI PFNGLPUSHNAMEPROC glad_glPushName;
2635+#define glPushName glad_glPushName
2636+typedef void (APIENTRYP PFNGLCLEARACCUMPROC)(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
2637+GLAPI PFNGLCLEARACCUMPROC glad_glClearAccum;
2638+#define glClearAccum glad_glClearAccum
2639+typedef void (APIENTRYP PFNGLCLEARINDEXPROC)(GLfloat c);
2640+GLAPI PFNGLCLEARINDEXPROC glad_glClearIndex;
2641+#define glClearIndex glad_glClearIndex
2642+typedef void (APIENTRYP PFNGLINDEXMASKPROC)(GLuint mask);
2643+GLAPI PFNGLINDEXMASKPROC glad_glIndexMask;
2644+#define glIndexMask glad_glIndexMask
2645+typedef void (APIENTRYP PFNGLACCUMPROC)(GLenum op, GLfloat value);
2646+GLAPI PFNGLACCUMPROC glad_glAccum;
2647+#define glAccum glad_glAccum
2648+typedef void (APIENTRYP PFNGLPOPATTRIBPROC)(void);
2649+GLAPI PFNGLPOPATTRIBPROC glad_glPopAttrib;
2650+#define glPopAttrib glad_glPopAttrib
2651+typedef void (APIENTRYP PFNGLPUSHATTRIBPROC)(GLbitfield mask);
2652+GLAPI PFNGLPUSHATTRIBPROC glad_glPushAttrib;
2653+#define glPushAttrib glad_glPushAttrib
2654+typedef void (APIENTRYP PFNGLMAP1DPROC)(GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points);
2655+GLAPI PFNGLMAP1DPROC glad_glMap1d;
2656+#define glMap1d glad_glMap1d
2657+typedef void (APIENTRYP PFNGLMAP1FPROC)(GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points);
2658+GLAPI PFNGLMAP1FPROC glad_glMap1f;
2659+#define glMap1f glad_glMap1f
2660+typedef void (APIENTRYP PFNGLMAP2DPROC)(GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points);
2661+GLAPI PFNGLMAP2DPROC glad_glMap2d;
2662+#define glMap2d glad_glMap2d
2663+typedef void (APIENTRYP PFNGLMAP2FPROC)(GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points);
2664+GLAPI PFNGLMAP2FPROC glad_glMap2f;
2665+#define glMap2f glad_glMap2f
2666+typedef void (APIENTRYP PFNGLMAPGRID1DPROC)(GLint un, GLdouble u1, GLdouble u2);
2667+GLAPI PFNGLMAPGRID1DPROC glad_glMapGrid1d;
2668+#define glMapGrid1d glad_glMapGrid1d
2669+typedef void (APIENTRYP PFNGLMAPGRID1FPROC)(GLint un, GLfloat u1, GLfloat u2);
2670+GLAPI PFNGLMAPGRID1FPROC glad_glMapGrid1f;
2671+#define glMapGrid1f glad_glMapGrid1f
2672+typedef void (APIENTRYP PFNGLMAPGRID2DPROC)(GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2);
2673+GLAPI PFNGLMAPGRID2DPROC glad_glMapGrid2d;
2674+#define glMapGrid2d glad_glMapGrid2d
2675+typedef void (APIENTRYP PFNGLMAPGRID2FPROC)(GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2);
2676+GLAPI PFNGLMAPGRID2FPROC glad_glMapGrid2f;
2677+#define glMapGrid2f glad_glMapGrid2f
2678+typedef void (APIENTRYP PFNGLEVALCOORD1DPROC)(GLdouble u);
2679+GLAPI PFNGLEVALCOORD1DPROC glad_glEvalCoord1d;
2680+#define glEvalCoord1d glad_glEvalCoord1d
2681+typedef void (APIENTRYP PFNGLEVALCOORD1DVPROC)(const GLdouble *u);
2682+GLAPI PFNGLEVALCOORD1DVPROC glad_glEvalCoord1dv;
2683+#define glEvalCoord1dv glad_glEvalCoord1dv
2684+typedef void (APIENTRYP PFNGLEVALCOORD1FPROC)(GLfloat u);
2685+GLAPI PFNGLEVALCOORD1FPROC glad_glEvalCoord1f;
2686+#define glEvalCoord1f glad_glEvalCoord1f
2687+typedef void (APIENTRYP PFNGLEVALCOORD1FVPROC)(const GLfloat *u);
2688+GLAPI PFNGLEVALCOORD1FVPROC glad_glEvalCoord1fv;
2689+#define glEvalCoord1fv glad_glEvalCoord1fv
2690+typedef void (APIENTRYP PFNGLEVALCOORD2DPROC)(GLdouble u, GLdouble v);
2691+GLAPI PFNGLEVALCOORD2DPROC glad_glEvalCoord2d;
2692+#define glEvalCoord2d glad_glEvalCoord2d
2693+typedef void (APIENTRYP PFNGLEVALCOORD2DVPROC)(const GLdouble *u);
2694+GLAPI PFNGLEVALCOORD2DVPROC glad_glEvalCoord2dv;
2695+#define glEvalCoord2dv glad_glEvalCoord2dv
2696+typedef void (APIENTRYP PFNGLEVALCOORD2FPROC)(GLfloat u, GLfloat v);
2697+GLAPI PFNGLEVALCOORD2FPROC glad_glEvalCoord2f;
2698+#define glEvalCoord2f glad_glEvalCoord2f
2699+typedef void (APIENTRYP PFNGLEVALCOORD2FVPROC)(const GLfloat *u);
2700+GLAPI PFNGLEVALCOORD2FVPROC glad_glEvalCoord2fv;
2701+#define glEvalCoord2fv glad_glEvalCoord2fv
2702+typedef void (APIENTRYP PFNGLEVALMESH1PROC)(GLenum mode, GLint i1, GLint i2);
2703+GLAPI PFNGLEVALMESH1PROC glad_glEvalMesh1;
2704+#define glEvalMesh1 glad_glEvalMesh1
2705+typedef void (APIENTRYP PFNGLEVALPOINT1PROC)(GLint i);
2706+GLAPI PFNGLEVALPOINT1PROC glad_glEvalPoint1;
2707+#define glEvalPoint1 glad_glEvalPoint1
2708+typedef void (APIENTRYP PFNGLEVALMESH2PROC)(GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2);
2709+GLAPI PFNGLEVALMESH2PROC glad_glEvalMesh2;
2710+#define glEvalMesh2 glad_glEvalMesh2
2711+typedef void (APIENTRYP PFNGLEVALPOINT2PROC)(GLint i, GLint j);
2712+GLAPI PFNGLEVALPOINT2PROC glad_glEvalPoint2;
2713+#define glEvalPoint2 glad_glEvalPoint2
2714+typedef void (APIENTRYP PFNGLALPHAFUNCPROC)(GLenum func, GLfloat ref);
2715+GLAPI PFNGLALPHAFUNCPROC glad_glAlphaFunc;
2716+#define glAlphaFunc glad_glAlphaFunc
2717+typedef void (APIENTRYP PFNGLPIXELZOOMPROC)(GLfloat xfactor, GLfloat yfactor);
2718+GLAPI PFNGLPIXELZOOMPROC glad_glPixelZoom;
2719+#define glPixelZoom glad_glPixelZoom
2720+typedef void (APIENTRYP PFNGLPIXELTRANSFERFPROC)(GLenum pname, GLfloat param);
2721+GLAPI PFNGLPIXELTRANSFERFPROC glad_glPixelTransferf;
2722+#define glPixelTransferf glad_glPixelTransferf
2723+typedef void (APIENTRYP PFNGLPIXELTRANSFERIPROC)(GLenum pname, GLint param);
2724+GLAPI PFNGLPIXELTRANSFERIPROC glad_glPixelTransferi;
2725+#define glPixelTransferi glad_glPixelTransferi
2726+typedef void (APIENTRYP PFNGLPIXELMAPFVPROC)(GLenum map, GLsizei mapsize, const GLfloat *values);
2727+GLAPI PFNGLPIXELMAPFVPROC glad_glPixelMapfv;
2728+#define glPixelMapfv glad_glPixelMapfv
2729+typedef void (APIENTRYP PFNGLPIXELMAPUIVPROC)(GLenum map, GLsizei mapsize, const GLuint *values);
2730+GLAPI PFNGLPIXELMAPUIVPROC glad_glPixelMapuiv;
2731+#define glPixelMapuiv glad_glPixelMapuiv
2732+typedef void (APIENTRYP PFNGLPIXELMAPUSVPROC)(GLenum map, GLsizei mapsize, const GLushort *values);
2733+GLAPI PFNGLPIXELMAPUSVPROC glad_glPixelMapusv;
2734+#define glPixelMapusv glad_glPixelMapusv
2735+typedef void (APIENTRYP PFNGLCOPYPIXELSPROC)(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type);
2736+GLAPI PFNGLCOPYPIXELSPROC glad_glCopyPixels;
2737+#define glCopyPixels glad_glCopyPixels
2738+typedef void (APIENTRYP PFNGLDRAWPIXELSPROC)(GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels);
2739+GLAPI PFNGLDRAWPIXELSPROC glad_glDrawPixels;
2740+#define glDrawPixels glad_glDrawPixels
2741+typedef void (APIENTRYP PFNGLGETCLIPPLANEPROC)(GLenum plane, GLdouble *equation);
2742+GLAPI PFNGLGETCLIPPLANEPROC glad_glGetClipPlane;
2743+#define glGetClipPlane glad_glGetClipPlane
2744+typedef void (APIENTRYP PFNGLGETLIGHTFVPROC)(GLenum light, GLenum pname, GLfloat *params);
2745+GLAPI PFNGLGETLIGHTFVPROC glad_glGetLightfv;
2746+#define glGetLightfv glad_glGetLightfv
2747+typedef void (APIENTRYP PFNGLGETLIGHTIVPROC)(GLenum light, GLenum pname, GLint *params);
2748+GLAPI PFNGLGETLIGHTIVPROC glad_glGetLightiv;
2749+#define glGetLightiv glad_glGetLightiv
2750+typedef void (APIENTRYP PFNGLGETMAPDVPROC)(GLenum target, GLenum query, GLdouble *v);
2751+GLAPI PFNGLGETMAPDVPROC glad_glGetMapdv;
2752+#define glGetMapdv glad_glGetMapdv
2753+typedef void (APIENTRYP PFNGLGETMAPFVPROC)(GLenum target, GLenum query, GLfloat *v);
2754+GLAPI PFNGLGETMAPFVPROC glad_glGetMapfv;
2755+#define glGetMapfv glad_glGetMapfv
2756+typedef void (APIENTRYP PFNGLGETMAPIVPROC)(GLenum target, GLenum query, GLint *v);
2757+GLAPI PFNGLGETMAPIVPROC glad_glGetMapiv;
2758+#define glGetMapiv glad_glGetMapiv
2759+typedef void (APIENTRYP PFNGLGETMATERIALFVPROC)(GLenum face, GLenum pname, GLfloat *params);
2760+GLAPI PFNGLGETMATERIALFVPROC glad_glGetMaterialfv;
2761+#define glGetMaterialfv glad_glGetMaterialfv
2762+typedef void (APIENTRYP PFNGLGETMATERIALIVPROC)(GLenum face, GLenum pname, GLint *params);
2763+GLAPI PFNGLGETMATERIALIVPROC glad_glGetMaterialiv;
2764+#define glGetMaterialiv glad_glGetMaterialiv
2765+typedef void (APIENTRYP PFNGLGETPIXELMAPFVPROC)(GLenum map, GLfloat *values);
2766+GLAPI PFNGLGETPIXELMAPFVPROC glad_glGetPixelMapfv;
2767+#define glGetPixelMapfv glad_glGetPixelMapfv
2768+typedef void (APIENTRYP PFNGLGETPIXELMAPUIVPROC)(GLenum map, GLuint *values);
2769+GLAPI PFNGLGETPIXELMAPUIVPROC glad_glGetPixelMapuiv;
2770+#define glGetPixelMapuiv glad_glGetPixelMapuiv
2771+typedef void (APIENTRYP PFNGLGETPIXELMAPUSVPROC)(GLenum map, GLushort *values);
2772+GLAPI PFNGLGETPIXELMAPUSVPROC glad_glGetPixelMapusv;
2773+#define glGetPixelMapusv glad_glGetPixelMapusv
2774+typedef void (APIENTRYP PFNGLGETPOLYGONSTIPPLEPROC)(GLubyte *mask);
2775+GLAPI PFNGLGETPOLYGONSTIPPLEPROC glad_glGetPolygonStipple;
2776+#define glGetPolygonStipple glad_glGetPolygonStipple
2777+typedef void (APIENTRYP PFNGLGETTEXENVFVPROC)(GLenum target, GLenum pname, GLfloat *params);
2778+GLAPI PFNGLGETTEXENVFVPROC glad_glGetTexEnvfv;
2779+#define glGetTexEnvfv glad_glGetTexEnvfv
2780+typedef void (APIENTRYP PFNGLGETTEXENVIVPROC)(GLenum target, GLenum pname, GLint *params);
2781+GLAPI PFNGLGETTEXENVIVPROC glad_glGetTexEnviv;
2782+#define glGetTexEnviv glad_glGetTexEnviv
2783+typedef void (APIENTRYP PFNGLGETTEXGENDVPROC)(GLenum coord, GLenum pname, GLdouble *params);
2784+GLAPI PFNGLGETTEXGENDVPROC glad_glGetTexGendv;
2785+#define glGetTexGendv glad_glGetTexGendv
2786+typedef void (APIENTRYP PFNGLGETTEXGENFVPROC)(GLenum coord, GLenum pname, GLfloat *params);
2787+GLAPI PFNGLGETTEXGENFVPROC glad_glGetTexGenfv;
2788+#define glGetTexGenfv glad_glGetTexGenfv
2789+typedef void (APIENTRYP PFNGLGETTEXGENIVPROC)(GLenum coord, GLenum pname, GLint *params);
2790+GLAPI PFNGLGETTEXGENIVPROC glad_glGetTexGeniv;
2791+#define glGetTexGeniv glad_glGetTexGeniv
2792+typedef GLboolean (APIENTRYP PFNGLISLISTPROC)(GLuint list);
2793+GLAPI PFNGLISLISTPROC glad_glIsList;
2794+#define glIsList glad_glIsList
2795+typedef void (APIENTRYP PFNGLFRUSTUMPROC)(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
2796+GLAPI PFNGLFRUSTUMPROC glad_glFrustum;
2797+#define glFrustum glad_glFrustum
2798+typedef void (APIENTRYP PFNGLLOADIDENTITYPROC)(void);
2799+GLAPI PFNGLLOADIDENTITYPROC glad_glLoadIdentity;
2800+#define glLoadIdentity glad_glLoadIdentity
2801+typedef void (APIENTRYP PFNGLLOADMATRIXFPROC)(const GLfloat *m);
2802+GLAPI PFNGLLOADMATRIXFPROC glad_glLoadMatrixf;
2803+#define glLoadMatrixf glad_glLoadMatrixf
2804+typedef void (APIENTRYP PFNGLLOADMATRIXDPROC)(const GLdouble *m);
2805+GLAPI PFNGLLOADMATRIXDPROC glad_glLoadMatrixd;
2806+#define glLoadMatrixd glad_glLoadMatrixd
2807+typedef void (APIENTRYP PFNGLMATRIXMODEPROC)(GLenum mode);
2808+GLAPI PFNGLMATRIXMODEPROC glad_glMatrixMode;
2809+#define glMatrixMode glad_glMatrixMode
2810+typedef void (APIENTRYP PFNGLMULTMATRIXFPROC)(const GLfloat *m);
2811+GLAPI PFNGLMULTMATRIXFPROC glad_glMultMatrixf;
2812+#define glMultMatrixf glad_glMultMatrixf
2813+typedef void (APIENTRYP PFNGLMULTMATRIXDPROC)(const GLdouble *m);
2814+GLAPI PFNGLMULTMATRIXDPROC glad_glMultMatrixd;
2815+#define glMultMatrixd glad_glMultMatrixd
2816+typedef void (APIENTRYP PFNGLORTHOPROC)(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
2817+GLAPI PFNGLORTHOPROC glad_glOrtho;
2818+#define glOrtho glad_glOrtho
2819+typedef void (APIENTRYP PFNGLPOPMATRIXPROC)(void);
2820+GLAPI PFNGLPOPMATRIXPROC glad_glPopMatrix;
2821+#define glPopMatrix glad_glPopMatrix
2822+typedef void (APIENTRYP PFNGLPUSHMATRIXPROC)(void);
2823+GLAPI PFNGLPUSHMATRIXPROC glad_glPushMatrix;
2824+#define glPushMatrix glad_glPushMatrix
2825+typedef void (APIENTRYP PFNGLROTATEDPROC)(GLdouble angle, GLdouble x, GLdouble y, GLdouble z);
2826+GLAPI PFNGLROTATEDPROC glad_glRotated;
2827+#define glRotated glad_glRotated
2828+typedef void (APIENTRYP PFNGLROTATEFPROC)(GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
2829+GLAPI PFNGLROTATEFPROC glad_glRotatef;
2830+#define glRotatef glad_glRotatef
2831+typedef void (APIENTRYP PFNGLSCALEDPROC)(GLdouble x, GLdouble y, GLdouble z);
2832+GLAPI PFNGLSCALEDPROC glad_glScaled;
2833+#define glScaled glad_glScaled
2834+typedef void (APIENTRYP PFNGLSCALEFPROC)(GLfloat x, GLfloat y, GLfloat z);
2835+GLAPI PFNGLSCALEFPROC glad_glScalef;
2836+#define glScalef glad_glScalef
2837+typedef void (APIENTRYP PFNGLTRANSLATEDPROC)(GLdouble x, GLdouble y, GLdouble z);
2838+GLAPI PFNGLTRANSLATEDPROC glad_glTranslated;
2839+#define glTranslated glad_glTranslated
2840+typedef void (APIENTRYP PFNGLTRANSLATEFPROC)(GLfloat x, GLfloat y, GLfloat z);
2841+GLAPI PFNGLTRANSLATEFPROC glad_glTranslatef;
2842+#define glTranslatef glad_glTranslatef
2843+#endif
2844+#ifndef GL_VERSION_1_1
2845+#define GL_VERSION_1_1 1
2846+GLAPI int GLAD_GL_VERSION_1_1;
2847+typedef void (APIENTRYP PFNGLDRAWARRAYSPROC)(GLenum mode, GLint first, GLsizei count);
2848+GLAPI PFNGLDRAWARRAYSPROC glad_glDrawArrays;
2849+#define glDrawArrays glad_glDrawArrays
2850+typedef void (APIENTRYP PFNGLDRAWELEMENTSPROC)(GLenum mode, GLsizei count, GLenum type, const void *indices);
2851+GLAPI PFNGLDRAWELEMENTSPROC glad_glDrawElements;
2852+#define glDrawElements glad_glDrawElements
2853+typedef void (APIENTRYP PFNGLGETPOINTERVPROC)(GLenum pname, void **params);
2854+GLAPI PFNGLGETPOINTERVPROC glad_glGetPointerv;
2855+#define glGetPointerv glad_glGetPointerv
2856+typedef void (APIENTRYP PFNGLPOLYGONOFFSETPROC)(GLfloat factor, GLfloat units);
2857+GLAPI PFNGLPOLYGONOFFSETPROC glad_glPolygonOffset;
2858+#define glPolygonOffset glad_glPolygonOffset
2859+typedef void (APIENTRYP PFNGLCOPYTEXIMAGE1DPROC)(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border);
2860+GLAPI PFNGLCOPYTEXIMAGE1DPROC glad_glCopyTexImage1D;
2861+#define glCopyTexImage1D glad_glCopyTexImage1D
2862+typedef void (APIENTRYP PFNGLCOPYTEXIMAGE2DPROC)(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
2863+GLAPI PFNGLCOPYTEXIMAGE2DPROC glad_glCopyTexImage2D;
2864+#define glCopyTexImage2D glad_glCopyTexImage2D
2865+typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE1DPROC)(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
2866+GLAPI PFNGLCOPYTEXSUBIMAGE1DPROC glad_glCopyTexSubImage1D;
2867+#define glCopyTexSubImage1D glad_glCopyTexSubImage1D
2868+typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE2DPROC)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
2869+GLAPI PFNGLCOPYTEXSUBIMAGE2DPROC glad_glCopyTexSubImage2D;
2870+#define glCopyTexSubImage2D glad_glCopyTexSubImage2D
2871+typedef void (APIENTRYP PFNGLTEXSUBIMAGE1DPROC)(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels);
2872+GLAPI PFNGLTEXSUBIMAGE1DPROC glad_glTexSubImage1D;
2873+#define glTexSubImage1D glad_glTexSubImage1D
2874+typedef void (APIENTRYP PFNGLTEXSUBIMAGE2DPROC)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels);
2875+GLAPI PFNGLTEXSUBIMAGE2DPROC glad_glTexSubImage2D;
2876+#define glTexSubImage2D glad_glTexSubImage2D
2877+typedef void (APIENTRYP PFNGLBINDTEXTUREPROC)(GLenum target, GLuint texture);
2878+GLAPI PFNGLBINDTEXTUREPROC glad_glBindTexture;
2879+#define glBindTexture glad_glBindTexture
2880+typedef void (APIENTRYP PFNGLDELETETEXTURESPROC)(GLsizei n, const GLuint *textures);
2881+GLAPI PFNGLDELETETEXTURESPROC glad_glDeleteTextures;
2882+#define glDeleteTextures glad_glDeleteTextures
2883+typedef void (APIENTRYP PFNGLGENTEXTURESPROC)(GLsizei n, GLuint *textures);
2884+GLAPI PFNGLGENTEXTURESPROC glad_glGenTextures;
2885+#define glGenTextures glad_glGenTextures
2886+typedef GLboolean (APIENTRYP PFNGLISTEXTUREPROC)(GLuint texture);
2887+GLAPI PFNGLISTEXTUREPROC glad_glIsTexture;
2888+#define glIsTexture glad_glIsTexture
2889+typedef void (APIENTRYP PFNGLARRAYELEMENTPROC)(GLint i);
2890+GLAPI PFNGLARRAYELEMENTPROC glad_glArrayElement;
2891+#define glArrayElement glad_glArrayElement
2892+typedef void (APIENTRYP PFNGLCOLORPOINTERPROC)(GLint size, GLenum type, GLsizei stride, const void *pointer);
2893+GLAPI PFNGLCOLORPOINTERPROC glad_glColorPointer;
2894+#define glColorPointer glad_glColorPointer
2895+typedef void (APIENTRYP PFNGLDISABLECLIENTSTATEPROC)(GLenum array);
2896+GLAPI PFNGLDISABLECLIENTSTATEPROC glad_glDisableClientState;
2897+#define glDisableClientState glad_glDisableClientState
2898+typedef void (APIENTRYP PFNGLEDGEFLAGPOINTERPROC)(GLsizei stride, const void *pointer);
2899+GLAPI PFNGLEDGEFLAGPOINTERPROC glad_glEdgeFlagPointer;
2900+#define glEdgeFlagPointer glad_glEdgeFlagPointer
2901+typedef void (APIENTRYP PFNGLENABLECLIENTSTATEPROC)(GLenum array);
2902+GLAPI PFNGLENABLECLIENTSTATEPROC glad_glEnableClientState;
2903+#define glEnableClientState glad_glEnableClientState
2904+typedef void (APIENTRYP PFNGLINDEXPOINTERPROC)(GLenum type, GLsizei stride, const void *pointer);
2905+GLAPI PFNGLINDEXPOINTERPROC glad_glIndexPointer;
2906+#define glIndexPointer glad_glIndexPointer
2907+typedef void (APIENTRYP PFNGLINTERLEAVEDARRAYSPROC)(GLenum format, GLsizei stride, const void *pointer);
2908+GLAPI PFNGLINTERLEAVEDARRAYSPROC glad_glInterleavedArrays;
2909+#define glInterleavedArrays glad_glInterleavedArrays
2910+typedef void (APIENTRYP PFNGLNORMALPOINTERPROC)(GLenum type, GLsizei stride, const void *pointer);
2911+GLAPI PFNGLNORMALPOINTERPROC glad_glNormalPointer;
2912+#define glNormalPointer glad_glNormalPointer
2913+typedef void (APIENTRYP PFNGLTEXCOORDPOINTERPROC)(GLint size, GLenum type, GLsizei stride, const void *pointer);
2914+GLAPI PFNGLTEXCOORDPOINTERPROC glad_glTexCoordPointer;
2915+#define glTexCoordPointer glad_glTexCoordPointer
2916+typedef void (APIENTRYP PFNGLVERTEXPOINTERPROC)(GLint size, GLenum type, GLsizei stride, const void *pointer);
2917+GLAPI PFNGLVERTEXPOINTERPROC glad_glVertexPointer;
2918+#define glVertexPointer glad_glVertexPointer
2919+typedef GLboolean (APIENTRYP PFNGLARETEXTURESRESIDENTPROC)(GLsizei n, const GLuint *textures, GLboolean *residences);
2920+GLAPI PFNGLARETEXTURESRESIDENTPROC glad_glAreTexturesResident;
2921+#define glAreTexturesResident glad_glAreTexturesResident
2922+typedef void (APIENTRYP PFNGLPRIORITIZETEXTURESPROC)(GLsizei n, const GLuint *textures, const GLfloat *priorities);
2923+GLAPI PFNGLPRIORITIZETEXTURESPROC glad_glPrioritizeTextures;
2924+#define glPrioritizeTextures glad_glPrioritizeTextures
2925+typedef void (APIENTRYP PFNGLINDEXUBPROC)(GLubyte c);
2926+GLAPI PFNGLINDEXUBPROC glad_glIndexub;
2927+#define glIndexub glad_glIndexub
2928+typedef void (APIENTRYP PFNGLINDEXUBVPROC)(const GLubyte *c);
2929+GLAPI PFNGLINDEXUBVPROC glad_glIndexubv;
2930+#define glIndexubv glad_glIndexubv
2931+typedef void (APIENTRYP PFNGLPOPCLIENTATTRIBPROC)(void);
2932+GLAPI PFNGLPOPCLIENTATTRIBPROC glad_glPopClientAttrib;
2933+#define glPopClientAttrib glad_glPopClientAttrib
2934+typedef void (APIENTRYP PFNGLPUSHCLIENTATTRIBPROC)(GLbitfield mask);
2935+GLAPI PFNGLPUSHCLIENTATTRIBPROC glad_glPushClientAttrib;
2936+#define glPushClientAttrib glad_glPushClientAttrib
2937+#endif
2938+#ifndef GL_VERSION_1_2
2939+#define GL_VERSION_1_2 1
2940+GLAPI int GLAD_GL_VERSION_1_2;
2941+typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSPROC)(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices);
2942+GLAPI PFNGLDRAWRANGEELEMENTSPROC glad_glDrawRangeElements;
2943+#define glDrawRangeElements glad_glDrawRangeElements
2944+typedef void (APIENTRYP PFNGLTEXIMAGE3DPROC)(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels);
2945+GLAPI PFNGLTEXIMAGE3DPROC glad_glTexImage3D;
2946+#define glTexImage3D glad_glTexImage3D
2947+typedef void (APIENTRYP PFNGLTEXSUBIMAGE3DPROC)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels);
2948+GLAPI PFNGLTEXSUBIMAGE3DPROC glad_glTexSubImage3D;
2949+#define glTexSubImage3D glad_glTexSubImage3D
2950+typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE3DPROC)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
2951+GLAPI PFNGLCOPYTEXSUBIMAGE3DPROC glad_glCopyTexSubImage3D;
2952+#define glCopyTexSubImage3D glad_glCopyTexSubImage3D
2953+#endif
2954+#ifndef GL_VERSION_1_3
2955+#define GL_VERSION_1_3 1
2956+GLAPI int GLAD_GL_VERSION_1_3;
2957+typedef void (APIENTRYP PFNGLACTIVETEXTUREPROC)(GLenum texture);
2958+GLAPI PFNGLACTIVETEXTUREPROC glad_glActiveTexture;
2959+#define glActiveTexture glad_glActiveTexture
2960+typedef void (APIENTRYP PFNGLSAMPLECOVERAGEPROC)(GLfloat value, GLboolean invert);
2961+GLAPI PFNGLSAMPLECOVERAGEPROC glad_glSampleCoverage;
2962+#define glSampleCoverage glad_glSampleCoverage
2963+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DPROC)(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *data);
2964+GLAPI PFNGLCOMPRESSEDTEXIMAGE3DPROC glad_glCompressedTexImage3D;
2965+#define glCompressedTexImage3D glad_glCompressedTexImage3D
2966+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE2DPROC)(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data);
2967+GLAPI PFNGLCOMPRESSEDTEXIMAGE2DPROC glad_glCompressedTexImage2D;
2968+#define glCompressedTexImage2D glad_glCompressedTexImage2D
2969+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE1DPROC)(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *data);
2970+GLAPI PFNGLCOMPRESSEDTEXIMAGE1DPROC glad_glCompressedTexImage1D;
2971+#define glCompressedTexImage1D glad_glCompressedTexImage1D
2972+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data);
2973+GLAPI PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC glad_glCompressedTexSubImage3D;
2974+#define glCompressedTexSubImage3D glad_glCompressedTexSubImage3D
2975+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data);
2976+GLAPI PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC glad_glCompressedTexSubImage2D;
2977+#define glCompressedTexSubImage2D glad_glCompressedTexSubImage2D
2978+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC)(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data);
2979+GLAPI PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC glad_glCompressedTexSubImage1D;
2980+#define glCompressedTexSubImage1D glad_glCompressedTexSubImage1D
2981+typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXIMAGEPROC)(GLenum target, GLint level, void *img);
2982+GLAPI PFNGLGETCOMPRESSEDTEXIMAGEPROC glad_glGetCompressedTexImage;
2983+#define glGetCompressedTexImage glad_glGetCompressedTexImage
2984+typedef void (APIENTRYP PFNGLCLIENTACTIVETEXTUREPROC)(GLenum texture);
2985+GLAPI PFNGLCLIENTACTIVETEXTUREPROC glad_glClientActiveTexture;
2986+#define glClientActiveTexture glad_glClientActiveTexture
2987+typedef void (APIENTRYP PFNGLMULTITEXCOORD1DPROC)(GLenum target, GLdouble s);
2988+GLAPI PFNGLMULTITEXCOORD1DPROC glad_glMultiTexCoord1d;
2989+#define glMultiTexCoord1d glad_glMultiTexCoord1d
2990+typedef void (APIENTRYP PFNGLMULTITEXCOORD1DVPROC)(GLenum target, const GLdouble *v);
2991+GLAPI PFNGLMULTITEXCOORD1DVPROC glad_glMultiTexCoord1dv;
2992+#define glMultiTexCoord1dv glad_glMultiTexCoord1dv
2993+typedef void (APIENTRYP PFNGLMULTITEXCOORD1FPROC)(GLenum target, GLfloat s);
2994+GLAPI PFNGLMULTITEXCOORD1FPROC glad_glMultiTexCoord1f;
2995+#define glMultiTexCoord1f glad_glMultiTexCoord1f
2996+typedef void (APIENTRYP PFNGLMULTITEXCOORD1FVPROC)(GLenum target, const GLfloat *v);
2997+GLAPI PFNGLMULTITEXCOORD1FVPROC glad_glMultiTexCoord1fv;
2998+#define glMultiTexCoord1fv glad_glMultiTexCoord1fv
2999+typedef void (APIENTRYP PFNGLMULTITEXCOORD1IPROC)(GLenum target, GLint s);
3000+GLAPI PFNGLMULTITEXCOORD1IPROC glad_glMultiTexCoord1i;
3001+#define glMultiTexCoord1i glad_glMultiTexCoord1i
3002+typedef void (APIENTRYP PFNGLMULTITEXCOORD1IVPROC)(GLenum target, const GLint *v);
3003+GLAPI PFNGLMULTITEXCOORD1IVPROC glad_glMultiTexCoord1iv;
3004+#define glMultiTexCoord1iv glad_glMultiTexCoord1iv
3005+typedef void (APIENTRYP PFNGLMULTITEXCOORD1SPROC)(GLenum target, GLshort s);
3006+GLAPI PFNGLMULTITEXCOORD1SPROC glad_glMultiTexCoord1s;
3007+#define glMultiTexCoord1s glad_glMultiTexCoord1s
3008+typedef void (APIENTRYP PFNGLMULTITEXCOORD1SVPROC)(GLenum target, const GLshort *v);
3009+GLAPI PFNGLMULTITEXCOORD1SVPROC glad_glMultiTexCoord1sv;
3010+#define glMultiTexCoord1sv glad_glMultiTexCoord1sv
3011+typedef void (APIENTRYP PFNGLMULTITEXCOORD2DPROC)(GLenum target, GLdouble s, GLdouble t);
3012+GLAPI PFNGLMULTITEXCOORD2DPROC glad_glMultiTexCoord2d;
3013+#define glMultiTexCoord2d glad_glMultiTexCoord2d
3014+typedef void (APIENTRYP PFNGLMULTITEXCOORD2DVPROC)(GLenum target, const GLdouble *v);
3015+GLAPI PFNGLMULTITEXCOORD2DVPROC glad_glMultiTexCoord2dv;
3016+#define glMultiTexCoord2dv glad_glMultiTexCoord2dv
3017+typedef void (APIENTRYP PFNGLMULTITEXCOORD2FPROC)(GLenum target, GLfloat s, GLfloat t);
3018+GLAPI PFNGLMULTITEXCOORD2FPROC glad_glMultiTexCoord2f;
3019+#define glMultiTexCoord2f glad_glMultiTexCoord2f
3020+typedef void (APIENTRYP PFNGLMULTITEXCOORD2FVPROC)(GLenum target, const GLfloat *v);
3021+GLAPI PFNGLMULTITEXCOORD2FVPROC glad_glMultiTexCoord2fv;
3022+#define glMultiTexCoord2fv glad_glMultiTexCoord2fv
3023+typedef void (APIENTRYP PFNGLMULTITEXCOORD2IPROC)(GLenum target, GLint s, GLint t);
3024+GLAPI PFNGLMULTITEXCOORD2IPROC glad_glMultiTexCoord2i;
3025+#define glMultiTexCoord2i glad_glMultiTexCoord2i
3026+typedef void (APIENTRYP PFNGLMULTITEXCOORD2IVPROC)(GLenum target, const GLint *v);
3027+GLAPI PFNGLMULTITEXCOORD2IVPROC glad_glMultiTexCoord2iv;
3028+#define glMultiTexCoord2iv glad_glMultiTexCoord2iv
3029+typedef void (APIENTRYP PFNGLMULTITEXCOORD2SPROC)(GLenum target, GLshort s, GLshort t);
3030+GLAPI PFNGLMULTITEXCOORD2SPROC glad_glMultiTexCoord2s;
3031+#define glMultiTexCoord2s glad_glMultiTexCoord2s
3032+typedef void (APIENTRYP PFNGLMULTITEXCOORD2SVPROC)(GLenum target, const GLshort *v);
3033+GLAPI PFNGLMULTITEXCOORD2SVPROC glad_glMultiTexCoord2sv;
3034+#define glMultiTexCoord2sv glad_glMultiTexCoord2sv
3035+typedef void (APIENTRYP PFNGLMULTITEXCOORD3DPROC)(GLenum target, GLdouble s, GLdouble t, GLdouble r);
3036+GLAPI PFNGLMULTITEXCOORD3DPROC glad_glMultiTexCoord3d;
3037+#define glMultiTexCoord3d glad_glMultiTexCoord3d
3038+typedef void (APIENTRYP PFNGLMULTITEXCOORD3DVPROC)(GLenum target, const GLdouble *v);
3039+GLAPI PFNGLMULTITEXCOORD3DVPROC glad_glMultiTexCoord3dv;
3040+#define glMultiTexCoord3dv glad_glMultiTexCoord3dv
3041+typedef void (APIENTRYP PFNGLMULTITEXCOORD3FPROC)(GLenum target, GLfloat s, GLfloat t, GLfloat r);
3042+GLAPI PFNGLMULTITEXCOORD3FPROC glad_glMultiTexCoord3f;
3043+#define glMultiTexCoord3f glad_glMultiTexCoord3f
3044+typedef void (APIENTRYP PFNGLMULTITEXCOORD3FVPROC)(GLenum target, const GLfloat *v);
3045+GLAPI PFNGLMULTITEXCOORD3FVPROC glad_glMultiTexCoord3fv;
3046+#define glMultiTexCoord3fv glad_glMultiTexCoord3fv
3047+typedef void (APIENTRYP PFNGLMULTITEXCOORD3IPROC)(GLenum target, GLint s, GLint t, GLint r);
3048+GLAPI PFNGLMULTITEXCOORD3IPROC glad_glMultiTexCoord3i;
3049+#define glMultiTexCoord3i glad_glMultiTexCoord3i
3050+typedef void (APIENTRYP PFNGLMULTITEXCOORD3IVPROC)(GLenum target, const GLint *v);
3051+GLAPI PFNGLMULTITEXCOORD3IVPROC glad_glMultiTexCoord3iv;
3052+#define glMultiTexCoord3iv glad_glMultiTexCoord3iv
3053+typedef void (APIENTRYP PFNGLMULTITEXCOORD3SPROC)(GLenum target, GLshort s, GLshort t, GLshort r);
3054+GLAPI PFNGLMULTITEXCOORD3SPROC glad_glMultiTexCoord3s;
3055+#define glMultiTexCoord3s glad_glMultiTexCoord3s
3056+typedef void (APIENTRYP PFNGLMULTITEXCOORD3SVPROC)(GLenum target, const GLshort *v);
3057+GLAPI PFNGLMULTITEXCOORD3SVPROC glad_glMultiTexCoord3sv;
3058+#define glMultiTexCoord3sv glad_glMultiTexCoord3sv
3059+typedef void (APIENTRYP PFNGLMULTITEXCOORD4DPROC)(GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
3060+GLAPI PFNGLMULTITEXCOORD4DPROC glad_glMultiTexCoord4d;
3061+#define glMultiTexCoord4d glad_glMultiTexCoord4d
3062+typedef void (APIENTRYP PFNGLMULTITEXCOORD4DVPROC)(GLenum target, const GLdouble *v);
3063+GLAPI PFNGLMULTITEXCOORD4DVPROC glad_glMultiTexCoord4dv;
3064+#define glMultiTexCoord4dv glad_glMultiTexCoord4dv
3065+typedef void (APIENTRYP PFNGLMULTITEXCOORD4FPROC)(GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
3066+GLAPI PFNGLMULTITEXCOORD4FPROC glad_glMultiTexCoord4f;
3067+#define glMultiTexCoord4f glad_glMultiTexCoord4f
3068+typedef void (APIENTRYP PFNGLMULTITEXCOORD4FVPROC)(GLenum target, const GLfloat *v);
3069+GLAPI PFNGLMULTITEXCOORD4FVPROC glad_glMultiTexCoord4fv;
3070+#define glMultiTexCoord4fv glad_glMultiTexCoord4fv
3071+typedef void (APIENTRYP PFNGLMULTITEXCOORD4IPROC)(GLenum target, GLint s, GLint t, GLint r, GLint q);
3072+GLAPI PFNGLMULTITEXCOORD4IPROC glad_glMultiTexCoord4i;
3073+#define glMultiTexCoord4i glad_glMultiTexCoord4i
3074+typedef void (APIENTRYP PFNGLMULTITEXCOORD4IVPROC)(GLenum target, const GLint *v);
3075+GLAPI PFNGLMULTITEXCOORD4IVPROC glad_glMultiTexCoord4iv;
3076+#define glMultiTexCoord4iv glad_glMultiTexCoord4iv
3077+typedef void (APIENTRYP PFNGLMULTITEXCOORD4SPROC)(GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
3078+GLAPI PFNGLMULTITEXCOORD4SPROC glad_glMultiTexCoord4s;
3079+#define glMultiTexCoord4s glad_glMultiTexCoord4s
3080+typedef void (APIENTRYP PFNGLMULTITEXCOORD4SVPROC)(GLenum target, const GLshort *v);
3081+GLAPI PFNGLMULTITEXCOORD4SVPROC glad_glMultiTexCoord4sv;
3082+#define glMultiTexCoord4sv glad_glMultiTexCoord4sv
3083+typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXFPROC)(const GLfloat *m);
3084+GLAPI PFNGLLOADTRANSPOSEMATRIXFPROC glad_glLoadTransposeMatrixf;
3085+#define glLoadTransposeMatrixf glad_glLoadTransposeMatrixf
3086+typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXDPROC)(const GLdouble *m);
3087+GLAPI PFNGLLOADTRANSPOSEMATRIXDPROC glad_glLoadTransposeMatrixd;
3088+#define glLoadTransposeMatrixd glad_glLoadTransposeMatrixd
3089+typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXFPROC)(const GLfloat *m);
3090+GLAPI PFNGLMULTTRANSPOSEMATRIXFPROC glad_glMultTransposeMatrixf;
3091+#define glMultTransposeMatrixf glad_glMultTransposeMatrixf
3092+typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXDPROC)(const GLdouble *m);
3093+GLAPI PFNGLMULTTRANSPOSEMATRIXDPROC glad_glMultTransposeMatrixd;
3094+#define glMultTransposeMatrixd glad_glMultTransposeMatrixd
3095+#endif
3096+#ifndef GL_VERSION_1_4
3097+#define GL_VERSION_1_4 1
3098+GLAPI int GLAD_GL_VERSION_1_4;
3099+typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEPROC)(GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
3100+GLAPI PFNGLBLENDFUNCSEPARATEPROC glad_glBlendFuncSeparate;
3101+#define glBlendFuncSeparate glad_glBlendFuncSeparate
3102+typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSPROC)(GLenum mode, const GLint *first, const GLsizei *count, GLsizei drawcount);
3103+GLAPI PFNGLMULTIDRAWARRAYSPROC glad_glMultiDrawArrays;
3104+#define glMultiDrawArrays glad_glMultiDrawArrays
3105+typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSPROC)(GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei drawcount);
3106+GLAPI PFNGLMULTIDRAWELEMENTSPROC glad_glMultiDrawElements;
3107+#define glMultiDrawElements glad_glMultiDrawElements
3108+typedef void (APIENTRYP PFNGLPOINTPARAMETERFPROC)(GLenum pname, GLfloat param);
3109+GLAPI PFNGLPOINTPARAMETERFPROC glad_glPointParameterf;
3110+#define glPointParameterf glad_glPointParameterf
3111+typedef void (APIENTRYP PFNGLPOINTPARAMETERFVPROC)(GLenum pname, const GLfloat *params);
3112+GLAPI PFNGLPOINTPARAMETERFVPROC glad_glPointParameterfv;
3113+#define glPointParameterfv glad_glPointParameterfv
3114+typedef void (APIENTRYP PFNGLPOINTPARAMETERIPROC)(GLenum pname, GLint param);
3115+GLAPI PFNGLPOINTPARAMETERIPROC glad_glPointParameteri;
3116+#define glPointParameteri glad_glPointParameteri
3117+typedef void (APIENTRYP PFNGLPOINTPARAMETERIVPROC)(GLenum pname, const GLint *params);
3118+GLAPI PFNGLPOINTPARAMETERIVPROC glad_glPointParameteriv;
3119+#define glPointParameteriv glad_glPointParameteriv
3120+typedef void (APIENTRYP PFNGLFOGCOORDFPROC)(GLfloat coord);
3121+GLAPI PFNGLFOGCOORDFPROC glad_glFogCoordf;
3122+#define glFogCoordf glad_glFogCoordf
3123+typedef void (APIENTRYP PFNGLFOGCOORDFVPROC)(const GLfloat *coord);
3124+GLAPI PFNGLFOGCOORDFVPROC glad_glFogCoordfv;
3125+#define glFogCoordfv glad_glFogCoordfv
3126+typedef void (APIENTRYP PFNGLFOGCOORDDPROC)(GLdouble coord);
3127+GLAPI PFNGLFOGCOORDDPROC glad_glFogCoordd;
3128+#define glFogCoordd glad_glFogCoordd
3129+typedef void (APIENTRYP PFNGLFOGCOORDDVPROC)(const GLdouble *coord);
3130+GLAPI PFNGLFOGCOORDDVPROC glad_glFogCoorddv;
3131+#define glFogCoorddv glad_glFogCoorddv
3132+typedef void (APIENTRYP PFNGLFOGCOORDPOINTERPROC)(GLenum type, GLsizei stride, const void *pointer);
3133+GLAPI PFNGLFOGCOORDPOINTERPROC glad_glFogCoordPointer;
3134+#define glFogCoordPointer glad_glFogCoordPointer
3135+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BPROC)(GLbyte red, GLbyte green, GLbyte blue);
3136+GLAPI PFNGLSECONDARYCOLOR3BPROC glad_glSecondaryColor3b;
3137+#define glSecondaryColor3b glad_glSecondaryColor3b
3138+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BVPROC)(const GLbyte *v);
3139+GLAPI PFNGLSECONDARYCOLOR3BVPROC glad_glSecondaryColor3bv;
3140+#define glSecondaryColor3bv glad_glSecondaryColor3bv
3141+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DPROC)(GLdouble red, GLdouble green, GLdouble blue);
3142+GLAPI PFNGLSECONDARYCOLOR3DPROC glad_glSecondaryColor3d;
3143+#define glSecondaryColor3d glad_glSecondaryColor3d
3144+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DVPROC)(const GLdouble *v);
3145+GLAPI PFNGLSECONDARYCOLOR3DVPROC glad_glSecondaryColor3dv;
3146+#define glSecondaryColor3dv glad_glSecondaryColor3dv
3147+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FPROC)(GLfloat red, GLfloat green, GLfloat blue);
3148+GLAPI PFNGLSECONDARYCOLOR3FPROC glad_glSecondaryColor3f;
3149+#define glSecondaryColor3f glad_glSecondaryColor3f
3150+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FVPROC)(const GLfloat *v);
3151+GLAPI PFNGLSECONDARYCOLOR3FVPROC glad_glSecondaryColor3fv;
3152+#define glSecondaryColor3fv glad_glSecondaryColor3fv
3153+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IPROC)(GLint red, GLint green, GLint blue);
3154+GLAPI PFNGLSECONDARYCOLOR3IPROC glad_glSecondaryColor3i;
3155+#define glSecondaryColor3i glad_glSecondaryColor3i
3156+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IVPROC)(const GLint *v);
3157+GLAPI PFNGLSECONDARYCOLOR3IVPROC glad_glSecondaryColor3iv;
3158+#define glSecondaryColor3iv glad_glSecondaryColor3iv
3159+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SPROC)(GLshort red, GLshort green, GLshort blue);
3160+GLAPI PFNGLSECONDARYCOLOR3SPROC glad_glSecondaryColor3s;
3161+#define glSecondaryColor3s glad_glSecondaryColor3s
3162+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SVPROC)(const GLshort *v);
3163+GLAPI PFNGLSECONDARYCOLOR3SVPROC glad_glSecondaryColor3sv;
3164+#define glSecondaryColor3sv glad_glSecondaryColor3sv
3165+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBPROC)(GLubyte red, GLubyte green, GLubyte blue);
3166+GLAPI PFNGLSECONDARYCOLOR3UBPROC glad_glSecondaryColor3ub;
3167+#define glSecondaryColor3ub glad_glSecondaryColor3ub
3168+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBVPROC)(const GLubyte *v);
3169+GLAPI PFNGLSECONDARYCOLOR3UBVPROC glad_glSecondaryColor3ubv;
3170+#define glSecondaryColor3ubv glad_glSecondaryColor3ubv
3171+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIPROC)(GLuint red, GLuint green, GLuint blue);
3172+GLAPI PFNGLSECONDARYCOLOR3UIPROC glad_glSecondaryColor3ui;
3173+#define glSecondaryColor3ui glad_glSecondaryColor3ui
3174+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIVPROC)(const GLuint *v);
3175+GLAPI PFNGLSECONDARYCOLOR3UIVPROC glad_glSecondaryColor3uiv;
3176+#define glSecondaryColor3uiv glad_glSecondaryColor3uiv
3177+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USPROC)(GLushort red, GLushort green, GLushort blue);
3178+GLAPI PFNGLSECONDARYCOLOR3USPROC glad_glSecondaryColor3us;
3179+#define glSecondaryColor3us glad_glSecondaryColor3us
3180+typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USVPROC)(const GLushort *v);
3181+GLAPI PFNGLSECONDARYCOLOR3USVPROC glad_glSecondaryColor3usv;
3182+#define glSecondaryColor3usv glad_glSecondaryColor3usv
3183+typedef void (APIENTRYP PFNGLSECONDARYCOLORPOINTERPROC)(GLint size, GLenum type, GLsizei stride, const void *pointer);
3184+GLAPI PFNGLSECONDARYCOLORPOINTERPROC glad_glSecondaryColorPointer;
3185+#define glSecondaryColorPointer glad_glSecondaryColorPointer
3186+typedef void (APIENTRYP PFNGLWINDOWPOS2DPROC)(GLdouble x, GLdouble y);
3187+GLAPI PFNGLWINDOWPOS2DPROC glad_glWindowPos2d;
3188+#define glWindowPos2d glad_glWindowPos2d
3189+typedef void (APIENTRYP PFNGLWINDOWPOS2DVPROC)(const GLdouble *v);
3190+GLAPI PFNGLWINDOWPOS2DVPROC glad_glWindowPos2dv;
3191+#define glWindowPos2dv glad_glWindowPos2dv
3192+typedef void (APIENTRYP PFNGLWINDOWPOS2FPROC)(GLfloat x, GLfloat y);
3193+GLAPI PFNGLWINDOWPOS2FPROC glad_glWindowPos2f;
3194+#define glWindowPos2f glad_glWindowPos2f
3195+typedef void (APIENTRYP PFNGLWINDOWPOS2FVPROC)(const GLfloat *v);
3196+GLAPI PFNGLWINDOWPOS2FVPROC glad_glWindowPos2fv;
3197+#define glWindowPos2fv glad_glWindowPos2fv
3198+typedef void (APIENTRYP PFNGLWINDOWPOS2IPROC)(GLint x, GLint y);
3199+GLAPI PFNGLWINDOWPOS2IPROC glad_glWindowPos2i;
3200+#define glWindowPos2i glad_glWindowPos2i
3201+typedef void (APIENTRYP PFNGLWINDOWPOS2IVPROC)(const GLint *v);
3202+GLAPI PFNGLWINDOWPOS2IVPROC glad_glWindowPos2iv;
3203+#define glWindowPos2iv glad_glWindowPos2iv
3204+typedef void (APIENTRYP PFNGLWINDOWPOS2SPROC)(GLshort x, GLshort y);
3205+GLAPI PFNGLWINDOWPOS2SPROC glad_glWindowPos2s;
3206+#define glWindowPos2s glad_glWindowPos2s
3207+typedef void (APIENTRYP PFNGLWINDOWPOS2SVPROC)(const GLshort *v);
3208+GLAPI PFNGLWINDOWPOS2SVPROC glad_glWindowPos2sv;
3209+#define glWindowPos2sv glad_glWindowPos2sv
3210+typedef void (APIENTRYP PFNGLWINDOWPOS3DPROC)(GLdouble x, GLdouble y, GLdouble z);
3211+GLAPI PFNGLWINDOWPOS3DPROC glad_glWindowPos3d;
3212+#define glWindowPos3d glad_glWindowPos3d
3213+typedef void (APIENTRYP PFNGLWINDOWPOS3DVPROC)(const GLdouble *v);
3214+GLAPI PFNGLWINDOWPOS3DVPROC glad_glWindowPos3dv;
3215+#define glWindowPos3dv glad_glWindowPos3dv
3216+typedef void (APIENTRYP PFNGLWINDOWPOS3FPROC)(GLfloat x, GLfloat y, GLfloat z);
3217+GLAPI PFNGLWINDOWPOS3FPROC glad_glWindowPos3f;
3218+#define glWindowPos3f glad_glWindowPos3f
3219+typedef void (APIENTRYP PFNGLWINDOWPOS3FVPROC)(const GLfloat *v);
3220+GLAPI PFNGLWINDOWPOS3FVPROC glad_glWindowPos3fv;
3221+#define glWindowPos3fv glad_glWindowPos3fv
3222+typedef void (APIENTRYP PFNGLWINDOWPOS3IPROC)(GLint x, GLint y, GLint z);
3223+GLAPI PFNGLWINDOWPOS3IPROC glad_glWindowPos3i;
3224+#define glWindowPos3i glad_glWindowPos3i
3225+typedef void (APIENTRYP PFNGLWINDOWPOS3IVPROC)(const GLint *v);
3226+GLAPI PFNGLWINDOWPOS3IVPROC glad_glWindowPos3iv;
3227+#define glWindowPos3iv glad_glWindowPos3iv
3228+typedef void (APIENTRYP PFNGLWINDOWPOS3SPROC)(GLshort x, GLshort y, GLshort z);
3229+GLAPI PFNGLWINDOWPOS3SPROC glad_glWindowPos3s;
3230+#define glWindowPos3s glad_glWindowPos3s
3231+typedef void (APIENTRYP PFNGLWINDOWPOS3SVPROC)(const GLshort *v);
3232+GLAPI PFNGLWINDOWPOS3SVPROC glad_glWindowPos3sv;
3233+#define glWindowPos3sv glad_glWindowPos3sv
3234+typedef void (APIENTRYP PFNGLBLENDCOLORPROC)(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
3235+GLAPI PFNGLBLENDCOLORPROC glad_glBlendColor;
3236+#define glBlendColor glad_glBlendColor
3237+typedef void (APIENTRYP PFNGLBLENDEQUATIONPROC)(GLenum mode);
3238+GLAPI PFNGLBLENDEQUATIONPROC glad_glBlendEquation;
3239+#define glBlendEquation glad_glBlendEquation
3240+#endif
3241+#ifndef GL_VERSION_1_5
3242+#define GL_VERSION_1_5 1
3243+GLAPI int GLAD_GL_VERSION_1_5;
3244+typedef void (APIENTRYP PFNGLGENQUERIESPROC)(GLsizei n, GLuint *ids);
3245+GLAPI PFNGLGENQUERIESPROC glad_glGenQueries;
3246+#define glGenQueries glad_glGenQueries
3247+typedef void (APIENTRYP PFNGLDELETEQUERIESPROC)(GLsizei n, const GLuint *ids);
3248+GLAPI PFNGLDELETEQUERIESPROC glad_glDeleteQueries;
3249+#define glDeleteQueries glad_glDeleteQueries
3250+typedef GLboolean (APIENTRYP PFNGLISQUERYPROC)(GLuint id);
3251+GLAPI PFNGLISQUERYPROC glad_glIsQuery;
3252+#define glIsQuery glad_glIsQuery
3253+typedef void (APIENTRYP PFNGLBEGINQUERYPROC)(GLenum target, GLuint id);
3254+GLAPI PFNGLBEGINQUERYPROC glad_glBeginQuery;
3255+#define glBeginQuery glad_glBeginQuery
3256+typedef void (APIENTRYP PFNGLENDQUERYPROC)(GLenum target);
3257+GLAPI PFNGLENDQUERYPROC glad_glEndQuery;
3258+#define glEndQuery glad_glEndQuery
3259+typedef void (APIENTRYP PFNGLGETQUERYIVPROC)(GLenum target, GLenum pname, GLint *params);
3260+GLAPI PFNGLGETQUERYIVPROC glad_glGetQueryiv;
3261+#define glGetQueryiv glad_glGetQueryiv
3262+typedef void (APIENTRYP PFNGLGETQUERYOBJECTIVPROC)(GLuint id, GLenum pname, GLint *params);
3263+GLAPI PFNGLGETQUERYOBJECTIVPROC glad_glGetQueryObjectiv;
3264+#define glGetQueryObjectiv glad_glGetQueryObjectiv
3265+typedef void (APIENTRYP PFNGLGETQUERYOBJECTUIVPROC)(GLuint id, GLenum pname, GLuint *params);
3266+GLAPI PFNGLGETQUERYOBJECTUIVPROC glad_glGetQueryObjectuiv;
3267+#define glGetQueryObjectuiv glad_glGetQueryObjectuiv
3268+typedef void (APIENTRYP PFNGLBINDBUFFERPROC)(GLenum target, GLuint buffer);
3269+GLAPI PFNGLBINDBUFFERPROC glad_glBindBuffer;
3270+#define glBindBuffer glad_glBindBuffer
3271+typedef void (APIENTRYP PFNGLDELETEBUFFERSPROC)(GLsizei n, const GLuint *buffers);
3272+GLAPI PFNGLDELETEBUFFERSPROC glad_glDeleteBuffers;
3273+#define glDeleteBuffers glad_glDeleteBuffers
3274+typedef void (APIENTRYP PFNGLGENBUFFERSPROC)(GLsizei n, GLuint *buffers);
3275+GLAPI PFNGLGENBUFFERSPROC glad_glGenBuffers;
3276+#define glGenBuffers glad_glGenBuffers
3277+typedef GLboolean (APIENTRYP PFNGLISBUFFERPROC)(GLuint buffer);
3278+GLAPI PFNGLISBUFFERPROC glad_glIsBuffer;
3279+#define glIsBuffer glad_glIsBuffer
3280+typedef void (APIENTRYP PFNGLBUFFERDATAPROC)(GLenum target, GLsizeiptr size, const void *data, GLenum usage);
3281+GLAPI PFNGLBUFFERDATAPROC glad_glBufferData;
3282+#define glBufferData glad_glBufferData
3283+typedef void (APIENTRYP PFNGLBUFFERSUBDATAPROC)(GLenum target, GLintptr offset, GLsizeiptr size, const void *data);
3284+GLAPI PFNGLBUFFERSUBDATAPROC glad_glBufferSubData;
3285+#define glBufferSubData glad_glBufferSubData
3286+typedef void (APIENTRYP PFNGLGETBUFFERSUBDATAPROC)(GLenum target, GLintptr offset, GLsizeiptr size, void *data);
3287+GLAPI PFNGLGETBUFFERSUBDATAPROC glad_glGetBufferSubData;
3288+#define glGetBufferSubData glad_glGetBufferSubData
3289+typedef void * (APIENTRYP PFNGLMAPBUFFERPROC)(GLenum target, GLenum access);
3290+GLAPI PFNGLMAPBUFFERPROC glad_glMapBuffer;
3291+#define glMapBuffer glad_glMapBuffer
3292+typedef GLboolean (APIENTRYP PFNGLUNMAPBUFFERPROC)(GLenum target);
3293+GLAPI PFNGLUNMAPBUFFERPROC glad_glUnmapBuffer;
3294+#define glUnmapBuffer glad_glUnmapBuffer
3295+typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERIVPROC)(GLenum target, GLenum pname, GLint *params);
3296+GLAPI PFNGLGETBUFFERPARAMETERIVPROC glad_glGetBufferParameteriv;
3297+#define glGetBufferParameteriv glad_glGetBufferParameteriv
3298+typedef void (APIENTRYP PFNGLGETBUFFERPOINTERVPROC)(GLenum target, GLenum pname, void **params);
3299+GLAPI PFNGLGETBUFFERPOINTERVPROC glad_glGetBufferPointerv;
3300+#define glGetBufferPointerv glad_glGetBufferPointerv
3301+#endif
3302+#ifndef GL_VERSION_2_0
3303+#define GL_VERSION_2_0 1
3304+GLAPI int GLAD_GL_VERSION_2_0;
3305+typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEPROC)(GLenum modeRGB, GLenum modeAlpha);
3306+GLAPI PFNGLBLENDEQUATIONSEPARATEPROC glad_glBlendEquationSeparate;
3307+#define glBlendEquationSeparate glad_glBlendEquationSeparate
3308+typedef void (APIENTRYP PFNGLDRAWBUFFERSPROC)(GLsizei n, const GLenum *bufs);
3309+GLAPI PFNGLDRAWBUFFERSPROC glad_glDrawBuffers;
3310+#define glDrawBuffers glad_glDrawBuffers
3311+typedef void (APIENTRYP PFNGLSTENCILOPSEPARATEPROC)(GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
3312+GLAPI PFNGLSTENCILOPSEPARATEPROC glad_glStencilOpSeparate;
3313+#define glStencilOpSeparate glad_glStencilOpSeparate
3314+typedef void (APIENTRYP PFNGLSTENCILFUNCSEPARATEPROC)(GLenum face, GLenum func, GLint ref, GLuint mask);
3315+GLAPI PFNGLSTENCILFUNCSEPARATEPROC glad_glStencilFuncSeparate;
3316+#define glStencilFuncSeparate glad_glStencilFuncSeparate
3317+typedef void (APIENTRYP PFNGLSTENCILMASKSEPARATEPROC)(GLenum face, GLuint mask);
3318+GLAPI PFNGLSTENCILMASKSEPARATEPROC glad_glStencilMaskSeparate;
3319+#define glStencilMaskSeparate glad_glStencilMaskSeparate
3320+typedef void (APIENTRYP PFNGLATTACHSHADERPROC)(GLuint program, GLuint shader);
3321+GLAPI PFNGLATTACHSHADERPROC glad_glAttachShader;
3322+#define glAttachShader glad_glAttachShader
3323+typedef void (APIENTRYP PFNGLBINDATTRIBLOCATIONPROC)(GLuint program, GLuint index, const GLchar *name);
3324+GLAPI PFNGLBINDATTRIBLOCATIONPROC glad_glBindAttribLocation;
3325+#define glBindAttribLocation glad_glBindAttribLocation
3326+typedef void (APIENTRYP PFNGLCOMPILESHADERPROC)(GLuint shader);
3327+GLAPI PFNGLCOMPILESHADERPROC glad_glCompileShader;
3328+#define glCompileShader glad_glCompileShader
3329+typedef GLuint (APIENTRYP PFNGLCREATEPROGRAMPROC)(void);
3330+GLAPI PFNGLCREATEPROGRAMPROC glad_glCreateProgram;
3331+#define glCreateProgram glad_glCreateProgram
3332+typedef GLuint (APIENTRYP PFNGLCREATESHADERPROC)(GLenum type);
3333+GLAPI PFNGLCREATESHADERPROC glad_glCreateShader;
3334+#define glCreateShader glad_glCreateShader
3335+typedef void (APIENTRYP PFNGLDELETEPROGRAMPROC)(GLuint program);
3336+GLAPI PFNGLDELETEPROGRAMPROC glad_glDeleteProgram;
3337+#define glDeleteProgram glad_glDeleteProgram
3338+typedef void (APIENTRYP PFNGLDELETESHADERPROC)(GLuint shader);
3339+GLAPI PFNGLDELETESHADERPROC glad_glDeleteShader;
3340+#define glDeleteShader glad_glDeleteShader
3341+typedef void (APIENTRYP PFNGLDETACHSHADERPROC)(GLuint program, GLuint shader);
3342+GLAPI PFNGLDETACHSHADERPROC glad_glDetachShader;
3343+#define glDetachShader glad_glDetachShader
3344+typedef void (APIENTRYP PFNGLDISABLEVERTEXATTRIBARRAYPROC)(GLuint index);
3345+GLAPI PFNGLDISABLEVERTEXATTRIBARRAYPROC glad_glDisableVertexAttribArray;
3346+#define glDisableVertexAttribArray glad_glDisableVertexAttribArray
3347+typedef void (APIENTRYP PFNGLENABLEVERTEXATTRIBARRAYPROC)(GLuint index);
3348+GLAPI PFNGLENABLEVERTEXATTRIBARRAYPROC glad_glEnableVertexAttribArray;
3349+#define glEnableVertexAttribArray glad_glEnableVertexAttribArray
3350+typedef void (APIENTRYP PFNGLGETACTIVEATTRIBPROC)(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
3351+GLAPI PFNGLGETACTIVEATTRIBPROC glad_glGetActiveAttrib;
3352+#define glGetActiveAttrib glad_glGetActiveAttrib
3353+typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMPROC)(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
3354+GLAPI PFNGLGETACTIVEUNIFORMPROC glad_glGetActiveUniform;
3355+#define glGetActiveUniform glad_glGetActiveUniform
3356+typedef void (APIENTRYP PFNGLGETATTACHEDSHADERSPROC)(GLuint program, GLsizei maxCount, GLsizei *count, GLuint *shaders);
3357+GLAPI PFNGLGETATTACHEDSHADERSPROC glad_glGetAttachedShaders;
3358+#define glGetAttachedShaders glad_glGetAttachedShaders
3359+typedef GLint (APIENTRYP PFNGLGETATTRIBLOCATIONPROC)(GLuint program, const GLchar *name);
3360+GLAPI PFNGLGETATTRIBLOCATIONPROC glad_glGetAttribLocation;
3361+#define glGetAttribLocation glad_glGetAttribLocation
3362+typedef void (APIENTRYP PFNGLGETPROGRAMIVPROC)(GLuint program, GLenum pname, GLint *params);
3363+GLAPI PFNGLGETPROGRAMIVPROC glad_glGetProgramiv;
3364+#define glGetProgramiv glad_glGetProgramiv
3365+typedef void (APIENTRYP PFNGLGETPROGRAMINFOLOGPROC)(GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
3366+GLAPI PFNGLGETPROGRAMINFOLOGPROC glad_glGetProgramInfoLog;
3367+#define glGetProgramInfoLog glad_glGetProgramInfoLog
3368+typedef void (APIENTRYP PFNGLGETSHADERIVPROC)(GLuint shader, GLenum pname, GLint *params);
3369+GLAPI PFNGLGETSHADERIVPROC glad_glGetShaderiv;
3370+#define glGetShaderiv glad_glGetShaderiv
3371+typedef void (APIENTRYP PFNGLGETSHADERINFOLOGPROC)(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
3372+GLAPI PFNGLGETSHADERINFOLOGPROC glad_glGetShaderInfoLog;
3373+#define glGetShaderInfoLog glad_glGetShaderInfoLog
3374+typedef void (APIENTRYP PFNGLGETSHADERSOURCEPROC)(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source);
3375+GLAPI PFNGLGETSHADERSOURCEPROC glad_glGetShaderSource;
3376+#define glGetShaderSource glad_glGetShaderSource
3377+typedef GLint (APIENTRYP PFNGLGETUNIFORMLOCATIONPROC)(GLuint program, const GLchar *name);
3378+GLAPI PFNGLGETUNIFORMLOCATIONPROC glad_glGetUniformLocation;
3379+#define glGetUniformLocation glad_glGetUniformLocation
3380+typedef void (APIENTRYP PFNGLGETUNIFORMFVPROC)(GLuint program, GLint location, GLfloat *params);
3381+GLAPI PFNGLGETUNIFORMFVPROC glad_glGetUniformfv;
3382+#define glGetUniformfv glad_glGetUniformfv
3383+typedef void (APIENTRYP PFNGLGETUNIFORMIVPROC)(GLuint program, GLint location, GLint *params);
3384+GLAPI PFNGLGETUNIFORMIVPROC glad_glGetUniformiv;
3385+#define glGetUniformiv glad_glGetUniformiv
3386+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBDVPROC)(GLuint index, GLenum pname, GLdouble *params);
3387+GLAPI PFNGLGETVERTEXATTRIBDVPROC glad_glGetVertexAttribdv;
3388+#define glGetVertexAttribdv glad_glGetVertexAttribdv
3389+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBFVPROC)(GLuint index, GLenum pname, GLfloat *params);
3390+GLAPI PFNGLGETVERTEXATTRIBFVPROC glad_glGetVertexAttribfv;
3391+#define glGetVertexAttribfv glad_glGetVertexAttribfv
3392+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIVPROC)(GLuint index, GLenum pname, GLint *params);
3393+GLAPI PFNGLGETVERTEXATTRIBIVPROC glad_glGetVertexAttribiv;
3394+#define glGetVertexAttribiv glad_glGetVertexAttribiv
3395+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVPROC)(GLuint index, GLenum pname, void **pointer);
3396+GLAPI PFNGLGETVERTEXATTRIBPOINTERVPROC glad_glGetVertexAttribPointerv;
3397+#define glGetVertexAttribPointerv glad_glGetVertexAttribPointerv
3398+typedef GLboolean (APIENTRYP PFNGLISPROGRAMPROC)(GLuint program);
3399+GLAPI PFNGLISPROGRAMPROC glad_glIsProgram;
3400+#define glIsProgram glad_glIsProgram
3401+typedef GLboolean (APIENTRYP PFNGLISSHADERPROC)(GLuint shader);
3402+GLAPI PFNGLISSHADERPROC glad_glIsShader;
3403+#define glIsShader glad_glIsShader
3404+typedef void (APIENTRYP PFNGLLINKPROGRAMPROC)(GLuint program);
3405+GLAPI PFNGLLINKPROGRAMPROC glad_glLinkProgram;
3406+#define glLinkProgram glad_glLinkProgram
3407+typedef void (APIENTRYP PFNGLSHADERSOURCEPROC)(GLuint shader, GLsizei count, const GLchar *const*string, const GLint *length);
3408+GLAPI PFNGLSHADERSOURCEPROC glad_glShaderSource;
3409+#define glShaderSource glad_glShaderSource
3410+typedef void (APIENTRYP PFNGLUSEPROGRAMPROC)(GLuint program);
3411+GLAPI PFNGLUSEPROGRAMPROC glad_glUseProgram;
3412+#define glUseProgram glad_glUseProgram
3413+typedef void (APIENTRYP PFNGLUNIFORM1FPROC)(GLint location, GLfloat v0);
3414+GLAPI PFNGLUNIFORM1FPROC glad_glUniform1f;
3415+#define glUniform1f glad_glUniform1f
3416+typedef void (APIENTRYP PFNGLUNIFORM2FPROC)(GLint location, GLfloat v0, GLfloat v1);
3417+GLAPI PFNGLUNIFORM2FPROC glad_glUniform2f;
3418+#define glUniform2f glad_glUniform2f
3419+typedef void (APIENTRYP PFNGLUNIFORM3FPROC)(GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
3420+GLAPI PFNGLUNIFORM3FPROC glad_glUniform3f;
3421+#define glUniform3f glad_glUniform3f
3422+typedef void (APIENTRYP PFNGLUNIFORM4FPROC)(GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
3423+GLAPI PFNGLUNIFORM4FPROC glad_glUniform4f;
3424+#define glUniform4f glad_glUniform4f
3425+typedef void (APIENTRYP PFNGLUNIFORM1IPROC)(GLint location, GLint v0);
3426+GLAPI PFNGLUNIFORM1IPROC glad_glUniform1i;
3427+#define glUniform1i glad_glUniform1i
3428+typedef void (APIENTRYP PFNGLUNIFORM2IPROC)(GLint location, GLint v0, GLint v1);
3429+GLAPI PFNGLUNIFORM2IPROC glad_glUniform2i;
3430+#define glUniform2i glad_glUniform2i
3431+typedef void (APIENTRYP PFNGLUNIFORM3IPROC)(GLint location, GLint v0, GLint v1, GLint v2);
3432+GLAPI PFNGLUNIFORM3IPROC glad_glUniform3i;
3433+#define glUniform3i glad_glUniform3i
3434+typedef void (APIENTRYP PFNGLUNIFORM4IPROC)(GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
3435+GLAPI PFNGLUNIFORM4IPROC glad_glUniform4i;
3436+#define glUniform4i glad_glUniform4i
3437+typedef void (APIENTRYP PFNGLUNIFORM1FVPROC)(GLint location, GLsizei count, const GLfloat *value);
3438+GLAPI PFNGLUNIFORM1FVPROC glad_glUniform1fv;
3439+#define glUniform1fv glad_glUniform1fv
3440+typedef void (APIENTRYP PFNGLUNIFORM2FVPROC)(GLint location, GLsizei count, const GLfloat *value);
3441+GLAPI PFNGLUNIFORM2FVPROC glad_glUniform2fv;
3442+#define glUniform2fv glad_glUniform2fv
3443+typedef void (APIENTRYP PFNGLUNIFORM3FVPROC)(GLint location, GLsizei count, const GLfloat *value);
3444+GLAPI PFNGLUNIFORM3FVPROC glad_glUniform3fv;
3445+#define glUniform3fv glad_glUniform3fv
3446+typedef void (APIENTRYP PFNGLUNIFORM4FVPROC)(GLint location, GLsizei count, const GLfloat *value);
3447+GLAPI PFNGLUNIFORM4FVPROC glad_glUniform4fv;
3448+#define glUniform4fv glad_glUniform4fv
3449+typedef void (APIENTRYP PFNGLUNIFORM1IVPROC)(GLint location, GLsizei count, const GLint *value);
3450+GLAPI PFNGLUNIFORM1IVPROC glad_glUniform1iv;
3451+#define glUniform1iv glad_glUniform1iv
3452+typedef void (APIENTRYP PFNGLUNIFORM2IVPROC)(GLint location, GLsizei count, const GLint *value);
3453+GLAPI PFNGLUNIFORM2IVPROC glad_glUniform2iv;
3454+#define glUniform2iv glad_glUniform2iv
3455+typedef void (APIENTRYP PFNGLUNIFORM3IVPROC)(GLint location, GLsizei count, const GLint *value);
3456+GLAPI PFNGLUNIFORM3IVPROC glad_glUniform3iv;
3457+#define glUniform3iv glad_glUniform3iv
3458+typedef void (APIENTRYP PFNGLUNIFORM4IVPROC)(GLint location, GLsizei count, const GLint *value);
3459+GLAPI PFNGLUNIFORM4IVPROC glad_glUniform4iv;
3460+#define glUniform4iv glad_glUniform4iv
3461+typedef void (APIENTRYP PFNGLUNIFORMMATRIX2FVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
3462+GLAPI PFNGLUNIFORMMATRIX2FVPROC glad_glUniformMatrix2fv;
3463+#define glUniformMatrix2fv glad_glUniformMatrix2fv
3464+typedef void (APIENTRYP PFNGLUNIFORMMATRIX3FVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
3465+GLAPI PFNGLUNIFORMMATRIX3FVPROC glad_glUniformMatrix3fv;
3466+#define glUniformMatrix3fv glad_glUniformMatrix3fv
3467+typedef void (APIENTRYP PFNGLUNIFORMMATRIX4FVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
3468+GLAPI PFNGLUNIFORMMATRIX4FVPROC glad_glUniformMatrix4fv;
3469+#define glUniformMatrix4fv glad_glUniformMatrix4fv
3470+typedef void (APIENTRYP PFNGLVALIDATEPROGRAMPROC)(GLuint program);
3471+GLAPI PFNGLVALIDATEPROGRAMPROC glad_glValidateProgram;
3472+#define glValidateProgram glad_glValidateProgram
3473+typedef void (APIENTRYP PFNGLVERTEXATTRIB1DPROC)(GLuint index, GLdouble x);
3474+GLAPI PFNGLVERTEXATTRIB1DPROC glad_glVertexAttrib1d;
3475+#define glVertexAttrib1d glad_glVertexAttrib1d
3476+typedef void (APIENTRYP PFNGLVERTEXATTRIB1DVPROC)(GLuint index, const GLdouble *v);
3477+GLAPI PFNGLVERTEXATTRIB1DVPROC glad_glVertexAttrib1dv;
3478+#define glVertexAttrib1dv glad_glVertexAttrib1dv
3479+typedef void (APIENTRYP PFNGLVERTEXATTRIB1FPROC)(GLuint index, GLfloat x);
3480+GLAPI PFNGLVERTEXATTRIB1FPROC glad_glVertexAttrib1f;
3481+#define glVertexAttrib1f glad_glVertexAttrib1f
3482+typedef void (APIENTRYP PFNGLVERTEXATTRIB1FVPROC)(GLuint index, const GLfloat *v);
3483+GLAPI PFNGLVERTEXATTRIB1FVPROC glad_glVertexAttrib1fv;
3484+#define glVertexAttrib1fv glad_glVertexAttrib1fv
3485+typedef void (APIENTRYP PFNGLVERTEXATTRIB1SPROC)(GLuint index, GLshort x);
3486+GLAPI PFNGLVERTEXATTRIB1SPROC glad_glVertexAttrib1s;
3487+#define glVertexAttrib1s glad_glVertexAttrib1s
3488+typedef void (APIENTRYP PFNGLVERTEXATTRIB1SVPROC)(GLuint index, const GLshort *v);
3489+GLAPI PFNGLVERTEXATTRIB1SVPROC glad_glVertexAttrib1sv;
3490+#define glVertexAttrib1sv glad_glVertexAttrib1sv
3491+typedef void (APIENTRYP PFNGLVERTEXATTRIB2DPROC)(GLuint index, GLdouble x, GLdouble y);
3492+GLAPI PFNGLVERTEXATTRIB2DPROC glad_glVertexAttrib2d;
3493+#define glVertexAttrib2d glad_glVertexAttrib2d
3494+typedef void (APIENTRYP PFNGLVERTEXATTRIB2DVPROC)(GLuint index, const GLdouble *v);
3495+GLAPI PFNGLVERTEXATTRIB2DVPROC glad_glVertexAttrib2dv;
3496+#define glVertexAttrib2dv glad_glVertexAttrib2dv
3497+typedef void (APIENTRYP PFNGLVERTEXATTRIB2FPROC)(GLuint index, GLfloat x, GLfloat y);
3498+GLAPI PFNGLVERTEXATTRIB2FPROC glad_glVertexAttrib2f;
3499+#define glVertexAttrib2f glad_glVertexAttrib2f
3500+typedef void (APIENTRYP PFNGLVERTEXATTRIB2FVPROC)(GLuint index, const GLfloat *v);
3501+GLAPI PFNGLVERTEXATTRIB2FVPROC glad_glVertexAttrib2fv;
3502+#define glVertexAttrib2fv glad_glVertexAttrib2fv
3503+typedef void (APIENTRYP PFNGLVERTEXATTRIB2SPROC)(GLuint index, GLshort x, GLshort y);
3504+GLAPI PFNGLVERTEXATTRIB2SPROC glad_glVertexAttrib2s;
3505+#define glVertexAttrib2s glad_glVertexAttrib2s
3506+typedef void (APIENTRYP PFNGLVERTEXATTRIB2SVPROC)(GLuint index, const GLshort *v);
3507+GLAPI PFNGLVERTEXATTRIB2SVPROC glad_glVertexAttrib2sv;
3508+#define glVertexAttrib2sv glad_glVertexAttrib2sv
3509+typedef void (APIENTRYP PFNGLVERTEXATTRIB3DPROC)(GLuint index, GLdouble x, GLdouble y, GLdouble z);
3510+GLAPI PFNGLVERTEXATTRIB3DPROC glad_glVertexAttrib3d;
3511+#define glVertexAttrib3d glad_glVertexAttrib3d
3512+typedef void (APIENTRYP PFNGLVERTEXATTRIB3DVPROC)(GLuint index, const GLdouble *v);
3513+GLAPI PFNGLVERTEXATTRIB3DVPROC glad_glVertexAttrib3dv;
3514+#define glVertexAttrib3dv glad_glVertexAttrib3dv
3515+typedef void (APIENTRYP PFNGLVERTEXATTRIB3FPROC)(GLuint index, GLfloat x, GLfloat y, GLfloat z);
3516+GLAPI PFNGLVERTEXATTRIB3FPROC glad_glVertexAttrib3f;
3517+#define glVertexAttrib3f glad_glVertexAttrib3f
3518+typedef void (APIENTRYP PFNGLVERTEXATTRIB3FVPROC)(GLuint index, const GLfloat *v);
3519+GLAPI PFNGLVERTEXATTRIB3FVPROC glad_glVertexAttrib3fv;
3520+#define glVertexAttrib3fv glad_glVertexAttrib3fv
3521+typedef void (APIENTRYP PFNGLVERTEXATTRIB3SPROC)(GLuint index, GLshort x, GLshort y, GLshort z);
3522+GLAPI PFNGLVERTEXATTRIB3SPROC glad_glVertexAttrib3s;
3523+#define glVertexAttrib3s glad_glVertexAttrib3s
3524+typedef void (APIENTRYP PFNGLVERTEXATTRIB3SVPROC)(GLuint index, const GLshort *v);
3525+GLAPI PFNGLVERTEXATTRIB3SVPROC glad_glVertexAttrib3sv;
3526+#define glVertexAttrib3sv glad_glVertexAttrib3sv
3527+typedef void (APIENTRYP PFNGLVERTEXATTRIB4NBVPROC)(GLuint index, const GLbyte *v);
3528+GLAPI PFNGLVERTEXATTRIB4NBVPROC glad_glVertexAttrib4Nbv;
3529+#define glVertexAttrib4Nbv glad_glVertexAttrib4Nbv
3530+typedef void (APIENTRYP PFNGLVERTEXATTRIB4NIVPROC)(GLuint index, const GLint *v);
3531+GLAPI PFNGLVERTEXATTRIB4NIVPROC glad_glVertexAttrib4Niv;
3532+#define glVertexAttrib4Niv glad_glVertexAttrib4Niv
3533+typedef void (APIENTRYP PFNGLVERTEXATTRIB4NSVPROC)(GLuint index, const GLshort *v);
3534+GLAPI PFNGLVERTEXATTRIB4NSVPROC glad_glVertexAttrib4Nsv;
3535+#define glVertexAttrib4Nsv glad_glVertexAttrib4Nsv
3536+typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBPROC)(GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
3537+GLAPI PFNGLVERTEXATTRIB4NUBPROC glad_glVertexAttrib4Nub;
3538+#define glVertexAttrib4Nub glad_glVertexAttrib4Nub
3539+typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBVPROC)(GLuint index, const GLubyte *v);
3540+GLAPI PFNGLVERTEXATTRIB4NUBVPROC glad_glVertexAttrib4Nubv;
3541+#define glVertexAttrib4Nubv glad_glVertexAttrib4Nubv
3542+typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUIVPROC)(GLuint index, const GLuint *v);
3543+GLAPI PFNGLVERTEXATTRIB4NUIVPROC glad_glVertexAttrib4Nuiv;
3544+#define glVertexAttrib4Nuiv glad_glVertexAttrib4Nuiv
3545+typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUSVPROC)(GLuint index, const GLushort *v);
3546+GLAPI PFNGLVERTEXATTRIB4NUSVPROC glad_glVertexAttrib4Nusv;
3547+#define glVertexAttrib4Nusv glad_glVertexAttrib4Nusv
3548+typedef void (APIENTRYP PFNGLVERTEXATTRIB4BVPROC)(GLuint index, const GLbyte *v);
3549+GLAPI PFNGLVERTEXATTRIB4BVPROC glad_glVertexAttrib4bv;
3550+#define glVertexAttrib4bv glad_glVertexAttrib4bv
3551+typedef void (APIENTRYP PFNGLVERTEXATTRIB4DPROC)(GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
3552+GLAPI PFNGLVERTEXATTRIB4DPROC glad_glVertexAttrib4d;
3553+#define glVertexAttrib4d glad_glVertexAttrib4d
3554+typedef void (APIENTRYP PFNGLVERTEXATTRIB4DVPROC)(GLuint index, const GLdouble *v);
3555+GLAPI PFNGLVERTEXATTRIB4DVPROC glad_glVertexAttrib4dv;
3556+#define glVertexAttrib4dv glad_glVertexAttrib4dv
3557+typedef void (APIENTRYP PFNGLVERTEXATTRIB4FPROC)(GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
3558+GLAPI PFNGLVERTEXATTRIB4FPROC glad_glVertexAttrib4f;
3559+#define glVertexAttrib4f glad_glVertexAttrib4f
3560+typedef void (APIENTRYP PFNGLVERTEXATTRIB4FVPROC)(GLuint index, const GLfloat *v);
3561+GLAPI PFNGLVERTEXATTRIB4FVPROC glad_glVertexAttrib4fv;
3562+#define glVertexAttrib4fv glad_glVertexAttrib4fv
3563+typedef void (APIENTRYP PFNGLVERTEXATTRIB4IVPROC)(GLuint index, const GLint *v);
3564+GLAPI PFNGLVERTEXATTRIB4IVPROC glad_glVertexAttrib4iv;
3565+#define glVertexAttrib4iv glad_glVertexAttrib4iv
3566+typedef void (APIENTRYP PFNGLVERTEXATTRIB4SPROC)(GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
3567+GLAPI PFNGLVERTEXATTRIB4SPROC glad_glVertexAttrib4s;
3568+#define glVertexAttrib4s glad_glVertexAttrib4s
3569+typedef void (APIENTRYP PFNGLVERTEXATTRIB4SVPROC)(GLuint index, const GLshort *v);
3570+GLAPI PFNGLVERTEXATTRIB4SVPROC glad_glVertexAttrib4sv;
3571+#define glVertexAttrib4sv glad_glVertexAttrib4sv
3572+typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBVPROC)(GLuint index, const GLubyte *v);
3573+GLAPI PFNGLVERTEXATTRIB4UBVPROC glad_glVertexAttrib4ubv;
3574+#define glVertexAttrib4ubv glad_glVertexAttrib4ubv
3575+typedef void (APIENTRYP PFNGLVERTEXATTRIB4UIVPROC)(GLuint index, const GLuint *v);
3576+GLAPI PFNGLVERTEXATTRIB4UIVPROC glad_glVertexAttrib4uiv;
3577+#define glVertexAttrib4uiv glad_glVertexAttrib4uiv
3578+typedef void (APIENTRYP PFNGLVERTEXATTRIB4USVPROC)(GLuint index, const GLushort *v);
3579+GLAPI PFNGLVERTEXATTRIB4USVPROC glad_glVertexAttrib4usv;
3580+#define glVertexAttrib4usv glad_glVertexAttrib4usv
3581+typedef void (APIENTRYP PFNGLVERTEXATTRIBPOINTERPROC)(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer);
3582+GLAPI PFNGLVERTEXATTRIBPOINTERPROC glad_glVertexAttribPointer;
3583+#define glVertexAttribPointer glad_glVertexAttribPointer
3584+#endif
3585+#ifndef GL_VERSION_2_1
3586+#define GL_VERSION_2_1 1
3587+GLAPI int GLAD_GL_VERSION_2_1;
3588+typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X3FVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
3589+GLAPI PFNGLUNIFORMMATRIX2X3FVPROC glad_glUniformMatrix2x3fv;
3590+#define glUniformMatrix2x3fv glad_glUniformMatrix2x3fv
3591+typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X2FVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
3592+GLAPI PFNGLUNIFORMMATRIX3X2FVPROC glad_glUniformMatrix3x2fv;
3593+#define glUniformMatrix3x2fv glad_glUniformMatrix3x2fv
3594+typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X4FVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
3595+GLAPI PFNGLUNIFORMMATRIX2X4FVPROC glad_glUniformMatrix2x4fv;
3596+#define glUniformMatrix2x4fv glad_glUniformMatrix2x4fv
3597+typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X2FVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
3598+GLAPI PFNGLUNIFORMMATRIX4X2FVPROC glad_glUniformMatrix4x2fv;
3599+#define glUniformMatrix4x2fv glad_glUniformMatrix4x2fv
3600+typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X4FVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
3601+GLAPI PFNGLUNIFORMMATRIX3X4FVPROC glad_glUniformMatrix3x4fv;
3602+#define glUniformMatrix3x4fv glad_glUniformMatrix3x4fv
3603+typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X3FVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
3604+GLAPI PFNGLUNIFORMMATRIX4X3FVPROC glad_glUniformMatrix4x3fv;
3605+#define glUniformMatrix4x3fv glad_glUniformMatrix4x3fv
3606+#endif
3607+#ifndef GL_VERSION_3_0
3608+#define GL_VERSION_3_0 1
3609+GLAPI int GLAD_GL_VERSION_3_0;
3610+typedef void (APIENTRYP PFNGLCOLORMASKIPROC)(GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a);
3611+GLAPI PFNGLCOLORMASKIPROC glad_glColorMaski;
3612+#define glColorMaski glad_glColorMaski
3613+typedef void (APIENTRYP PFNGLGETBOOLEANI_VPROC)(GLenum target, GLuint index, GLboolean *data);
3614+GLAPI PFNGLGETBOOLEANI_VPROC glad_glGetBooleani_v;
3615+#define glGetBooleani_v glad_glGetBooleani_v
3616+typedef void (APIENTRYP PFNGLGETINTEGERI_VPROC)(GLenum target, GLuint index, GLint *data);
3617+GLAPI PFNGLGETINTEGERI_VPROC glad_glGetIntegeri_v;
3618+#define glGetIntegeri_v glad_glGetIntegeri_v
3619+typedef void (APIENTRYP PFNGLENABLEIPROC)(GLenum target, GLuint index);
3620+GLAPI PFNGLENABLEIPROC glad_glEnablei;
3621+#define glEnablei glad_glEnablei
3622+typedef void (APIENTRYP PFNGLDISABLEIPROC)(GLenum target, GLuint index);
3623+GLAPI PFNGLDISABLEIPROC glad_glDisablei;
3624+#define glDisablei glad_glDisablei
3625+typedef GLboolean (APIENTRYP PFNGLISENABLEDIPROC)(GLenum target, GLuint index);
3626+GLAPI PFNGLISENABLEDIPROC glad_glIsEnabledi;
3627+#define glIsEnabledi glad_glIsEnabledi
3628+typedef void (APIENTRYP PFNGLBEGINTRANSFORMFEEDBACKPROC)(GLenum primitiveMode);
3629+GLAPI PFNGLBEGINTRANSFORMFEEDBACKPROC glad_glBeginTransformFeedback;
3630+#define glBeginTransformFeedback glad_glBeginTransformFeedback
3631+typedef void (APIENTRYP PFNGLENDTRANSFORMFEEDBACKPROC)(void);
3632+GLAPI PFNGLENDTRANSFORMFEEDBACKPROC glad_glEndTransformFeedback;
3633+#define glEndTransformFeedback glad_glEndTransformFeedback
3634+typedef void (APIENTRYP PFNGLBINDBUFFERRANGEPROC)(GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
3635+GLAPI PFNGLBINDBUFFERRANGEPROC glad_glBindBufferRange;
3636+#define glBindBufferRange glad_glBindBufferRange
3637+typedef void (APIENTRYP PFNGLBINDBUFFERBASEPROC)(GLenum target, GLuint index, GLuint buffer);
3638+GLAPI PFNGLBINDBUFFERBASEPROC glad_glBindBufferBase;
3639+#define glBindBufferBase glad_glBindBufferBase
3640+typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKVARYINGSPROC)(GLuint program, GLsizei count, const GLchar *const*varyings, GLenum bufferMode);
3641+GLAPI PFNGLTRANSFORMFEEDBACKVARYINGSPROC glad_glTransformFeedbackVaryings;
3642+#define glTransformFeedbackVaryings glad_glTransformFeedbackVaryings
3643+typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKVARYINGPROC)(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name);
3644+GLAPI PFNGLGETTRANSFORMFEEDBACKVARYINGPROC glad_glGetTransformFeedbackVarying;
3645+#define glGetTransformFeedbackVarying glad_glGetTransformFeedbackVarying
3646+typedef void (APIENTRYP PFNGLCLAMPCOLORPROC)(GLenum target, GLenum clamp);
3647+GLAPI PFNGLCLAMPCOLORPROC glad_glClampColor;
3648+#define glClampColor glad_glClampColor
3649+typedef void (APIENTRYP PFNGLBEGINCONDITIONALRENDERPROC)(GLuint id, GLenum mode);
3650+GLAPI PFNGLBEGINCONDITIONALRENDERPROC glad_glBeginConditionalRender;
3651+#define glBeginConditionalRender glad_glBeginConditionalRender
3652+typedef void (APIENTRYP PFNGLENDCONDITIONALRENDERPROC)(void);
3653+GLAPI PFNGLENDCONDITIONALRENDERPROC glad_glEndConditionalRender;
3654+#define glEndConditionalRender glad_glEndConditionalRender
3655+typedef void (APIENTRYP PFNGLVERTEXATTRIBIPOINTERPROC)(GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer);
3656+GLAPI PFNGLVERTEXATTRIBIPOINTERPROC glad_glVertexAttribIPointer;
3657+#define glVertexAttribIPointer glad_glVertexAttribIPointer
3658+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIIVPROC)(GLuint index, GLenum pname, GLint *params);
3659+GLAPI PFNGLGETVERTEXATTRIBIIVPROC glad_glGetVertexAttribIiv;
3660+#define glGetVertexAttribIiv glad_glGetVertexAttribIiv
3661+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIUIVPROC)(GLuint index, GLenum pname, GLuint *params);
3662+GLAPI PFNGLGETVERTEXATTRIBIUIVPROC glad_glGetVertexAttribIuiv;
3663+#define glGetVertexAttribIuiv glad_glGetVertexAttribIuiv
3664+typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IPROC)(GLuint index, GLint x);
3665+GLAPI PFNGLVERTEXATTRIBI1IPROC glad_glVertexAttribI1i;
3666+#define glVertexAttribI1i glad_glVertexAttribI1i
3667+typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IPROC)(GLuint index, GLint x, GLint y);
3668+GLAPI PFNGLVERTEXATTRIBI2IPROC glad_glVertexAttribI2i;
3669+#define glVertexAttribI2i glad_glVertexAttribI2i
3670+typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IPROC)(GLuint index, GLint x, GLint y, GLint z);
3671+GLAPI PFNGLVERTEXATTRIBI3IPROC glad_glVertexAttribI3i;
3672+#define glVertexAttribI3i glad_glVertexAttribI3i
3673+typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IPROC)(GLuint index, GLint x, GLint y, GLint z, GLint w);
3674+GLAPI PFNGLVERTEXATTRIBI4IPROC glad_glVertexAttribI4i;
3675+#define glVertexAttribI4i glad_glVertexAttribI4i
3676+typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIPROC)(GLuint index, GLuint x);
3677+GLAPI PFNGLVERTEXATTRIBI1UIPROC glad_glVertexAttribI1ui;
3678+#define glVertexAttribI1ui glad_glVertexAttribI1ui
3679+typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIPROC)(GLuint index, GLuint x, GLuint y);
3680+GLAPI PFNGLVERTEXATTRIBI2UIPROC glad_glVertexAttribI2ui;
3681+#define glVertexAttribI2ui glad_glVertexAttribI2ui
3682+typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIPROC)(GLuint index, GLuint x, GLuint y, GLuint z);
3683+GLAPI PFNGLVERTEXATTRIBI3UIPROC glad_glVertexAttribI3ui;
3684+#define glVertexAttribI3ui glad_glVertexAttribI3ui
3685+typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIPROC)(GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
3686+GLAPI PFNGLVERTEXATTRIBI4UIPROC glad_glVertexAttribI4ui;
3687+#define glVertexAttribI4ui glad_glVertexAttribI4ui
3688+typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IVPROC)(GLuint index, const GLint *v);
3689+GLAPI PFNGLVERTEXATTRIBI1IVPROC glad_glVertexAttribI1iv;
3690+#define glVertexAttribI1iv glad_glVertexAttribI1iv
3691+typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IVPROC)(GLuint index, const GLint *v);
3692+GLAPI PFNGLVERTEXATTRIBI2IVPROC glad_glVertexAttribI2iv;
3693+#define glVertexAttribI2iv glad_glVertexAttribI2iv
3694+typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IVPROC)(GLuint index, const GLint *v);
3695+GLAPI PFNGLVERTEXATTRIBI3IVPROC glad_glVertexAttribI3iv;
3696+#define glVertexAttribI3iv glad_glVertexAttribI3iv
3697+typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IVPROC)(GLuint index, const GLint *v);
3698+GLAPI PFNGLVERTEXATTRIBI4IVPROC glad_glVertexAttribI4iv;
3699+#define glVertexAttribI4iv glad_glVertexAttribI4iv
3700+typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIVPROC)(GLuint index, const GLuint *v);
3701+GLAPI PFNGLVERTEXATTRIBI1UIVPROC glad_glVertexAttribI1uiv;
3702+#define glVertexAttribI1uiv glad_glVertexAttribI1uiv
3703+typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIVPROC)(GLuint index, const GLuint *v);
3704+GLAPI PFNGLVERTEXATTRIBI2UIVPROC glad_glVertexAttribI2uiv;
3705+#define glVertexAttribI2uiv glad_glVertexAttribI2uiv
3706+typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIVPROC)(GLuint index, const GLuint *v);
3707+GLAPI PFNGLVERTEXATTRIBI3UIVPROC glad_glVertexAttribI3uiv;
3708+#define glVertexAttribI3uiv glad_glVertexAttribI3uiv
3709+typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIVPROC)(GLuint index, const GLuint *v);
3710+GLAPI PFNGLVERTEXATTRIBI4UIVPROC glad_glVertexAttribI4uiv;
3711+#define glVertexAttribI4uiv glad_glVertexAttribI4uiv
3712+typedef void (APIENTRYP PFNGLVERTEXATTRIBI4BVPROC)(GLuint index, const GLbyte *v);
3713+GLAPI PFNGLVERTEXATTRIBI4BVPROC glad_glVertexAttribI4bv;
3714+#define glVertexAttribI4bv glad_glVertexAttribI4bv
3715+typedef void (APIENTRYP PFNGLVERTEXATTRIBI4SVPROC)(GLuint index, const GLshort *v);
3716+GLAPI PFNGLVERTEXATTRIBI4SVPROC glad_glVertexAttribI4sv;
3717+#define glVertexAttribI4sv glad_glVertexAttribI4sv
3718+typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UBVPROC)(GLuint index, const GLubyte *v);
3719+GLAPI PFNGLVERTEXATTRIBI4UBVPROC glad_glVertexAttribI4ubv;
3720+#define glVertexAttribI4ubv glad_glVertexAttribI4ubv
3721+typedef void (APIENTRYP PFNGLVERTEXATTRIBI4USVPROC)(GLuint index, const GLushort *v);
3722+GLAPI PFNGLVERTEXATTRIBI4USVPROC glad_glVertexAttribI4usv;
3723+#define glVertexAttribI4usv glad_glVertexAttribI4usv
3724+typedef void (APIENTRYP PFNGLGETUNIFORMUIVPROC)(GLuint program, GLint location, GLuint *params);
3725+GLAPI PFNGLGETUNIFORMUIVPROC glad_glGetUniformuiv;
3726+#define glGetUniformuiv glad_glGetUniformuiv
3727+typedef void (APIENTRYP PFNGLBINDFRAGDATALOCATIONPROC)(GLuint program, GLuint color, const GLchar *name);
3728+GLAPI PFNGLBINDFRAGDATALOCATIONPROC glad_glBindFragDataLocation;
3729+#define glBindFragDataLocation glad_glBindFragDataLocation
3730+typedef GLint (APIENTRYP PFNGLGETFRAGDATALOCATIONPROC)(GLuint program, const GLchar *name);
3731+GLAPI PFNGLGETFRAGDATALOCATIONPROC glad_glGetFragDataLocation;
3732+#define glGetFragDataLocation glad_glGetFragDataLocation
3733+typedef void (APIENTRYP PFNGLUNIFORM1UIPROC)(GLint location, GLuint v0);
3734+GLAPI PFNGLUNIFORM1UIPROC glad_glUniform1ui;
3735+#define glUniform1ui glad_glUniform1ui
3736+typedef void (APIENTRYP PFNGLUNIFORM2UIPROC)(GLint location, GLuint v0, GLuint v1);
3737+GLAPI PFNGLUNIFORM2UIPROC glad_glUniform2ui;
3738+#define glUniform2ui glad_glUniform2ui
3739+typedef void (APIENTRYP PFNGLUNIFORM3UIPROC)(GLint location, GLuint v0, GLuint v1, GLuint v2);
3740+GLAPI PFNGLUNIFORM3UIPROC glad_glUniform3ui;
3741+#define glUniform3ui glad_glUniform3ui
3742+typedef void (APIENTRYP PFNGLUNIFORM4UIPROC)(GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
3743+GLAPI PFNGLUNIFORM4UIPROC glad_glUniform4ui;
3744+#define glUniform4ui glad_glUniform4ui
3745+typedef void (APIENTRYP PFNGLUNIFORM1UIVPROC)(GLint location, GLsizei count, const GLuint *value);
3746+GLAPI PFNGLUNIFORM1UIVPROC glad_glUniform1uiv;
3747+#define glUniform1uiv glad_glUniform1uiv
3748+typedef void (APIENTRYP PFNGLUNIFORM2UIVPROC)(GLint location, GLsizei count, const GLuint *value);
3749+GLAPI PFNGLUNIFORM2UIVPROC glad_glUniform2uiv;
3750+#define glUniform2uiv glad_glUniform2uiv
3751+typedef void (APIENTRYP PFNGLUNIFORM3UIVPROC)(GLint location, GLsizei count, const GLuint *value);
3752+GLAPI PFNGLUNIFORM3UIVPROC glad_glUniform3uiv;
3753+#define glUniform3uiv glad_glUniform3uiv
3754+typedef void (APIENTRYP PFNGLUNIFORM4UIVPROC)(GLint location, GLsizei count, const GLuint *value);
3755+GLAPI PFNGLUNIFORM4UIVPROC glad_glUniform4uiv;
3756+#define glUniform4uiv glad_glUniform4uiv
3757+typedef void (APIENTRYP PFNGLTEXPARAMETERIIVPROC)(GLenum target, GLenum pname, const GLint *params);
3758+GLAPI PFNGLTEXPARAMETERIIVPROC glad_glTexParameterIiv;
3759+#define glTexParameterIiv glad_glTexParameterIiv
3760+typedef void (APIENTRYP PFNGLTEXPARAMETERIUIVPROC)(GLenum target, GLenum pname, const GLuint *params);
3761+GLAPI PFNGLTEXPARAMETERIUIVPROC glad_glTexParameterIuiv;
3762+#define glTexParameterIuiv glad_glTexParameterIuiv
3763+typedef void (APIENTRYP PFNGLGETTEXPARAMETERIIVPROC)(GLenum target, GLenum pname, GLint *params);
3764+GLAPI PFNGLGETTEXPARAMETERIIVPROC glad_glGetTexParameterIiv;
3765+#define glGetTexParameterIiv glad_glGetTexParameterIiv
3766+typedef void (APIENTRYP PFNGLGETTEXPARAMETERIUIVPROC)(GLenum target, GLenum pname, GLuint *params);
3767+GLAPI PFNGLGETTEXPARAMETERIUIVPROC glad_glGetTexParameterIuiv;
3768+#define glGetTexParameterIuiv glad_glGetTexParameterIuiv
3769+typedef void (APIENTRYP PFNGLCLEARBUFFERIVPROC)(GLenum buffer, GLint drawbuffer, const GLint *value);
3770+GLAPI PFNGLCLEARBUFFERIVPROC glad_glClearBufferiv;
3771+#define glClearBufferiv glad_glClearBufferiv
3772+typedef void (APIENTRYP PFNGLCLEARBUFFERUIVPROC)(GLenum buffer, GLint drawbuffer, const GLuint *value);
3773+GLAPI PFNGLCLEARBUFFERUIVPROC glad_glClearBufferuiv;
3774+#define glClearBufferuiv glad_glClearBufferuiv
3775+typedef void (APIENTRYP PFNGLCLEARBUFFERFVPROC)(GLenum buffer, GLint drawbuffer, const GLfloat *value);
3776+GLAPI PFNGLCLEARBUFFERFVPROC glad_glClearBufferfv;
3777+#define glClearBufferfv glad_glClearBufferfv
3778+typedef void (APIENTRYP PFNGLCLEARBUFFERFIPROC)(GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil);
3779+GLAPI PFNGLCLEARBUFFERFIPROC glad_glClearBufferfi;
3780+#define glClearBufferfi glad_glClearBufferfi
3781+typedef const GLubyte * (APIENTRYP PFNGLGETSTRINGIPROC)(GLenum name, GLuint index);
3782+GLAPI PFNGLGETSTRINGIPROC glad_glGetStringi;
3783+#define glGetStringi glad_glGetStringi
3784+typedef GLboolean (APIENTRYP PFNGLISRENDERBUFFERPROC)(GLuint renderbuffer);
3785+GLAPI PFNGLISRENDERBUFFERPROC glad_glIsRenderbuffer;
3786+#define glIsRenderbuffer glad_glIsRenderbuffer
3787+typedef void (APIENTRYP PFNGLBINDRENDERBUFFERPROC)(GLenum target, GLuint renderbuffer);
3788+GLAPI PFNGLBINDRENDERBUFFERPROC glad_glBindRenderbuffer;
3789+#define glBindRenderbuffer glad_glBindRenderbuffer
3790+typedef void (APIENTRYP PFNGLDELETERENDERBUFFERSPROC)(GLsizei n, const GLuint *renderbuffers);
3791+GLAPI PFNGLDELETERENDERBUFFERSPROC glad_glDeleteRenderbuffers;
3792+#define glDeleteRenderbuffers glad_glDeleteRenderbuffers
3793+typedef void (APIENTRYP PFNGLGENRENDERBUFFERSPROC)(GLsizei n, GLuint *renderbuffers);
3794+GLAPI PFNGLGENRENDERBUFFERSPROC glad_glGenRenderbuffers;
3795+#define glGenRenderbuffers glad_glGenRenderbuffers
3796+typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEPROC)(GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
3797+GLAPI PFNGLRENDERBUFFERSTORAGEPROC glad_glRenderbufferStorage;
3798+#define glRenderbufferStorage glad_glRenderbufferStorage
3799+typedef void (APIENTRYP PFNGLGETRENDERBUFFERPARAMETERIVPROC)(GLenum target, GLenum pname, GLint *params);
3800+GLAPI PFNGLGETRENDERBUFFERPARAMETERIVPROC glad_glGetRenderbufferParameteriv;
3801+#define glGetRenderbufferParameteriv glad_glGetRenderbufferParameteriv
3802+typedef GLboolean (APIENTRYP PFNGLISFRAMEBUFFERPROC)(GLuint framebuffer);
3803+GLAPI PFNGLISFRAMEBUFFERPROC glad_glIsFramebuffer;
3804+#define glIsFramebuffer glad_glIsFramebuffer
3805+typedef void (APIENTRYP PFNGLBINDFRAMEBUFFERPROC)(GLenum target, GLuint framebuffer);
3806+GLAPI PFNGLBINDFRAMEBUFFERPROC glad_glBindFramebuffer;
3807+#define glBindFramebuffer glad_glBindFramebuffer
3808+typedef void (APIENTRYP PFNGLDELETEFRAMEBUFFERSPROC)(GLsizei n, const GLuint *framebuffers);
3809+GLAPI PFNGLDELETEFRAMEBUFFERSPROC glad_glDeleteFramebuffers;
3810+#define glDeleteFramebuffers glad_glDeleteFramebuffers
3811+typedef void (APIENTRYP PFNGLGENFRAMEBUFFERSPROC)(GLsizei n, GLuint *framebuffers);
3812+GLAPI PFNGLGENFRAMEBUFFERSPROC glad_glGenFramebuffers;
3813+#define glGenFramebuffers glad_glGenFramebuffers
3814+typedef GLenum (APIENTRYP PFNGLCHECKFRAMEBUFFERSTATUSPROC)(GLenum target);
3815+GLAPI PFNGLCHECKFRAMEBUFFERSTATUSPROC glad_glCheckFramebufferStatus;
3816+#define glCheckFramebufferStatus glad_glCheckFramebufferStatus
3817+typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE1DPROC)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
3818+GLAPI PFNGLFRAMEBUFFERTEXTURE1DPROC glad_glFramebufferTexture1D;
3819+#define glFramebufferTexture1D glad_glFramebufferTexture1D
3820+typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DPROC)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
3821+GLAPI PFNGLFRAMEBUFFERTEXTURE2DPROC glad_glFramebufferTexture2D;
3822+#define glFramebufferTexture2D glad_glFramebufferTexture2D
3823+typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE3DPROC)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
3824+GLAPI PFNGLFRAMEBUFFERTEXTURE3DPROC glad_glFramebufferTexture3D;
3825+#define glFramebufferTexture3D glad_glFramebufferTexture3D
3826+typedef void (APIENTRYP PFNGLFRAMEBUFFERRENDERBUFFERPROC)(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
3827+GLAPI PFNGLFRAMEBUFFERRENDERBUFFERPROC glad_glFramebufferRenderbuffer;
3828+#define glFramebufferRenderbuffer glad_glFramebufferRenderbuffer
3829+typedef void (APIENTRYP PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC)(GLenum target, GLenum attachment, GLenum pname, GLint *params);
3830+GLAPI PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC glad_glGetFramebufferAttachmentParameteriv;
3831+#define glGetFramebufferAttachmentParameteriv glad_glGetFramebufferAttachmentParameteriv
3832+typedef void (APIENTRYP PFNGLGENERATEMIPMAPPROC)(GLenum target);
3833+GLAPI PFNGLGENERATEMIPMAPPROC glad_glGenerateMipmap;
3834+#define glGenerateMipmap glad_glGenerateMipmap
3835+typedef void (APIENTRYP PFNGLBLITFRAMEBUFFERPROC)(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
3836+GLAPI PFNGLBLITFRAMEBUFFERPROC glad_glBlitFramebuffer;
3837+#define glBlitFramebuffer glad_glBlitFramebuffer
3838+typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC)(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
3839+GLAPI PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC glad_glRenderbufferStorageMultisample;
3840+#define glRenderbufferStorageMultisample glad_glRenderbufferStorageMultisample
3841+typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURELAYERPROC)(GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
3842+GLAPI PFNGLFRAMEBUFFERTEXTURELAYERPROC glad_glFramebufferTextureLayer;
3843+#define glFramebufferTextureLayer glad_glFramebufferTextureLayer
3844+typedef void * (APIENTRYP PFNGLMAPBUFFERRANGEPROC)(GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
3845+GLAPI PFNGLMAPBUFFERRANGEPROC glad_glMapBufferRange;
3846+#define glMapBufferRange glad_glMapBufferRange
3847+typedef void (APIENTRYP PFNGLFLUSHMAPPEDBUFFERRANGEPROC)(GLenum target, GLintptr offset, GLsizeiptr length);
3848+GLAPI PFNGLFLUSHMAPPEDBUFFERRANGEPROC glad_glFlushMappedBufferRange;
3849+#define glFlushMappedBufferRange glad_glFlushMappedBufferRange
3850+typedef void (APIENTRYP PFNGLBINDVERTEXARRAYPROC)(GLuint array);
3851+GLAPI PFNGLBINDVERTEXARRAYPROC glad_glBindVertexArray;
3852+#define glBindVertexArray glad_glBindVertexArray
3853+typedef void (APIENTRYP PFNGLDELETEVERTEXARRAYSPROC)(GLsizei n, const GLuint *arrays);
3854+GLAPI PFNGLDELETEVERTEXARRAYSPROC glad_glDeleteVertexArrays;
3855+#define glDeleteVertexArrays glad_glDeleteVertexArrays
3856+typedef void (APIENTRYP PFNGLGENVERTEXARRAYSPROC)(GLsizei n, GLuint *arrays);
3857+GLAPI PFNGLGENVERTEXARRAYSPROC glad_glGenVertexArrays;
3858+#define glGenVertexArrays glad_glGenVertexArrays
3859+typedef GLboolean (APIENTRYP PFNGLISVERTEXARRAYPROC)(GLuint array);
3860+GLAPI PFNGLISVERTEXARRAYPROC glad_glIsVertexArray;
3861+#define glIsVertexArray glad_glIsVertexArray
3862+#endif
3863+#ifndef GL_VERSION_3_1
3864+#define GL_VERSION_3_1 1
3865+GLAPI int GLAD_GL_VERSION_3_1;
3866+typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDPROC)(GLenum mode, GLint first, GLsizei count, GLsizei instancecount);
3867+GLAPI PFNGLDRAWARRAYSINSTANCEDPROC glad_glDrawArraysInstanced;
3868+#define glDrawArraysInstanced glad_glDrawArraysInstanced
3869+typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDPROC)(GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount);
3870+GLAPI PFNGLDRAWELEMENTSINSTANCEDPROC glad_glDrawElementsInstanced;
3871+#define glDrawElementsInstanced glad_glDrawElementsInstanced
3872+typedef void (APIENTRYP PFNGLTEXBUFFERPROC)(GLenum target, GLenum internalformat, GLuint buffer);
3873+GLAPI PFNGLTEXBUFFERPROC glad_glTexBuffer;
3874+#define glTexBuffer glad_glTexBuffer
3875+typedef void (APIENTRYP PFNGLPRIMITIVERESTARTINDEXPROC)(GLuint index);
3876+GLAPI PFNGLPRIMITIVERESTARTINDEXPROC glad_glPrimitiveRestartIndex;
3877+#define glPrimitiveRestartIndex glad_glPrimitiveRestartIndex
3878+typedef void (APIENTRYP PFNGLCOPYBUFFERSUBDATAPROC)(GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
3879+GLAPI PFNGLCOPYBUFFERSUBDATAPROC glad_glCopyBufferSubData;
3880+#define glCopyBufferSubData glad_glCopyBufferSubData
3881+typedef void (APIENTRYP PFNGLGETUNIFORMINDICESPROC)(GLuint program, GLsizei uniformCount, const GLchar *const*uniformNames, GLuint *uniformIndices);
3882+GLAPI PFNGLGETUNIFORMINDICESPROC glad_glGetUniformIndices;
3883+#define glGetUniformIndices glad_glGetUniformIndices
3884+typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMSIVPROC)(GLuint program, GLsizei uniformCount, const GLuint *uniformIndices, GLenum pname, GLint *params);
3885+GLAPI PFNGLGETACTIVEUNIFORMSIVPROC glad_glGetActiveUniformsiv;
3886+#define glGetActiveUniformsiv glad_glGetActiveUniformsiv
3887+typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMNAMEPROC)(GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformName);
3888+GLAPI PFNGLGETACTIVEUNIFORMNAMEPROC glad_glGetActiveUniformName;
3889+#define glGetActiveUniformName glad_glGetActiveUniformName
3890+typedef GLuint (APIENTRYP PFNGLGETUNIFORMBLOCKINDEXPROC)(GLuint program, const GLchar *uniformBlockName);
3891+GLAPI PFNGLGETUNIFORMBLOCKINDEXPROC glad_glGetUniformBlockIndex;
3892+#define glGetUniformBlockIndex glad_glGetUniformBlockIndex
3893+typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMBLOCKIVPROC)(GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint *params);
3894+GLAPI PFNGLGETACTIVEUNIFORMBLOCKIVPROC glad_glGetActiveUniformBlockiv;
3895+#define glGetActiveUniformBlockiv glad_glGetActiveUniformBlockiv
3896+typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC)(GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformBlockName);
3897+GLAPI PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC glad_glGetActiveUniformBlockName;
3898+#define glGetActiveUniformBlockName glad_glGetActiveUniformBlockName
3899+typedef void (APIENTRYP PFNGLUNIFORMBLOCKBINDINGPROC)(GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding);
3900+GLAPI PFNGLUNIFORMBLOCKBINDINGPROC glad_glUniformBlockBinding;
3901+#define glUniformBlockBinding glad_glUniformBlockBinding
3902+#endif
3903+#ifndef GL_VERSION_3_2
3904+#define GL_VERSION_3_2 1
3905+GLAPI int GLAD_GL_VERSION_3_2;
3906+typedef void (APIENTRYP PFNGLDRAWELEMENTSBASEVERTEXPROC)(GLenum mode, GLsizei count, GLenum type, const void *indices, GLint basevertex);
3907+GLAPI PFNGLDRAWELEMENTSBASEVERTEXPROC glad_glDrawElementsBaseVertex;
3908+#define glDrawElementsBaseVertex glad_glDrawElementsBaseVertex
3909+typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC)(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices, GLint basevertex);
3910+GLAPI PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC glad_glDrawRangeElementsBaseVertex;
3911+#define glDrawRangeElementsBaseVertex glad_glDrawRangeElementsBaseVertex
3912+typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC)(GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex);
3913+GLAPI PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC glad_glDrawElementsInstancedBaseVertex;
3914+#define glDrawElementsInstancedBaseVertex glad_glDrawElementsInstancedBaseVertex
3915+typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC)(GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei drawcount, const GLint *basevertex);
3916+GLAPI PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC glad_glMultiDrawElementsBaseVertex;
3917+#define glMultiDrawElementsBaseVertex glad_glMultiDrawElementsBaseVertex
3918+typedef void (APIENTRYP PFNGLPROVOKINGVERTEXPROC)(GLenum mode);
3919+GLAPI PFNGLPROVOKINGVERTEXPROC glad_glProvokingVertex;
3920+#define glProvokingVertex glad_glProvokingVertex
3921+typedef GLsync (APIENTRYP PFNGLFENCESYNCPROC)(GLenum condition, GLbitfield flags);
3922+GLAPI PFNGLFENCESYNCPROC glad_glFenceSync;
3923+#define glFenceSync glad_glFenceSync
3924+typedef GLboolean (APIENTRYP PFNGLISSYNCPROC)(GLsync sync);
3925+GLAPI PFNGLISSYNCPROC glad_glIsSync;
3926+#define glIsSync glad_glIsSync
3927+typedef void (APIENTRYP PFNGLDELETESYNCPROC)(GLsync sync);
3928+GLAPI PFNGLDELETESYNCPROC glad_glDeleteSync;
3929+#define glDeleteSync glad_glDeleteSync
3930+typedef GLenum (APIENTRYP PFNGLCLIENTWAITSYNCPROC)(GLsync sync, GLbitfield flags, GLuint64 timeout);
3931+GLAPI PFNGLCLIENTWAITSYNCPROC glad_glClientWaitSync;
3932+#define glClientWaitSync glad_glClientWaitSync
3933+typedef void (APIENTRYP PFNGLWAITSYNCPROC)(GLsync sync, GLbitfield flags, GLuint64 timeout);
3934+GLAPI PFNGLWAITSYNCPROC glad_glWaitSync;
3935+#define glWaitSync glad_glWaitSync
3936+typedef void (APIENTRYP PFNGLGETINTEGER64VPROC)(GLenum pname, GLint64 *data);
3937+GLAPI PFNGLGETINTEGER64VPROC glad_glGetInteger64v;
3938+#define glGetInteger64v glad_glGetInteger64v
3939+typedef void (APIENTRYP PFNGLGETSYNCIVPROC)(GLsync sync, GLenum pname, GLsizei count, GLsizei *length, GLint *values);
3940+GLAPI PFNGLGETSYNCIVPROC glad_glGetSynciv;
3941+#define glGetSynciv glad_glGetSynciv
3942+typedef void (APIENTRYP PFNGLGETINTEGER64I_VPROC)(GLenum target, GLuint index, GLint64 *data);
3943+GLAPI PFNGLGETINTEGER64I_VPROC glad_glGetInteger64i_v;
3944+#define glGetInteger64i_v glad_glGetInteger64i_v
3945+typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERI64VPROC)(GLenum target, GLenum pname, GLint64 *params);
3946+GLAPI PFNGLGETBUFFERPARAMETERI64VPROC glad_glGetBufferParameteri64v;
3947+#define glGetBufferParameteri64v glad_glGetBufferParameteri64v
3948+typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREPROC)(GLenum target, GLenum attachment, GLuint texture, GLint level);
3949+GLAPI PFNGLFRAMEBUFFERTEXTUREPROC glad_glFramebufferTexture;
3950+#define glFramebufferTexture glad_glFramebufferTexture
3951+typedef void (APIENTRYP PFNGLTEXIMAGE2DMULTISAMPLEPROC)(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
3952+GLAPI PFNGLTEXIMAGE2DMULTISAMPLEPROC glad_glTexImage2DMultisample;
3953+#define glTexImage2DMultisample glad_glTexImage2DMultisample
3954+typedef void (APIENTRYP PFNGLTEXIMAGE3DMULTISAMPLEPROC)(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
3955+GLAPI PFNGLTEXIMAGE3DMULTISAMPLEPROC glad_glTexImage3DMultisample;
3956+#define glTexImage3DMultisample glad_glTexImage3DMultisample
3957+typedef void (APIENTRYP PFNGLGETMULTISAMPLEFVPROC)(GLenum pname, GLuint index, GLfloat *val);
3958+GLAPI PFNGLGETMULTISAMPLEFVPROC glad_glGetMultisamplefv;
3959+#define glGetMultisamplefv glad_glGetMultisamplefv
3960+typedef void (APIENTRYP PFNGLSAMPLEMASKIPROC)(GLuint maskNumber, GLbitfield mask);
3961+GLAPI PFNGLSAMPLEMASKIPROC glad_glSampleMaski;
3962+#define glSampleMaski glad_glSampleMaski
3963+#endif
3964+#ifndef GL_VERSION_3_3
3965+#define GL_VERSION_3_3 1
3966+GLAPI int GLAD_GL_VERSION_3_3;
3967+typedef void (APIENTRYP PFNGLBINDFRAGDATALOCATIONINDEXEDPROC)(GLuint program, GLuint colorNumber, GLuint index, const GLchar *name);
3968+GLAPI PFNGLBINDFRAGDATALOCATIONINDEXEDPROC glad_glBindFragDataLocationIndexed;
3969+#define glBindFragDataLocationIndexed glad_glBindFragDataLocationIndexed
3970+typedef GLint (APIENTRYP PFNGLGETFRAGDATAINDEXPROC)(GLuint program, const GLchar *name);
3971+GLAPI PFNGLGETFRAGDATAINDEXPROC glad_glGetFragDataIndex;
3972+#define glGetFragDataIndex glad_glGetFragDataIndex
3973+typedef void (APIENTRYP PFNGLGENSAMPLERSPROC)(GLsizei count, GLuint *samplers);
3974+GLAPI PFNGLGENSAMPLERSPROC glad_glGenSamplers;
3975+#define glGenSamplers glad_glGenSamplers
3976+typedef void (APIENTRYP PFNGLDELETESAMPLERSPROC)(GLsizei count, const GLuint *samplers);
3977+GLAPI PFNGLDELETESAMPLERSPROC glad_glDeleteSamplers;
3978+#define glDeleteSamplers glad_glDeleteSamplers
3979+typedef GLboolean (APIENTRYP PFNGLISSAMPLERPROC)(GLuint sampler);
3980+GLAPI PFNGLISSAMPLERPROC glad_glIsSampler;
3981+#define glIsSampler glad_glIsSampler
3982+typedef void (APIENTRYP PFNGLBINDSAMPLERPROC)(GLuint unit, GLuint sampler);
3983+GLAPI PFNGLBINDSAMPLERPROC glad_glBindSampler;
3984+#define glBindSampler glad_glBindSampler
3985+typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIPROC)(GLuint sampler, GLenum pname, GLint param);
3986+GLAPI PFNGLSAMPLERPARAMETERIPROC glad_glSamplerParameteri;
3987+#define glSamplerParameteri glad_glSamplerParameteri
3988+typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIVPROC)(GLuint sampler, GLenum pname, const GLint *param);
3989+GLAPI PFNGLSAMPLERPARAMETERIVPROC glad_glSamplerParameteriv;
3990+#define glSamplerParameteriv glad_glSamplerParameteriv
3991+typedef void (APIENTRYP PFNGLSAMPLERPARAMETERFPROC)(GLuint sampler, GLenum pname, GLfloat param);
3992+GLAPI PFNGLSAMPLERPARAMETERFPROC glad_glSamplerParameterf;
3993+#define glSamplerParameterf glad_glSamplerParameterf
3994+typedef void (APIENTRYP PFNGLSAMPLERPARAMETERFVPROC)(GLuint sampler, GLenum pname, const GLfloat *param);
3995+GLAPI PFNGLSAMPLERPARAMETERFVPROC glad_glSamplerParameterfv;
3996+#define glSamplerParameterfv glad_glSamplerParameterfv
3997+typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIIVPROC)(GLuint sampler, GLenum pname, const GLint *param);
3998+GLAPI PFNGLSAMPLERPARAMETERIIVPROC glad_glSamplerParameterIiv;
3999+#define glSamplerParameterIiv glad_glSamplerParameterIiv
4000+typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIUIVPROC)(GLuint sampler, GLenum pname, const GLuint *param);
4001+GLAPI PFNGLSAMPLERPARAMETERIUIVPROC glad_glSamplerParameterIuiv;
4002+#define glSamplerParameterIuiv glad_glSamplerParameterIuiv
4003+typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIVPROC)(GLuint sampler, GLenum pname, GLint *params);
4004+GLAPI PFNGLGETSAMPLERPARAMETERIVPROC glad_glGetSamplerParameteriv;
4005+#define glGetSamplerParameteriv glad_glGetSamplerParameteriv
4006+typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIIVPROC)(GLuint sampler, GLenum pname, GLint *params);
4007+GLAPI PFNGLGETSAMPLERPARAMETERIIVPROC glad_glGetSamplerParameterIiv;
4008+#define glGetSamplerParameterIiv glad_glGetSamplerParameterIiv
4009+typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERFVPROC)(GLuint sampler, GLenum pname, GLfloat *params);
4010+GLAPI PFNGLGETSAMPLERPARAMETERFVPROC glad_glGetSamplerParameterfv;
4011+#define glGetSamplerParameterfv glad_glGetSamplerParameterfv
4012+typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIUIVPROC)(GLuint sampler, GLenum pname, GLuint *params);
4013+GLAPI PFNGLGETSAMPLERPARAMETERIUIVPROC glad_glGetSamplerParameterIuiv;
4014+#define glGetSamplerParameterIuiv glad_glGetSamplerParameterIuiv
4015+typedef void (APIENTRYP PFNGLQUERYCOUNTERPROC)(GLuint id, GLenum target);
4016+GLAPI PFNGLQUERYCOUNTERPROC glad_glQueryCounter;
4017+#define glQueryCounter glad_glQueryCounter
4018+typedef void (APIENTRYP PFNGLGETQUERYOBJECTI64VPROC)(GLuint id, GLenum pname, GLint64 *params);
4019+GLAPI PFNGLGETQUERYOBJECTI64VPROC glad_glGetQueryObjecti64v;
4020+#define glGetQueryObjecti64v glad_glGetQueryObjecti64v
4021+typedef void (APIENTRYP PFNGLGETQUERYOBJECTUI64VPROC)(GLuint id, GLenum pname, GLuint64 *params);
4022+GLAPI PFNGLGETQUERYOBJECTUI64VPROC glad_glGetQueryObjectui64v;
4023+#define glGetQueryObjectui64v glad_glGetQueryObjectui64v
4024+typedef void (APIENTRYP PFNGLVERTEXATTRIBDIVISORPROC)(GLuint index, GLuint divisor);
4025+GLAPI PFNGLVERTEXATTRIBDIVISORPROC glad_glVertexAttribDivisor;
4026+#define glVertexAttribDivisor glad_glVertexAttribDivisor
4027+typedef void (APIENTRYP PFNGLVERTEXATTRIBP1UIPROC)(GLuint index, GLenum type, GLboolean normalized, GLuint value);
4028+GLAPI PFNGLVERTEXATTRIBP1UIPROC glad_glVertexAttribP1ui;
4029+#define glVertexAttribP1ui glad_glVertexAttribP1ui
4030+typedef void (APIENTRYP PFNGLVERTEXATTRIBP1UIVPROC)(GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
4031+GLAPI PFNGLVERTEXATTRIBP1UIVPROC glad_glVertexAttribP1uiv;
4032+#define glVertexAttribP1uiv glad_glVertexAttribP1uiv
4033+typedef void (APIENTRYP PFNGLVERTEXATTRIBP2UIPROC)(GLuint index, GLenum type, GLboolean normalized, GLuint value);
4034+GLAPI PFNGLVERTEXATTRIBP2UIPROC glad_glVertexAttribP2ui;
4035+#define glVertexAttribP2ui glad_glVertexAttribP2ui
4036+typedef void (APIENTRYP PFNGLVERTEXATTRIBP2UIVPROC)(GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
4037+GLAPI PFNGLVERTEXATTRIBP2UIVPROC glad_glVertexAttribP2uiv;
4038+#define glVertexAttribP2uiv glad_glVertexAttribP2uiv
4039+typedef void (APIENTRYP PFNGLVERTEXATTRIBP3UIPROC)(GLuint index, GLenum type, GLboolean normalized, GLuint value);
4040+GLAPI PFNGLVERTEXATTRIBP3UIPROC glad_glVertexAttribP3ui;
4041+#define glVertexAttribP3ui glad_glVertexAttribP3ui
4042+typedef void (APIENTRYP PFNGLVERTEXATTRIBP3UIVPROC)(GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
4043+GLAPI PFNGLVERTEXATTRIBP3UIVPROC glad_glVertexAttribP3uiv;
4044+#define glVertexAttribP3uiv glad_glVertexAttribP3uiv
4045+typedef void (APIENTRYP PFNGLVERTEXATTRIBP4UIPROC)(GLuint index, GLenum type, GLboolean normalized, GLuint value);
4046+GLAPI PFNGLVERTEXATTRIBP4UIPROC glad_glVertexAttribP4ui;
4047+#define glVertexAttribP4ui glad_glVertexAttribP4ui
4048+typedef void (APIENTRYP PFNGLVERTEXATTRIBP4UIVPROC)(GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
4049+GLAPI PFNGLVERTEXATTRIBP4UIVPROC glad_glVertexAttribP4uiv;
4050+#define glVertexAttribP4uiv glad_glVertexAttribP4uiv
4051+typedef void (APIENTRYP PFNGLVERTEXP2UIPROC)(GLenum type, GLuint value);
4052+GLAPI PFNGLVERTEXP2UIPROC glad_glVertexP2ui;
4053+#define glVertexP2ui glad_glVertexP2ui
4054+typedef void (APIENTRYP PFNGLVERTEXP2UIVPROC)(GLenum type, const GLuint *value);
4055+GLAPI PFNGLVERTEXP2UIVPROC glad_glVertexP2uiv;
4056+#define glVertexP2uiv glad_glVertexP2uiv
4057+typedef void (APIENTRYP PFNGLVERTEXP3UIPROC)(GLenum type, GLuint value);
4058+GLAPI PFNGLVERTEXP3UIPROC glad_glVertexP3ui;
4059+#define glVertexP3ui glad_glVertexP3ui
4060+typedef void (APIENTRYP PFNGLVERTEXP3UIVPROC)(GLenum type, const GLuint *value);
4061+GLAPI PFNGLVERTEXP3UIVPROC glad_glVertexP3uiv;
4062+#define glVertexP3uiv glad_glVertexP3uiv
4063+typedef void (APIENTRYP PFNGLVERTEXP4UIPROC)(GLenum type, GLuint value);
4064+GLAPI PFNGLVERTEXP4UIPROC glad_glVertexP4ui;
4065+#define glVertexP4ui glad_glVertexP4ui
4066+typedef void (APIENTRYP PFNGLVERTEXP4UIVPROC)(GLenum type, const GLuint *value);
4067+GLAPI PFNGLVERTEXP4UIVPROC glad_glVertexP4uiv;
4068+#define glVertexP4uiv glad_glVertexP4uiv
4069+typedef void (APIENTRYP PFNGLTEXCOORDP1UIPROC)(GLenum type, GLuint coords);
4070+GLAPI PFNGLTEXCOORDP1UIPROC glad_glTexCoordP1ui;
4071+#define glTexCoordP1ui glad_glTexCoordP1ui
4072+typedef void (APIENTRYP PFNGLTEXCOORDP1UIVPROC)(GLenum type, const GLuint *coords);
4073+GLAPI PFNGLTEXCOORDP1UIVPROC glad_glTexCoordP1uiv;
4074+#define glTexCoordP1uiv glad_glTexCoordP1uiv
4075+typedef void (APIENTRYP PFNGLTEXCOORDP2UIPROC)(GLenum type, GLuint coords);
4076+GLAPI PFNGLTEXCOORDP2UIPROC glad_glTexCoordP2ui;
4077+#define glTexCoordP2ui glad_glTexCoordP2ui
4078+typedef void (APIENTRYP PFNGLTEXCOORDP2UIVPROC)(GLenum type, const GLuint *coords);
4079+GLAPI PFNGLTEXCOORDP2UIVPROC glad_glTexCoordP2uiv;
4080+#define glTexCoordP2uiv glad_glTexCoordP2uiv
4081+typedef void (APIENTRYP PFNGLTEXCOORDP3UIPROC)(GLenum type, GLuint coords);
4082+GLAPI PFNGLTEXCOORDP3UIPROC glad_glTexCoordP3ui;
4083+#define glTexCoordP3ui glad_glTexCoordP3ui
4084+typedef void (APIENTRYP PFNGLTEXCOORDP3UIVPROC)(GLenum type, const GLuint *coords);
4085+GLAPI PFNGLTEXCOORDP3UIVPROC glad_glTexCoordP3uiv;
4086+#define glTexCoordP3uiv glad_glTexCoordP3uiv
4087+typedef void (APIENTRYP PFNGLTEXCOORDP4UIPROC)(GLenum type, GLuint coords);
4088+GLAPI PFNGLTEXCOORDP4UIPROC glad_glTexCoordP4ui;
4089+#define glTexCoordP4ui glad_glTexCoordP4ui
4090+typedef void (APIENTRYP PFNGLTEXCOORDP4UIVPROC)(GLenum type, const GLuint *coords);
4091+GLAPI PFNGLTEXCOORDP4UIVPROC glad_glTexCoordP4uiv;
4092+#define glTexCoordP4uiv glad_glTexCoordP4uiv
4093+typedef void (APIENTRYP PFNGLMULTITEXCOORDP1UIPROC)(GLenum texture, GLenum type, GLuint coords);
4094+GLAPI PFNGLMULTITEXCOORDP1UIPROC glad_glMultiTexCoordP1ui;
4095+#define glMultiTexCoordP1ui glad_glMultiTexCoordP1ui
4096+typedef void (APIENTRYP PFNGLMULTITEXCOORDP1UIVPROC)(GLenum texture, GLenum type, const GLuint *coords);
4097+GLAPI PFNGLMULTITEXCOORDP1UIVPROC glad_glMultiTexCoordP1uiv;
4098+#define glMultiTexCoordP1uiv glad_glMultiTexCoordP1uiv
4099+typedef void (APIENTRYP PFNGLMULTITEXCOORDP2UIPROC)(GLenum texture, GLenum type, GLuint coords);
4100+GLAPI PFNGLMULTITEXCOORDP2UIPROC glad_glMultiTexCoordP2ui;
4101+#define glMultiTexCoordP2ui glad_glMultiTexCoordP2ui
4102+typedef void (APIENTRYP PFNGLMULTITEXCOORDP2UIVPROC)(GLenum texture, GLenum type, const GLuint *coords);
4103+GLAPI PFNGLMULTITEXCOORDP2UIVPROC glad_glMultiTexCoordP2uiv;
4104+#define glMultiTexCoordP2uiv glad_glMultiTexCoordP2uiv
4105+typedef void (APIENTRYP PFNGLMULTITEXCOORDP3UIPROC)(GLenum texture, GLenum type, GLuint coords);
4106+GLAPI PFNGLMULTITEXCOORDP3UIPROC glad_glMultiTexCoordP3ui;
4107+#define glMultiTexCoordP3ui glad_glMultiTexCoordP3ui
4108+typedef void (APIENTRYP PFNGLMULTITEXCOORDP3UIVPROC)(GLenum texture, GLenum type, const GLuint *coords);
4109+GLAPI PFNGLMULTITEXCOORDP3UIVPROC glad_glMultiTexCoordP3uiv;
4110+#define glMultiTexCoordP3uiv glad_glMultiTexCoordP3uiv
4111+typedef void (APIENTRYP PFNGLMULTITEXCOORDP4UIPROC)(GLenum texture, GLenum type, GLuint coords);
4112+GLAPI PFNGLMULTITEXCOORDP4UIPROC glad_glMultiTexCoordP4ui;
4113+#define glMultiTexCoordP4ui glad_glMultiTexCoordP4ui
4114+typedef void (APIENTRYP PFNGLMULTITEXCOORDP4UIVPROC)(GLenum texture, GLenum type, const GLuint *coords);
4115+GLAPI PFNGLMULTITEXCOORDP4UIVPROC glad_glMultiTexCoordP4uiv;
4116+#define glMultiTexCoordP4uiv glad_glMultiTexCoordP4uiv
4117+typedef void (APIENTRYP PFNGLNORMALP3UIPROC)(GLenum type, GLuint coords);
4118+GLAPI PFNGLNORMALP3UIPROC glad_glNormalP3ui;
4119+#define glNormalP3ui glad_glNormalP3ui
4120+typedef void (APIENTRYP PFNGLNORMALP3UIVPROC)(GLenum type, const GLuint *coords);
4121+GLAPI PFNGLNORMALP3UIVPROC glad_glNormalP3uiv;
4122+#define glNormalP3uiv glad_glNormalP3uiv
4123+typedef void (APIENTRYP PFNGLCOLORP3UIPROC)(GLenum type, GLuint color);
4124+GLAPI PFNGLCOLORP3UIPROC glad_glColorP3ui;
4125+#define glColorP3ui glad_glColorP3ui
4126+typedef void (APIENTRYP PFNGLCOLORP3UIVPROC)(GLenum type, const GLuint *color);
4127+GLAPI PFNGLCOLORP3UIVPROC glad_glColorP3uiv;
4128+#define glColorP3uiv glad_glColorP3uiv
4129+typedef void (APIENTRYP PFNGLCOLORP4UIPROC)(GLenum type, GLuint color);
4130+GLAPI PFNGLCOLORP4UIPROC glad_glColorP4ui;
4131+#define glColorP4ui glad_glColorP4ui
4132+typedef void (APIENTRYP PFNGLCOLORP4UIVPROC)(GLenum type, const GLuint *color);
4133+GLAPI PFNGLCOLORP4UIVPROC glad_glColorP4uiv;
4134+#define glColorP4uiv glad_glColorP4uiv
4135+typedef void (APIENTRYP PFNGLSECONDARYCOLORP3UIPROC)(GLenum type, GLuint color);
4136+GLAPI PFNGLSECONDARYCOLORP3UIPROC glad_glSecondaryColorP3ui;
4137+#define glSecondaryColorP3ui glad_glSecondaryColorP3ui
4138+typedef void (APIENTRYP PFNGLSECONDARYCOLORP3UIVPROC)(GLenum type, const GLuint *color);
4139+GLAPI PFNGLSECONDARYCOLORP3UIVPROC glad_glSecondaryColorP3uiv;
4140+#define glSecondaryColorP3uiv glad_glSecondaryColorP3uiv
4141+#endif
4142+#ifndef GL_VERSION_4_0
4143+#define GL_VERSION_4_0 1
4144+GLAPI int GLAD_GL_VERSION_4_0;
4145+typedef void (APIENTRYP PFNGLMINSAMPLESHADINGPROC)(GLfloat value);
4146+GLAPI PFNGLMINSAMPLESHADINGPROC glad_glMinSampleShading;
4147+#define glMinSampleShading glad_glMinSampleShading
4148+typedef void (APIENTRYP PFNGLBLENDEQUATIONIPROC)(GLuint buf, GLenum mode);
4149+GLAPI PFNGLBLENDEQUATIONIPROC glad_glBlendEquationi;
4150+#define glBlendEquationi glad_glBlendEquationi
4151+typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEIPROC)(GLuint buf, GLenum modeRGB, GLenum modeAlpha);
4152+GLAPI PFNGLBLENDEQUATIONSEPARATEIPROC glad_glBlendEquationSeparatei;
4153+#define glBlendEquationSeparatei glad_glBlendEquationSeparatei
4154+typedef void (APIENTRYP PFNGLBLENDFUNCIPROC)(GLuint buf, GLenum src, GLenum dst);
4155+GLAPI PFNGLBLENDFUNCIPROC glad_glBlendFunci;
4156+#define glBlendFunci glad_glBlendFunci
4157+typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEIPROC)(GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
4158+GLAPI PFNGLBLENDFUNCSEPARATEIPROC glad_glBlendFuncSeparatei;
4159+#define glBlendFuncSeparatei glad_glBlendFuncSeparatei
4160+typedef void (APIENTRYP PFNGLDRAWARRAYSINDIRECTPROC)(GLenum mode, const void *indirect);
4161+GLAPI PFNGLDRAWARRAYSINDIRECTPROC glad_glDrawArraysIndirect;
4162+#define glDrawArraysIndirect glad_glDrawArraysIndirect
4163+typedef void (APIENTRYP PFNGLDRAWELEMENTSINDIRECTPROC)(GLenum mode, GLenum type, const void *indirect);
4164+GLAPI PFNGLDRAWELEMENTSINDIRECTPROC glad_glDrawElementsIndirect;
4165+#define glDrawElementsIndirect glad_glDrawElementsIndirect
4166+typedef void (APIENTRYP PFNGLUNIFORM1DPROC)(GLint location, GLdouble x);
4167+GLAPI PFNGLUNIFORM1DPROC glad_glUniform1d;
4168+#define glUniform1d glad_glUniform1d
4169+typedef void (APIENTRYP PFNGLUNIFORM2DPROC)(GLint location, GLdouble x, GLdouble y);
4170+GLAPI PFNGLUNIFORM2DPROC glad_glUniform2d;
4171+#define glUniform2d glad_glUniform2d
4172+typedef void (APIENTRYP PFNGLUNIFORM3DPROC)(GLint location, GLdouble x, GLdouble y, GLdouble z);
4173+GLAPI PFNGLUNIFORM3DPROC glad_glUniform3d;
4174+#define glUniform3d glad_glUniform3d
4175+typedef void (APIENTRYP PFNGLUNIFORM4DPROC)(GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
4176+GLAPI PFNGLUNIFORM4DPROC glad_glUniform4d;
4177+#define glUniform4d glad_glUniform4d
4178+typedef void (APIENTRYP PFNGLUNIFORM1DVPROC)(GLint location, GLsizei count, const GLdouble *value);
4179+GLAPI PFNGLUNIFORM1DVPROC glad_glUniform1dv;
4180+#define glUniform1dv glad_glUniform1dv
4181+typedef void (APIENTRYP PFNGLUNIFORM2DVPROC)(GLint location, GLsizei count, const GLdouble *value);
4182+GLAPI PFNGLUNIFORM2DVPROC glad_glUniform2dv;
4183+#define glUniform2dv glad_glUniform2dv
4184+typedef void (APIENTRYP PFNGLUNIFORM3DVPROC)(GLint location, GLsizei count, const GLdouble *value);
4185+GLAPI PFNGLUNIFORM3DVPROC glad_glUniform3dv;
4186+#define glUniform3dv glad_glUniform3dv
4187+typedef void (APIENTRYP PFNGLUNIFORM4DVPROC)(GLint location, GLsizei count, const GLdouble *value);
4188+GLAPI PFNGLUNIFORM4DVPROC glad_glUniform4dv;
4189+#define glUniform4dv glad_glUniform4dv
4190+typedef void (APIENTRYP PFNGLUNIFORMMATRIX2DVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
4191+GLAPI PFNGLUNIFORMMATRIX2DVPROC glad_glUniformMatrix2dv;
4192+#define glUniformMatrix2dv glad_glUniformMatrix2dv
4193+typedef void (APIENTRYP PFNGLUNIFORMMATRIX3DVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
4194+GLAPI PFNGLUNIFORMMATRIX3DVPROC glad_glUniformMatrix3dv;
4195+#define glUniformMatrix3dv glad_glUniformMatrix3dv
4196+typedef void (APIENTRYP PFNGLUNIFORMMATRIX4DVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
4197+GLAPI PFNGLUNIFORMMATRIX4DVPROC glad_glUniformMatrix4dv;
4198+#define glUniformMatrix4dv glad_glUniformMatrix4dv
4199+typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X3DVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
4200+GLAPI PFNGLUNIFORMMATRIX2X3DVPROC glad_glUniformMatrix2x3dv;
4201+#define glUniformMatrix2x3dv glad_glUniformMatrix2x3dv
4202+typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X4DVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
4203+GLAPI PFNGLUNIFORMMATRIX2X4DVPROC glad_glUniformMatrix2x4dv;
4204+#define glUniformMatrix2x4dv glad_glUniformMatrix2x4dv
4205+typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X2DVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
4206+GLAPI PFNGLUNIFORMMATRIX3X2DVPROC glad_glUniformMatrix3x2dv;
4207+#define glUniformMatrix3x2dv glad_glUniformMatrix3x2dv
4208+typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X4DVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
4209+GLAPI PFNGLUNIFORMMATRIX3X4DVPROC glad_glUniformMatrix3x4dv;
4210+#define glUniformMatrix3x4dv glad_glUniformMatrix3x4dv
4211+typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X2DVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
4212+GLAPI PFNGLUNIFORMMATRIX4X2DVPROC glad_glUniformMatrix4x2dv;
4213+#define glUniformMatrix4x2dv glad_glUniformMatrix4x2dv
4214+typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X3DVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
4215+GLAPI PFNGLUNIFORMMATRIX4X3DVPROC glad_glUniformMatrix4x3dv;
4216+#define glUniformMatrix4x3dv glad_glUniformMatrix4x3dv
4217+typedef void (APIENTRYP PFNGLGETUNIFORMDVPROC)(GLuint program, GLint location, GLdouble *params);
4218+GLAPI PFNGLGETUNIFORMDVPROC glad_glGetUniformdv;
4219+#define glGetUniformdv glad_glGetUniformdv
4220+typedef GLint (APIENTRYP PFNGLGETSUBROUTINEUNIFORMLOCATIONPROC)(GLuint program, GLenum shadertype, const GLchar *name);
4221+GLAPI PFNGLGETSUBROUTINEUNIFORMLOCATIONPROC glad_glGetSubroutineUniformLocation;
4222+#define glGetSubroutineUniformLocation glad_glGetSubroutineUniformLocation
4223+typedef GLuint (APIENTRYP PFNGLGETSUBROUTINEINDEXPROC)(GLuint program, GLenum shadertype, const GLchar *name);
4224+GLAPI PFNGLGETSUBROUTINEINDEXPROC glad_glGetSubroutineIndex;
4225+#define glGetSubroutineIndex glad_glGetSubroutineIndex
4226+typedef void (APIENTRYP PFNGLGETACTIVESUBROUTINEUNIFORMIVPROC)(GLuint program, GLenum shadertype, GLuint index, GLenum pname, GLint *values);
4227+GLAPI PFNGLGETACTIVESUBROUTINEUNIFORMIVPROC glad_glGetActiveSubroutineUniformiv;
4228+#define glGetActiveSubroutineUniformiv glad_glGetActiveSubroutineUniformiv
4229+typedef void (APIENTRYP PFNGLGETACTIVESUBROUTINEUNIFORMNAMEPROC)(GLuint program, GLenum shadertype, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name);
4230+GLAPI PFNGLGETACTIVESUBROUTINEUNIFORMNAMEPROC glad_glGetActiveSubroutineUniformName;
4231+#define glGetActiveSubroutineUniformName glad_glGetActiveSubroutineUniformName
4232+typedef void (APIENTRYP PFNGLGETACTIVESUBROUTINENAMEPROC)(GLuint program, GLenum shadertype, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name);
4233+GLAPI PFNGLGETACTIVESUBROUTINENAMEPROC glad_glGetActiveSubroutineName;
4234+#define glGetActiveSubroutineName glad_glGetActiveSubroutineName
4235+typedef void (APIENTRYP PFNGLUNIFORMSUBROUTINESUIVPROC)(GLenum shadertype, GLsizei count, const GLuint *indices);
4236+GLAPI PFNGLUNIFORMSUBROUTINESUIVPROC glad_glUniformSubroutinesuiv;
4237+#define glUniformSubroutinesuiv glad_glUniformSubroutinesuiv
4238+typedef void (APIENTRYP PFNGLGETUNIFORMSUBROUTINEUIVPROC)(GLenum shadertype, GLint location, GLuint *params);
4239+GLAPI PFNGLGETUNIFORMSUBROUTINEUIVPROC glad_glGetUniformSubroutineuiv;
4240+#define glGetUniformSubroutineuiv glad_glGetUniformSubroutineuiv
4241+typedef void (APIENTRYP PFNGLGETPROGRAMSTAGEIVPROC)(GLuint program, GLenum shadertype, GLenum pname, GLint *values);
4242+GLAPI PFNGLGETPROGRAMSTAGEIVPROC glad_glGetProgramStageiv;
4243+#define glGetProgramStageiv glad_glGetProgramStageiv
4244+typedef void (APIENTRYP PFNGLPATCHPARAMETERIPROC)(GLenum pname, GLint value);
4245+GLAPI PFNGLPATCHPARAMETERIPROC glad_glPatchParameteri;
4246+#define glPatchParameteri glad_glPatchParameteri
4247+typedef void (APIENTRYP PFNGLPATCHPARAMETERFVPROC)(GLenum pname, const GLfloat *values);
4248+GLAPI PFNGLPATCHPARAMETERFVPROC glad_glPatchParameterfv;
4249+#define glPatchParameterfv glad_glPatchParameterfv
4250+typedef void (APIENTRYP PFNGLBINDTRANSFORMFEEDBACKPROC)(GLenum target, GLuint id);
4251+GLAPI PFNGLBINDTRANSFORMFEEDBACKPROC glad_glBindTransformFeedback;
4252+#define glBindTransformFeedback glad_glBindTransformFeedback
4253+typedef void (APIENTRYP PFNGLDELETETRANSFORMFEEDBACKSPROC)(GLsizei n, const GLuint *ids);
4254+GLAPI PFNGLDELETETRANSFORMFEEDBACKSPROC glad_glDeleteTransformFeedbacks;
4255+#define glDeleteTransformFeedbacks glad_glDeleteTransformFeedbacks
4256+typedef void (APIENTRYP PFNGLGENTRANSFORMFEEDBACKSPROC)(GLsizei n, GLuint *ids);
4257+GLAPI PFNGLGENTRANSFORMFEEDBACKSPROC glad_glGenTransformFeedbacks;
4258+#define glGenTransformFeedbacks glad_glGenTransformFeedbacks
4259+typedef GLboolean (APIENTRYP PFNGLISTRANSFORMFEEDBACKPROC)(GLuint id);
4260+GLAPI PFNGLISTRANSFORMFEEDBACKPROC glad_glIsTransformFeedback;
4261+#define glIsTransformFeedback glad_glIsTransformFeedback
4262+typedef void (APIENTRYP PFNGLPAUSETRANSFORMFEEDBACKPROC)(void);
4263+GLAPI PFNGLPAUSETRANSFORMFEEDBACKPROC glad_glPauseTransformFeedback;
4264+#define glPauseTransformFeedback glad_glPauseTransformFeedback
4265+typedef void (APIENTRYP PFNGLRESUMETRANSFORMFEEDBACKPROC)(void);
4266+GLAPI PFNGLRESUMETRANSFORMFEEDBACKPROC glad_glResumeTransformFeedback;
4267+#define glResumeTransformFeedback glad_glResumeTransformFeedback
4268+typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKPROC)(GLenum mode, GLuint id);
4269+GLAPI PFNGLDRAWTRANSFORMFEEDBACKPROC glad_glDrawTransformFeedback;
4270+#define glDrawTransformFeedback glad_glDrawTransformFeedback
4271+typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKSTREAMPROC)(GLenum mode, GLuint id, GLuint stream);
4272+GLAPI PFNGLDRAWTRANSFORMFEEDBACKSTREAMPROC glad_glDrawTransformFeedbackStream;
4273+#define glDrawTransformFeedbackStream glad_glDrawTransformFeedbackStream
4274+typedef void (APIENTRYP PFNGLBEGINQUERYINDEXEDPROC)(GLenum target, GLuint index, GLuint id);
4275+GLAPI PFNGLBEGINQUERYINDEXEDPROC glad_glBeginQueryIndexed;
4276+#define glBeginQueryIndexed glad_glBeginQueryIndexed
4277+typedef void (APIENTRYP PFNGLENDQUERYINDEXEDPROC)(GLenum target, GLuint index);
4278+GLAPI PFNGLENDQUERYINDEXEDPROC glad_glEndQueryIndexed;
4279+#define glEndQueryIndexed glad_glEndQueryIndexed
4280+typedef void (APIENTRYP PFNGLGETQUERYINDEXEDIVPROC)(GLenum target, GLuint index, GLenum pname, GLint *params);
4281+GLAPI PFNGLGETQUERYINDEXEDIVPROC glad_glGetQueryIndexediv;
4282+#define glGetQueryIndexediv glad_glGetQueryIndexediv
4283+#endif
4284+#ifndef GL_VERSION_4_1
4285+#define GL_VERSION_4_1 1
4286+GLAPI int GLAD_GL_VERSION_4_1;
4287+typedef void (APIENTRYP PFNGLRELEASESHADERCOMPILERPROC)(void);
4288+GLAPI PFNGLRELEASESHADERCOMPILERPROC glad_glReleaseShaderCompiler;
4289+#define glReleaseShaderCompiler glad_glReleaseShaderCompiler
4290+typedef void (APIENTRYP PFNGLSHADERBINARYPROC)(GLsizei count, const GLuint *shaders, GLenum binaryFormat, const void *binary, GLsizei length);
4291+GLAPI PFNGLSHADERBINARYPROC glad_glShaderBinary;
4292+#define glShaderBinary glad_glShaderBinary
4293+typedef void (APIENTRYP PFNGLGETSHADERPRECISIONFORMATPROC)(GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision);
4294+GLAPI PFNGLGETSHADERPRECISIONFORMATPROC glad_glGetShaderPrecisionFormat;
4295+#define glGetShaderPrecisionFormat glad_glGetShaderPrecisionFormat
4296+typedef void (APIENTRYP PFNGLDEPTHRANGEFPROC)(GLfloat n, GLfloat f);
4297+GLAPI PFNGLDEPTHRANGEFPROC glad_glDepthRangef;
4298+#define glDepthRangef glad_glDepthRangef
4299+typedef void (APIENTRYP PFNGLCLEARDEPTHFPROC)(GLfloat d);
4300+GLAPI PFNGLCLEARDEPTHFPROC glad_glClearDepthf;
4301+#define glClearDepthf glad_glClearDepthf
4302+typedef void (APIENTRYP PFNGLGETPROGRAMBINARYPROC)(GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, void *binary);
4303+GLAPI PFNGLGETPROGRAMBINARYPROC glad_glGetProgramBinary;
4304+#define glGetProgramBinary glad_glGetProgramBinary
4305+typedef void (APIENTRYP PFNGLPROGRAMBINARYPROC)(GLuint program, GLenum binaryFormat, const void *binary, GLsizei length);
4306+GLAPI PFNGLPROGRAMBINARYPROC glad_glProgramBinary;
4307+#define glProgramBinary glad_glProgramBinary
4308+typedef void (APIENTRYP PFNGLPROGRAMPARAMETERIPROC)(GLuint program, GLenum pname, GLint value);
4309+GLAPI PFNGLPROGRAMPARAMETERIPROC glad_glProgramParameteri;
4310+#define glProgramParameteri glad_glProgramParameteri
4311+typedef void (APIENTRYP PFNGLUSEPROGRAMSTAGESPROC)(GLuint pipeline, GLbitfield stages, GLuint program);
4312+GLAPI PFNGLUSEPROGRAMSTAGESPROC glad_glUseProgramStages;
4313+#define glUseProgramStages glad_glUseProgramStages
4314+typedef void (APIENTRYP PFNGLACTIVESHADERPROGRAMPROC)(GLuint pipeline, GLuint program);
4315+GLAPI PFNGLACTIVESHADERPROGRAMPROC glad_glActiveShaderProgram;
4316+#define glActiveShaderProgram glad_glActiveShaderProgram
4317+typedef GLuint (APIENTRYP PFNGLCREATESHADERPROGRAMVPROC)(GLenum type, GLsizei count, const GLchar *const*strings);
4318+GLAPI PFNGLCREATESHADERPROGRAMVPROC glad_glCreateShaderProgramv;
4319+#define glCreateShaderProgramv glad_glCreateShaderProgramv
4320+typedef void (APIENTRYP PFNGLBINDPROGRAMPIPELINEPROC)(GLuint pipeline);
4321+GLAPI PFNGLBINDPROGRAMPIPELINEPROC glad_glBindProgramPipeline;
4322+#define glBindProgramPipeline glad_glBindProgramPipeline
4323+typedef void (APIENTRYP PFNGLDELETEPROGRAMPIPELINESPROC)(GLsizei n, const GLuint *pipelines);
4324+GLAPI PFNGLDELETEPROGRAMPIPELINESPROC glad_glDeleteProgramPipelines;
4325+#define glDeleteProgramPipelines glad_glDeleteProgramPipelines
4326+typedef void (APIENTRYP PFNGLGENPROGRAMPIPELINESPROC)(GLsizei n, GLuint *pipelines);
4327+GLAPI PFNGLGENPROGRAMPIPELINESPROC glad_glGenProgramPipelines;
4328+#define glGenProgramPipelines glad_glGenProgramPipelines
4329+typedef GLboolean (APIENTRYP PFNGLISPROGRAMPIPELINEPROC)(GLuint pipeline);
4330+GLAPI PFNGLISPROGRAMPIPELINEPROC glad_glIsProgramPipeline;
4331+#define glIsProgramPipeline glad_glIsProgramPipeline
4332+typedef void (APIENTRYP PFNGLGETPROGRAMPIPELINEIVPROC)(GLuint pipeline, GLenum pname, GLint *params);
4333+GLAPI PFNGLGETPROGRAMPIPELINEIVPROC glad_glGetProgramPipelineiv;
4334+#define glGetProgramPipelineiv glad_glGetProgramPipelineiv
4335+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IPROC)(GLuint program, GLint location, GLint v0);
4336+GLAPI PFNGLPROGRAMUNIFORM1IPROC glad_glProgramUniform1i;
4337+#define glProgramUniform1i glad_glProgramUniform1i
4338+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IVPROC)(GLuint program, GLint location, GLsizei count, const GLint *value);
4339+GLAPI PFNGLPROGRAMUNIFORM1IVPROC glad_glProgramUniform1iv;
4340+#define glProgramUniform1iv glad_glProgramUniform1iv
4341+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FPROC)(GLuint program, GLint location, GLfloat v0);
4342+GLAPI PFNGLPROGRAMUNIFORM1FPROC glad_glProgramUniform1f;
4343+#define glProgramUniform1f glad_glProgramUniform1f
4344+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FVPROC)(GLuint program, GLint location, GLsizei count, const GLfloat *value);
4345+GLAPI PFNGLPROGRAMUNIFORM1FVPROC glad_glProgramUniform1fv;
4346+#define glProgramUniform1fv glad_glProgramUniform1fv
4347+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1DPROC)(GLuint program, GLint location, GLdouble v0);
4348+GLAPI PFNGLPROGRAMUNIFORM1DPROC glad_glProgramUniform1d;
4349+#define glProgramUniform1d glad_glProgramUniform1d
4350+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1DVPROC)(GLuint program, GLint location, GLsizei count, const GLdouble *value);
4351+GLAPI PFNGLPROGRAMUNIFORM1DVPROC glad_glProgramUniform1dv;
4352+#define glProgramUniform1dv glad_glProgramUniform1dv
4353+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIPROC)(GLuint program, GLint location, GLuint v0);
4354+GLAPI PFNGLPROGRAMUNIFORM1UIPROC glad_glProgramUniform1ui;
4355+#define glProgramUniform1ui glad_glProgramUniform1ui
4356+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIVPROC)(GLuint program, GLint location, GLsizei count, const GLuint *value);
4357+GLAPI PFNGLPROGRAMUNIFORM1UIVPROC glad_glProgramUniform1uiv;
4358+#define glProgramUniform1uiv glad_glProgramUniform1uiv
4359+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IPROC)(GLuint program, GLint location, GLint v0, GLint v1);
4360+GLAPI PFNGLPROGRAMUNIFORM2IPROC glad_glProgramUniform2i;
4361+#define glProgramUniform2i glad_glProgramUniform2i
4362+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IVPROC)(GLuint program, GLint location, GLsizei count, const GLint *value);
4363+GLAPI PFNGLPROGRAMUNIFORM2IVPROC glad_glProgramUniform2iv;
4364+#define glProgramUniform2iv glad_glProgramUniform2iv
4365+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FPROC)(GLuint program, GLint location, GLfloat v0, GLfloat v1);
4366+GLAPI PFNGLPROGRAMUNIFORM2FPROC glad_glProgramUniform2f;
4367+#define glProgramUniform2f glad_glProgramUniform2f
4368+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FVPROC)(GLuint program, GLint location, GLsizei count, const GLfloat *value);
4369+GLAPI PFNGLPROGRAMUNIFORM2FVPROC glad_glProgramUniform2fv;
4370+#define glProgramUniform2fv glad_glProgramUniform2fv
4371+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2DPROC)(GLuint program, GLint location, GLdouble v0, GLdouble v1);
4372+GLAPI PFNGLPROGRAMUNIFORM2DPROC glad_glProgramUniform2d;
4373+#define glProgramUniform2d glad_glProgramUniform2d
4374+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2DVPROC)(GLuint program, GLint location, GLsizei count, const GLdouble *value);
4375+GLAPI PFNGLPROGRAMUNIFORM2DVPROC glad_glProgramUniform2dv;
4376+#define glProgramUniform2dv glad_glProgramUniform2dv
4377+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIPROC)(GLuint program, GLint location, GLuint v0, GLuint v1);
4378+GLAPI PFNGLPROGRAMUNIFORM2UIPROC glad_glProgramUniform2ui;
4379+#define glProgramUniform2ui glad_glProgramUniform2ui
4380+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIVPROC)(GLuint program, GLint location, GLsizei count, const GLuint *value);
4381+GLAPI PFNGLPROGRAMUNIFORM2UIVPROC glad_glProgramUniform2uiv;
4382+#define glProgramUniform2uiv glad_glProgramUniform2uiv
4383+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IPROC)(GLuint program, GLint location, GLint v0, GLint v1, GLint v2);
4384+GLAPI PFNGLPROGRAMUNIFORM3IPROC glad_glProgramUniform3i;
4385+#define glProgramUniform3i glad_glProgramUniform3i
4386+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IVPROC)(GLuint program, GLint location, GLsizei count, const GLint *value);
4387+GLAPI PFNGLPROGRAMUNIFORM3IVPROC glad_glProgramUniform3iv;
4388+#define glProgramUniform3iv glad_glProgramUniform3iv
4389+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FPROC)(GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
4390+GLAPI PFNGLPROGRAMUNIFORM3FPROC glad_glProgramUniform3f;
4391+#define glProgramUniform3f glad_glProgramUniform3f
4392+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FVPROC)(GLuint program, GLint location, GLsizei count, const GLfloat *value);
4393+GLAPI PFNGLPROGRAMUNIFORM3FVPROC glad_glProgramUniform3fv;
4394+#define glProgramUniform3fv glad_glProgramUniform3fv
4395+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3DPROC)(GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2);
4396+GLAPI PFNGLPROGRAMUNIFORM3DPROC glad_glProgramUniform3d;
4397+#define glProgramUniform3d glad_glProgramUniform3d
4398+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3DVPROC)(GLuint program, GLint location, GLsizei count, const GLdouble *value);
4399+GLAPI PFNGLPROGRAMUNIFORM3DVPROC glad_glProgramUniform3dv;
4400+#define glProgramUniform3dv glad_glProgramUniform3dv
4401+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIPROC)(GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2);
4402+GLAPI PFNGLPROGRAMUNIFORM3UIPROC glad_glProgramUniform3ui;
4403+#define glProgramUniform3ui glad_glProgramUniform3ui
4404+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIVPROC)(GLuint program, GLint location, GLsizei count, const GLuint *value);
4405+GLAPI PFNGLPROGRAMUNIFORM3UIVPROC glad_glProgramUniform3uiv;
4406+#define glProgramUniform3uiv glad_glProgramUniform3uiv
4407+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IPROC)(GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
4408+GLAPI PFNGLPROGRAMUNIFORM4IPROC glad_glProgramUniform4i;
4409+#define glProgramUniform4i glad_glProgramUniform4i
4410+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IVPROC)(GLuint program, GLint location, GLsizei count, const GLint *value);
4411+GLAPI PFNGLPROGRAMUNIFORM4IVPROC glad_glProgramUniform4iv;
4412+#define glProgramUniform4iv glad_glProgramUniform4iv
4413+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FPROC)(GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
4414+GLAPI PFNGLPROGRAMUNIFORM4FPROC glad_glProgramUniform4f;
4415+#define glProgramUniform4f glad_glProgramUniform4f
4416+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FVPROC)(GLuint program, GLint location, GLsizei count, const GLfloat *value);
4417+GLAPI PFNGLPROGRAMUNIFORM4FVPROC glad_glProgramUniform4fv;
4418+#define glProgramUniform4fv glad_glProgramUniform4fv
4419+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4DPROC)(GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2, GLdouble v3);
4420+GLAPI PFNGLPROGRAMUNIFORM4DPROC glad_glProgramUniform4d;
4421+#define glProgramUniform4d glad_glProgramUniform4d
4422+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4DVPROC)(GLuint program, GLint location, GLsizei count, const GLdouble *value);
4423+GLAPI PFNGLPROGRAMUNIFORM4DVPROC glad_glProgramUniform4dv;
4424+#define glProgramUniform4dv glad_glProgramUniform4dv
4425+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIPROC)(GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
4426+GLAPI PFNGLPROGRAMUNIFORM4UIPROC glad_glProgramUniform4ui;
4427+#define glProgramUniform4ui glad_glProgramUniform4ui
4428+typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIVPROC)(GLuint program, GLint location, GLsizei count, const GLuint *value);
4429+GLAPI PFNGLPROGRAMUNIFORM4UIVPROC glad_glProgramUniform4uiv;
4430+#define glProgramUniform4uiv glad_glProgramUniform4uiv
4431+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2FVPROC)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
4432+GLAPI PFNGLPROGRAMUNIFORMMATRIX2FVPROC glad_glProgramUniformMatrix2fv;
4433+#define glProgramUniformMatrix2fv glad_glProgramUniformMatrix2fv
4434+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3FVPROC)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
4435+GLAPI PFNGLPROGRAMUNIFORMMATRIX3FVPROC glad_glProgramUniformMatrix3fv;
4436+#define glProgramUniformMatrix3fv glad_glProgramUniformMatrix3fv
4437+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4FVPROC)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
4438+GLAPI PFNGLPROGRAMUNIFORMMATRIX4FVPROC glad_glProgramUniformMatrix4fv;
4439+#define glProgramUniformMatrix4fv glad_glProgramUniformMatrix4fv
4440+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2DVPROC)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
4441+GLAPI PFNGLPROGRAMUNIFORMMATRIX2DVPROC glad_glProgramUniformMatrix2dv;
4442+#define glProgramUniformMatrix2dv glad_glProgramUniformMatrix2dv
4443+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3DVPROC)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
4444+GLAPI PFNGLPROGRAMUNIFORMMATRIX3DVPROC glad_glProgramUniformMatrix3dv;
4445+#define glProgramUniformMatrix3dv glad_glProgramUniformMatrix3dv
4446+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4DVPROC)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
4447+GLAPI PFNGLPROGRAMUNIFORMMATRIX4DVPROC glad_glProgramUniformMatrix4dv;
4448+#define glProgramUniformMatrix4dv glad_glProgramUniformMatrix4dv
4449+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3FVPROC)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
4450+GLAPI PFNGLPROGRAMUNIFORMMATRIX2X3FVPROC glad_glProgramUniformMatrix2x3fv;
4451+#define glProgramUniformMatrix2x3fv glad_glProgramUniformMatrix2x3fv
4452+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2FVPROC)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
4453+GLAPI PFNGLPROGRAMUNIFORMMATRIX3X2FVPROC glad_glProgramUniformMatrix3x2fv;
4454+#define glProgramUniformMatrix3x2fv glad_glProgramUniformMatrix3x2fv
4455+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4FVPROC)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
4456+GLAPI PFNGLPROGRAMUNIFORMMATRIX2X4FVPROC glad_glProgramUniformMatrix2x4fv;
4457+#define glProgramUniformMatrix2x4fv glad_glProgramUniformMatrix2x4fv
4458+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2FVPROC)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
4459+GLAPI PFNGLPROGRAMUNIFORMMATRIX4X2FVPROC glad_glProgramUniformMatrix4x2fv;
4460+#define glProgramUniformMatrix4x2fv glad_glProgramUniformMatrix4x2fv
4461+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4FVPROC)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
4462+GLAPI PFNGLPROGRAMUNIFORMMATRIX3X4FVPROC glad_glProgramUniformMatrix3x4fv;
4463+#define glProgramUniformMatrix3x4fv glad_glProgramUniformMatrix3x4fv
4464+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3FVPROC)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
4465+GLAPI PFNGLPROGRAMUNIFORMMATRIX4X3FVPROC glad_glProgramUniformMatrix4x3fv;
4466+#define glProgramUniformMatrix4x3fv glad_glProgramUniformMatrix4x3fv
4467+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3DVPROC)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
4468+GLAPI PFNGLPROGRAMUNIFORMMATRIX2X3DVPROC glad_glProgramUniformMatrix2x3dv;
4469+#define glProgramUniformMatrix2x3dv glad_glProgramUniformMatrix2x3dv
4470+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2DVPROC)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
4471+GLAPI PFNGLPROGRAMUNIFORMMATRIX3X2DVPROC glad_glProgramUniformMatrix3x2dv;
4472+#define glProgramUniformMatrix3x2dv glad_glProgramUniformMatrix3x2dv
4473+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4DVPROC)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
4474+GLAPI PFNGLPROGRAMUNIFORMMATRIX2X4DVPROC glad_glProgramUniformMatrix2x4dv;
4475+#define glProgramUniformMatrix2x4dv glad_glProgramUniformMatrix2x4dv
4476+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2DVPROC)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
4477+GLAPI PFNGLPROGRAMUNIFORMMATRIX4X2DVPROC glad_glProgramUniformMatrix4x2dv;
4478+#define glProgramUniformMatrix4x2dv glad_glProgramUniformMatrix4x2dv
4479+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4DVPROC)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
4480+GLAPI PFNGLPROGRAMUNIFORMMATRIX3X4DVPROC glad_glProgramUniformMatrix3x4dv;
4481+#define glProgramUniformMatrix3x4dv glad_glProgramUniformMatrix3x4dv
4482+typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3DVPROC)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
4483+GLAPI PFNGLPROGRAMUNIFORMMATRIX4X3DVPROC glad_glProgramUniformMatrix4x3dv;
4484+#define glProgramUniformMatrix4x3dv glad_glProgramUniformMatrix4x3dv
4485+typedef void (APIENTRYP PFNGLVALIDATEPROGRAMPIPELINEPROC)(GLuint pipeline);
4486+GLAPI PFNGLVALIDATEPROGRAMPIPELINEPROC glad_glValidateProgramPipeline;
4487+#define glValidateProgramPipeline glad_glValidateProgramPipeline
4488+typedef void (APIENTRYP PFNGLGETPROGRAMPIPELINEINFOLOGPROC)(GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
4489+GLAPI PFNGLGETPROGRAMPIPELINEINFOLOGPROC glad_glGetProgramPipelineInfoLog;
4490+#define glGetProgramPipelineInfoLog glad_glGetProgramPipelineInfoLog
4491+typedef void (APIENTRYP PFNGLVERTEXATTRIBL1DPROC)(GLuint index, GLdouble x);
4492+GLAPI PFNGLVERTEXATTRIBL1DPROC glad_glVertexAttribL1d;
4493+#define glVertexAttribL1d glad_glVertexAttribL1d
4494+typedef void (APIENTRYP PFNGLVERTEXATTRIBL2DPROC)(GLuint index, GLdouble x, GLdouble y);
4495+GLAPI PFNGLVERTEXATTRIBL2DPROC glad_glVertexAttribL2d;
4496+#define glVertexAttribL2d glad_glVertexAttribL2d
4497+typedef void (APIENTRYP PFNGLVERTEXATTRIBL3DPROC)(GLuint index, GLdouble x, GLdouble y, GLdouble z);
4498+GLAPI PFNGLVERTEXATTRIBL3DPROC glad_glVertexAttribL3d;
4499+#define glVertexAttribL3d glad_glVertexAttribL3d
4500+typedef void (APIENTRYP PFNGLVERTEXATTRIBL4DPROC)(GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
4501+GLAPI PFNGLVERTEXATTRIBL4DPROC glad_glVertexAttribL4d;
4502+#define glVertexAttribL4d glad_glVertexAttribL4d
4503+typedef void (APIENTRYP PFNGLVERTEXATTRIBL1DVPROC)(GLuint index, const GLdouble *v);
4504+GLAPI PFNGLVERTEXATTRIBL1DVPROC glad_glVertexAttribL1dv;
4505+#define glVertexAttribL1dv glad_glVertexAttribL1dv
4506+typedef void (APIENTRYP PFNGLVERTEXATTRIBL2DVPROC)(GLuint index, const GLdouble *v);
4507+GLAPI PFNGLVERTEXATTRIBL2DVPROC glad_glVertexAttribL2dv;
4508+#define glVertexAttribL2dv glad_glVertexAttribL2dv
4509+typedef void (APIENTRYP PFNGLVERTEXATTRIBL3DVPROC)(GLuint index, const GLdouble *v);
4510+GLAPI PFNGLVERTEXATTRIBL3DVPROC glad_glVertexAttribL3dv;
4511+#define glVertexAttribL3dv glad_glVertexAttribL3dv
4512+typedef void (APIENTRYP PFNGLVERTEXATTRIBL4DVPROC)(GLuint index, const GLdouble *v);
4513+GLAPI PFNGLVERTEXATTRIBL4DVPROC glad_glVertexAttribL4dv;
4514+#define glVertexAttribL4dv glad_glVertexAttribL4dv
4515+typedef void (APIENTRYP PFNGLVERTEXATTRIBLPOINTERPROC)(GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer);
4516+GLAPI PFNGLVERTEXATTRIBLPOINTERPROC glad_glVertexAttribLPointer;
4517+#define glVertexAttribLPointer glad_glVertexAttribLPointer
4518+typedef void (APIENTRYP PFNGLGETVERTEXATTRIBLDVPROC)(GLuint index, GLenum pname, GLdouble *params);
4519+GLAPI PFNGLGETVERTEXATTRIBLDVPROC glad_glGetVertexAttribLdv;
4520+#define glGetVertexAttribLdv glad_glGetVertexAttribLdv
4521+typedef void (APIENTRYP PFNGLVIEWPORTARRAYVPROC)(GLuint first, GLsizei count, const GLfloat *v);
4522+GLAPI PFNGLVIEWPORTARRAYVPROC glad_glViewportArrayv;
4523+#define glViewportArrayv glad_glViewportArrayv
4524+typedef void (APIENTRYP PFNGLVIEWPORTINDEXEDFPROC)(GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h);
4525+GLAPI PFNGLVIEWPORTINDEXEDFPROC glad_glViewportIndexedf;
4526+#define glViewportIndexedf glad_glViewportIndexedf
4527+typedef void (APIENTRYP PFNGLVIEWPORTINDEXEDFVPROC)(GLuint index, const GLfloat *v);
4528+GLAPI PFNGLVIEWPORTINDEXEDFVPROC glad_glViewportIndexedfv;
4529+#define glViewportIndexedfv glad_glViewportIndexedfv
4530+typedef void (APIENTRYP PFNGLSCISSORARRAYVPROC)(GLuint first, GLsizei count, const GLint *v);
4531+GLAPI PFNGLSCISSORARRAYVPROC glad_glScissorArrayv;
4532+#define glScissorArrayv glad_glScissorArrayv
4533+typedef void (APIENTRYP PFNGLSCISSORINDEXEDPROC)(GLuint index, GLint left, GLint bottom, GLsizei width, GLsizei height);
4534+GLAPI PFNGLSCISSORINDEXEDPROC glad_glScissorIndexed;
4535+#define glScissorIndexed glad_glScissorIndexed
4536+typedef void (APIENTRYP PFNGLSCISSORINDEXEDVPROC)(GLuint index, const GLint *v);
4537+GLAPI PFNGLSCISSORINDEXEDVPROC glad_glScissorIndexedv;
4538+#define glScissorIndexedv glad_glScissorIndexedv
4539+typedef void (APIENTRYP PFNGLDEPTHRANGEARRAYVPROC)(GLuint first, GLsizei count, const GLdouble *v);
4540+GLAPI PFNGLDEPTHRANGEARRAYVPROC glad_glDepthRangeArrayv;
4541+#define glDepthRangeArrayv glad_glDepthRangeArrayv
4542+typedef void (APIENTRYP PFNGLDEPTHRANGEINDEXEDPROC)(GLuint index, GLdouble n, GLdouble f);
4543+GLAPI PFNGLDEPTHRANGEINDEXEDPROC glad_glDepthRangeIndexed;
4544+#define glDepthRangeIndexed glad_glDepthRangeIndexed
4545+typedef void (APIENTRYP PFNGLGETFLOATI_VPROC)(GLenum target, GLuint index, GLfloat *data);
4546+GLAPI PFNGLGETFLOATI_VPROC glad_glGetFloati_v;
4547+#define glGetFloati_v glad_glGetFloati_v
4548+typedef void (APIENTRYP PFNGLGETDOUBLEI_VPROC)(GLenum target, GLuint index, GLdouble *data);
4549+GLAPI PFNGLGETDOUBLEI_VPROC glad_glGetDoublei_v;
4550+#define glGetDoublei_v glad_glGetDoublei_v
4551+#endif
4552+#ifndef GL_VERSION_4_2
4553+#define GL_VERSION_4_2 1
4554+GLAPI int GLAD_GL_VERSION_4_2;
4555+typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDBASEINSTANCEPROC)(GLenum mode, GLint first, GLsizei count, GLsizei instancecount, GLuint baseinstance);
4556+GLAPI PFNGLDRAWARRAYSINSTANCEDBASEINSTANCEPROC glad_glDrawArraysInstancedBaseInstance;
4557+#define glDrawArraysInstancedBaseInstance glad_glDrawArraysInstancedBaseInstance
4558+typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEINSTANCEPROC)(GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLuint baseinstance);
4559+GLAPI PFNGLDRAWELEMENTSINSTANCEDBASEINSTANCEPROC glad_glDrawElementsInstancedBaseInstance;
4560+#define glDrawElementsInstancedBaseInstance glad_glDrawElementsInstancedBaseInstance
4561+typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXBASEINSTANCEPROC)(GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex, GLuint baseinstance);
4562+GLAPI PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXBASEINSTANCEPROC glad_glDrawElementsInstancedBaseVertexBaseInstance;
4563+#define glDrawElementsInstancedBaseVertexBaseInstance glad_glDrawElementsInstancedBaseVertexBaseInstance
4564+typedef void (APIENTRYP PFNGLGETINTERNALFORMATIVPROC)(GLenum target, GLenum internalformat, GLenum pname, GLsizei count, GLint *params);
4565+GLAPI PFNGLGETINTERNALFORMATIVPROC glad_glGetInternalformativ;
4566+#define glGetInternalformativ glad_glGetInternalformativ
4567+typedef void (APIENTRYP PFNGLGETACTIVEATOMICCOUNTERBUFFERIVPROC)(GLuint program, GLuint bufferIndex, GLenum pname, GLint *params);
4568+GLAPI PFNGLGETACTIVEATOMICCOUNTERBUFFERIVPROC glad_glGetActiveAtomicCounterBufferiv;
4569+#define glGetActiveAtomicCounterBufferiv glad_glGetActiveAtomicCounterBufferiv
4570+typedef void (APIENTRYP PFNGLBINDIMAGETEXTUREPROC)(GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format);
4571+GLAPI PFNGLBINDIMAGETEXTUREPROC glad_glBindImageTexture;
4572+#define glBindImageTexture glad_glBindImageTexture
4573+typedef void (APIENTRYP PFNGLMEMORYBARRIERPROC)(GLbitfield barriers);
4574+GLAPI PFNGLMEMORYBARRIERPROC glad_glMemoryBarrier;
4575+#define glMemoryBarrier glad_glMemoryBarrier
4576+typedef void (APIENTRYP PFNGLTEXSTORAGE1DPROC)(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
4577+GLAPI PFNGLTEXSTORAGE1DPROC glad_glTexStorage1D;
4578+#define glTexStorage1D glad_glTexStorage1D
4579+typedef void (APIENTRYP PFNGLTEXSTORAGE2DPROC)(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
4580+GLAPI PFNGLTEXSTORAGE2DPROC glad_glTexStorage2D;
4581+#define glTexStorage2D glad_glTexStorage2D
4582+typedef void (APIENTRYP PFNGLTEXSTORAGE3DPROC)(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
4583+GLAPI PFNGLTEXSTORAGE3DPROC glad_glTexStorage3D;
4584+#define glTexStorage3D glad_glTexStorage3D
4585+typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKINSTANCEDPROC)(GLenum mode, GLuint id, GLsizei instancecount);
4586+GLAPI PFNGLDRAWTRANSFORMFEEDBACKINSTANCEDPROC glad_glDrawTransformFeedbackInstanced;
4587+#define glDrawTransformFeedbackInstanced glad_glDrawTransformFeedbackInstanced
4588+typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKSTREAMINSTANCEDPROC)(GLenum mode, GLuint id, GLuint stream, GLsizei instancecount);
4589+GLAPI PFNGLDRAWTRANSFORMFEEDBACKSTREAMINSTANCEDPROC glad_glDrawTransformFeedbackStreamInstanced;
4590+#define glDrawTransformFeedbackStreamInstanced glad_glDrawTransformFeedbackStreamInstanced
4591+#endif
4592+#ifndef GL_VERSION_4_3
4593+#define GL_VERSION_4_3 1
4594+GLAPI int GLAD_GL_VERSION_4_3;
4595+typedef void (APIENTRYP PFNGLCLEARBUFFERDATAPROC)(GLenum target, GLenum internalformat, GLenum format, GLenum type, const void *data);
4596+GLAPI PFNGLCLEARBUFFERDATAPROC glad_glClearBufferData;
4597+#define glClearBufferData glad_glClearBufferData
4598+typedef void (APIENTRYP PFNGLCLEARBUFFERSUBDATAPROC)(GLenum target, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data);
4599+GLAPI PFNGLCLEARBUFFERSUBDATAPROC glad_glClearBufferSubData;
4600+#define glClearBufferSubData glad_glClearBufferSubData
4601+typedef void (APIENTRYP PFNGLDISPATCHCOMPUTEPROC)(GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z);
4602+GLAPI PFNGLDISPATCHCOMPUTEPROC glad_glDispatchCompute;
4603+#define glDispatchCompute glad_glDispatchCompute
4604+typedef void (APIENTRYP PFNGLDISPATCHCOMPUTEINDIRECTPROC)(GLintptr indirect);
4605+GLAPI PFNGLDISPATCHCOMPUTEINDIRECTPROC glad_glDispatchComputeIndirect;
4606+#define glDispatchComputeIndirect glad_glDispatchComputeIndirect
4607+typedef void (APIENTRYP PFNGLCOPYIMAGESUBDATAPROC)(GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth);
4608+GLAPI PFNGLCOPYIMAGESUBDATAPROC glad_glCopyImageSubData;
4609+#define glCopyImageSubData glad_glCopyImageSubData
4610+typedef void (APIENTRYP PFNGLFRAMEBUFFERPARAMETERIPROC)(GLenum target, GLenum pname, GLint param);
4611+GLAPI PFNGLFRAMEBUFFERPARAMETERIPROC glad_glFramebufferParameteri;
4612+#define glFramebufferParameteri glad_glFramebufferParameteri
4613+typedef void (APIENTRYP PFNGLGETFRAMEBUFFERPARAMETERIVPROC)(GLenum target, GLenum pname, GLint *params);
4614+GLAPI PFNGLGETFRAMEBUFFERPARAMETERIVPROC glad_glGetFramebufferParameteriv;
4615+#define glGetFramebufferParameteriv glad_glGetFramebufferParameteriv
4616+typedef void (APIENTRYP PFNGLGETINTERNALFORMATI64VPROC)(GLenum target, GLenum internalformat, GLenum pname, GLsizei count, GLint64 *params);
4617+GLAPI PFNGLGETINTERNALFORMATI64VPROC glad_glGetInternalformati64v;
4618+#define glGetInternalformati64v glad_glGetInternalformati64v
4619+typedef void (APIENTRYP PFNGLINVALIDATETEXSUBIMAGEPROC)(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth);
4620+GLAPI PFNGLINVALIDATETEXSUBIMAGEPROC glad_glInvalidateTexSubImage;
4621+#define glInvalidateTexSubImage glad_glInvalidateTexSubImage
4622+typedef void (APIENTRYP PFNGLINVALIDATETEXIMAGEPROC)(GLuint texture, GLint level);
4623+GLAPI PFNGLINVALIDATETEXIMAGEPROC glad_glInvalidateTexImage;
4624+#define glInvalidateTexImage glad_glInvalidateTexImage
4625+typedef void (APIENTRYP PFNGLINVALIDATEBUFFERSUBDATAPROC)(GLuint buffer, GLintptr offset, GLsizeiptr length);
4626+GLAPI PFNGLINVALIDATEBUFFERSUBDATAPROC glad_glInvalidateBufferSubData;
4627+#define glInvalidateBufferSubData glad_glInvalidateBufferSubData
4628+typedef void (APIENTRYP PFNGLINVALIDATEBUFFERDATAPROC)(GLuint buffer);
4629+GLAPI PFNGLINVALIDATEBUFFERDATAPROC glad_glInvalidateBufferData;
4630+#define glInvalidateBufferData glad_glInvalidateBufferData
4631+typedef void (APIENTRYP PFNGLINVALIDATEFRAMEBUFFERPROC)(GLenum target, GLsizei numAttachments, const GLenum *attachments);
4632+GLAPI PFNGLINVALIDATEFRAMEBUFFERPROC glad_glInvalidateFramebuffer;
4633+#define glInvalidateFramebuffer glad_glInvalidateFramebuffer
4634+typedef void (APIENTRYP PFNGLINVALIDATESUBFRAMEBUFFERPROC)(GLenum target, GLsizei numAttachments, const GLenum *attachments, GLint x, GLint y, GLsizei width, GLsizei height);
4635+GLAPI PFNGLINVALIDATESUBFRAMEBUFFERPROC glad_glInvalidateSubFramebuffer;
4636+#define glInvalidateSubFramebuffer glad_glInvalidateSubFramebuffer
4637+typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTPROC)(GLenum mode, const void *indirect, GLsizei drawcount, GLsizei stride);
4638+GLAPI PFNGLMULTIDRAWARRAYSINDIRECTPROC glad_glMultiDrawArraysIndirect;
4639+#define glMultiDrawArraysIndirect glad_glMultiDrawArraysIndirect
4640+typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTPROC)(GLenum mode, GLenum type, const void *indirect, GLsizei drawcount, GLsizei stride);
4641+GLAPI PFNGLMULTIDRAWELEMENTSINDIRECTPROC glad_glMultiDrawElementsIndirect;
4642+#define glMultiDrawElementsIndirect glad_glMultiDrawElementsIndirect
4643+typedef void (APIENTRYP PFNGLGETPROGRAMINTERFACEIVPROC)(GLuint program, GLenum programInterface, GLenum pname, GLint *params);
4644+GLAPI PFNGLGETPROGRAMINTERFACEIVPROC glad_glGetProgramInterfaceiv;
4645+#define glGetProgramInterfaceiv glad_glGetProgramInterfaceiv
4646+typedef GLuint (APIENTRYP PFNGLGETPROGRAMRESOURCEINDEXPROC)(GLuint program, GLenum programInterface, const GLchar *name);
4647+GLAPI PFNGLGETPROGRAMRESOURCEINDEXPROC glad_glGetProgramResourceIndex;
4648+#define glGetProgramResourceIndex glad_glGetProgramResourceIndex
4649+typedef void (APIENTRYP PFNGLGETPROGRAMRESOURCENAMEPROC)(GLuint program, GLenum programInterface, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name);
4650+GLAPI PFNGLGETPROGRAMRESOURCENAMEPROC glad_glGetProgramResourceName;
4651+#define glGetProgramResourceName glad_glGetProgramResourceName
4652+typedef void (APIENTRYP PFNGLGETPROGRAMRESOURCEIVPROC)(GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum *props, GLsizei count, GLsizei *length, GLint *params);
4653+GLAPI PFNGLGETPROGRAMRESOURCEIVPROC glad_glGetProgramResourceiv;
4654+#define glGetProgramResourceiv glad_glGetProgramResourceiv
4655+typedef GLint (APIENTRYP PFNGLGETPROGRAMRESOURCELOCATIONPROC)(GLuint program, GLenum programInterface, const GLchar *name);
4656+GLAPI PFNGLGETPROGRAMRESOURCELOCATIONPROC glad_glGetProgramResourceLocation;
4657+#define glGetProgramResourceLocation glad_glGetProgramResourceLocation
4658+typedef GLint (APIENTRYP PFNGLGETPROGRAMRESOURCELOCATIONINDEXPROC)(GLuint program, GLenum programInterface, const GLchar *name);
4659+GLAPI PFNGLGETPROGRAMRESOURCELOCATIONINDEXPROC glad_glGetProgramResourceLocationIndex;
4660+#define glGetProgramResourceLocationIndex glad_glGetProgramResourceLocationIndex
4661+typedef void (APIENTRYP PFNGLSHADERSTORAGEBLOCKBINDINGPROC)(GLuint program, GLuint storageBlockIndex, GLuint storageBlockBinding);
4662+GLAPI PFNGLSHADERSTORAGEBLOCKBINDINGPROC glad_glShaderStorageBlockBinding;
4663+#define glShaderStorageBlockBinding glad_glShaderStorageBlockBinding
4664+typedef void (APIENTRYP PFNGLTEXBUFFERRANGEPROC)(GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size);
4665+GLAPI PFNGLTEXBUFFERRANGEPROC glad_glTexBufferRange;
4666+#define glTexBufferRange glad_glTexBufferRange
4667+typedef void (APIENTRYP PFNGLTEXSTORAGE2DMULTISAMPLEPROC)(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
4668+GLAPI PFNGLTEXSTORAGE2DMULTISAMPLEPROC glad_glTexStorage2DMultisample;
4669+#define glTexStorage2DMultisample glad_glTexStorage2DMultisample
4670+typedef void (APIENTRYP PFNGLTEXSTORAGE3DMULTISAMPLEPROC)(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
4671+GLAPI PFNGLTEXSTORAGE3DMULTISAMPLEPROC glad_glTexStorage3DMultisample;
4672+#define glTexStorage3DMultisample glad_glTexStorage3DMultisample
4673+typedef void (APIENTRYP PFNGLTEXTUREVIEWPROC)(GLuint texture, GLenum target, GLuint origtexture, GLenum internalformat, GLuint minlevel, GLuint numlevels, GLuint minlayer, GLuint numlayers);
4674+GLAPI PFNGLTEXTUREVIEWPROC glad_glTextureView;
4675+#define glTextureView glad_glTextureView
4676+typedef void (APIENTRYP PFNGLBINDVERTEXBUFFERPROC)(GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride);
4677+GLAPI PFNGLBINDVERTEXBUFFERPROC glad_glBindVertexBuffer;
4678+#define glBindVertexBuffer glad_glBindVertexBuffer
4679+typedef void (APIENTRYP PFNGLVERTEXATTRIBFORMATPROC)(GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset);
4680+GLAPI PFNGLVERTEXATTRIBFORMATPROC glad_glVertexAttribFormat;
4681+#define glVertexAttribFormat glad_glVertexAttribFormat
4682+typedef void (APIENTRYP PFNGLVERTEXATTRIBIFORMATPROC)(GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
4683+GLAPI PFNGLVERTEXATTRIBIFORMATPROC glad_glVertexAttribIFormat;
4684+#define glVertexAttribIFormat glad_glVertexAttribIFormat
4685+typedef void (APIENTRYP PFNGLVERTEXATTRIBLFORMATPROC)(GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
4686+GLAPI PFNGLVERTEXATTRIBLFORMATPROC glad_glVertexAttribLFormat;
4687+#define glVertexAttribLFormat glad_glVertexAttribLFormat
4688+typedef void (APIENTRYP PFNGLVERTEXATTRIBBINDINGPROC)(GLuint attribindex, GLuint bindingindex);
4689+GLAPI PFNGLVERTEXATTRIBBINDINGPROC glad_glVertexAttribBinding;
4690+#define glVertexAttribBinding glad_glVertexAttribBinding
4691+typedef void (APIENTRYP PFNGLVERTEXBINDINGDIVISORPROC)(GLuint bindingindex, GLuint divisor);
4692+GLAPI PFNGLVERTEXBINDINGDIVISORPROC glad_glVertexBindingDivisor;
4693+#define glVertexBindingDivisor glad_glVertexBindingDivisor
4694+typedef void (APIENTRYP PFNGLDEBUGMESSAGECONTROLPROC)(GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
4695+GLAPI PFNGLDEBUGMESSAGECONTROLPROC glad_glDebugMessageControl;
4696+#define glDebugMessageControl glad_glDebugMessageControl
4697+typedef void (APIENTRYP PFNGLDEBUGMESSAGEINSERTPROC)(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
4698+GLAPI PFNGLDEBUGMESSAGEINSERTPROC glad_glDebugMessageInsert;
4699+#define glDebugMessageInsert glad_glDebugMessageInsert
4700+typedef void (APIENTRYP PFNGLDEBUGMESSAGECALLBACKPROC)(GLDEBUGPROC callback, const void *userParam);
4701+GLAPI PFNGLDEBUGMESSAGECALLBACKPROC glad_glDebugMessageCallback;
4702+#define glDebugMessageCallback glad_glDebugMessageCallback
4703+typedef GLuint (APIENTRYP PFNGLGETDEBUGMESSAGELOGPROC)(GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
4704+GLAPI PFNGLGETDEBUGMESSAGELOGPROC glad_glGetDebugMessageLog;
4705+#define glGetDebugMessageLog glad_glGetDebugMessageLog
4706+typedef void (APIENTRYP PFNGLPUSHDEBUGGROUPPROC)(GLenum source, GLuint id, GLsizei length, const GLchar *message);
4707+GLAPI PFNGLPUSHDEBUGGROUPPROC glad_glPushDebugGroup;
4708+#define glPushDebugGroup glad_glPushDebugGroup
4709+typedef void (APIENTRYP PFNGLPOPDEBUGGROUPPROC)(void);
4710+GLAPI PFNGLPOPDEBUGGROUPPROC glad_glPopDebugGroup;
4711+#define glPopDebugGroup glad_glPopDebugGroup
4712+typedef void (APIENTRYP PFNGLOBJECTLABELPROC)(GLenum identifier, GLuint name, GLsizei length, const GLchar *label);
4713+GLAPI PFNGLOBJECTLABELPROC glad_glObjectLabel;
4714+#define glObjectLabel glad_glObjectLabel
4715+typedef void (APIENTRYP PFNGLGETOBJECTLABELPROC)(GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *label);
4716+GLAPI PFNGLGETOBJECTLABELPROC glad_glGetObjectLabel;
4717+#define glGetObjectLabel glad_glGetObjectLabel
4718+typedef void (APIENTRYP PFNGLOBJECTPTRLABELPROC)(const void *ptr, GLsizei length, const GLchar *label);
4719+GLAPI PFNGLOBJECTPTRLABELPROC glad_glObjectPtrLabel;
4720+#define glObjectPtrLabel glad_glObjectPtrLabel
4721+typedef void (APIENTRYP PFNGLGETOBJECTPTRLABELPROC)(const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label);
4722+GLAPI PFNGLGETOBJECTPTRLABELPROC glad_glGetObjectPtrLabel;
4723+#define glGetObjectPtrLabel glad_glGetObjectPtrLabel
4724+#endif
4725+#ifndef GL_VERSION_4_4
4726+#define GL_VERSION_4_4 1
4727+GLAPI int GLAD_GL_VERSION_4_4;
4728+typedef void (APIENTRYP PFNGLBUFFERSTORAGEPROC)(GLenum target, GLsizeiptr size, const void *data, GLbitfield flags);
4729+GLAPI PFNGLBUFFERSTORAGEPROC glad_glBufferStorage;
4730+#define glBufferStorage glad_glBufferStorage
4731+typedef void (APIENTRYP PFNGLCLEARTEXIMAGEPROC)(GLuint texture, GLint level, GLenum format, GLenum type, const void *data);
4732+GLAPI PFNGLCLEARTEXIMAGEPROC glad_glClearTexImage;
4733+#define glClearTexImage glad_glClearTexImage
4734+typedef void (APIENTRYP PFNGLCLEARTEXSUBIMAGEPROC)(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *data);
4735+GLAPI PFNGLCLEARTEXSUBIMAGEPROC glad_glClearTexSubImage;
4736+#define glClearTexSubImage glad_glClearTexSubImage
4737+typedef void (APIENTRYP PFNGLBINDBUFFERSBASEPROC)(GLenum target, GLuint first, GLsizei count, const GLuint *buffers);
4738+GLAPI PFNGLBINDBUFFERSBASEPROC glad_glBindBuffersBase;
4739+#define glBindBuffersBase glad_glBindBuffersBase
4740+typedef void (APIENTRYP PFNGLBINDBUFFERSRANGEPROC)(GLenum target, GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizeiptr *sizes);
4741+GLAPI PFNGLBINDBUFFERSRANGEPROC glad_glBindBuffersRange;
4742+#define glBindBuffersRange glad_glBindBuffersRange
4743+typedef void (APIENTRYP PFNGLBINDTEXTURESPROC)(GLuint first, GLsizei count, const GLuint *textures);
4744+GLAPI PFNGLBINDTEXTURESPROC glad_glBindTextures;
4745+#define glBindTextures glad_glBindTextures
4746+typedef void (APIENTRYP PFNGLBINDSAMPLERSPROC)(GLuint first, GLsizei count, const GLuint *samplers);
4747+GLAPI PFNGLBINDSAMPLERSPROC glad_glBindSamplers;
4748+#define glBindSamplers glad_glBindSamplers
4749+typedef void (APIENTRYP PFNGLBINDIMAGETEXTURESPROC)(GLuint first, GLsizei count, const GLuint *textures);
4750+GLAPI PFNGLBINDIMAGETEXTURESPROC glad_glBindImageTextures;
4751+#define glBindImageTextures glad_glBindImageTextures
4752+typedef void (APIENTRYP PFNGLBINDVERTEXBUFFERSPROC)(GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizei *strides);
4753+GLAPI PFNGLBINDVERTEXBUFFERSPROC glad_glBindVertexBuffers;
4754+#define glBindVertexBuffers glad_glBindVertexBuffers
4755+#endif
4756+#ifndef GL_VERSION_4_5
4757+#define GL_VERSION_4_5 1
4758+GLAPI int GLAD_GL_VERSION_4_5;
4759+typedef void (APIENTRYP PFNGLCLIPCONTROLPROC)(GLenum origin, GLenum depth);
4760+GLAPI PFNGLCLIPCONTROLPROC glad_glClipControl;
4761+#define glClipControl glad_glClipControl
4762+typedef void (APIENTRYP PFNGLCREATETRANSFORMFEEDBACKSPROC)(GLsizei n, GLuint *ids);
4763+GLAPI PFNGLCREATETRANSFORMFEEDBACKSPROC glad_glCreateTransformFeedbacks;
4764+#define glCreateTransformFeedbacks glad_glCreateTransformFeedbacks
4765+typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKBUFFERBASEPROC)(GLuint xfb, GLuint index, GLuint buffer);
4766+GLAPI PFNGLTRANSFORMFEEDBACKBUFFERBASEPROC glad_glTransformFeedbackBufferBase;
4767+#define glTransformFeedbackBufferBase glad_glTransformFeedbackBufferBase
4768+typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKBUFFERRANGEPROC)(GLuint xfb, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
4769+GLAPI PFNGLTRANSFORMFEEDBACKBUFFERRANGEPROC glad_glTransformFeedbackBufferRange;
4770+#define glTransformFeedbackBufferRange glad_glTransformFeedbackBufferRange
4771+typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKIVPROC)(GLuint xfb, GLenum pname, GLint *param);
4772+GLAPI PFNGLGETTRANSFORMFEEDBACKIVPROC glad_glGetTransformFeedbackiv;
4773+#define glGetTransformFeedbackiv glad_glGetTransformFeedbackiv
4774+typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKI_VPROC)(GLuint xfb, GLenum pname, GLuint index, GLint *param);
4775+GLAPI PFNGLGETTRANSFORMFEEDBACKI_VPROC glad_glGetTransformFeedbacki_v;
4776+#define glGetTransformFeedbacki_v glad_glGetTransformFeedbacki_v
4777+typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKI64_VPROC)(GLuint xfb, GLenum pname, GLuint index, GLint64 *param);
4778+GLAPI PFNGLGETTRANSFORMFEEDBACKI64_VPROC glad_glGetTransformFeedbacki64_v;
4779+#define glGetTransformFeedbacki64_v glad_glGetTransformFeedbacki64_v
4780+typedef void (APIENTRYP PFNGLCREATEBUFFERSPROC)(GLsizei n, GLuint *buffers);
4781+GLAPI PFNGLCREATEBUFFERSPROC glad_glCreateBuffers;
4782+#define glCreateBuffers glad_glCreateBuffers
4783+typedef void (APIENTRYP PFNGLNAMEDBUFFERSTORAGEPROC)(GLuint buffer, GLsizeiptr size, const void *data, GLbitfield flags);
4784+GLAPI PFNGLNAMEDBUFFERSTORAGEPROC glad_glNamedBufferStorage;
4785+#define glNamedBufferStorage glad_glNamedBufferStorage
4786+typedef void (APIENTRYP PFNGLNAMEDBUFFERDATAPROC)(GLuint buffer, GLsizeiptr size, const void *data, GLenum usage);
4787+GLAPI PFNGLNAMEDBUFFERDATAPROC glad_glNamedBufferData;
4788+#define glNamedBufferData glad_glNamedBufferData
4789+typedef void (APIENTRYP PFNGLNAMEDBUFFERSUBDATAPROC)(GLuint buffer, GLintptr offset, GLsizeiptr size, const void *data);
4790+GLAPI PFNGLNAMEDBUFFERSUBDATAPROC glad_glNamedBufferSubData;
4791+#define glNamedBufferSubData glad_glNamedBufferSubData
4792+typedef void (APIENTRYP PFNGLCOPYNAMEDBUFFERSUBDATAPROC)(GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
4793+GLAPI PFNGLCOPYNAMEDBUFFERSUBDATAPROC glad_glCopyNamedBufferSubData;
4794+#define glCopyNamedBufferSubData glad_glCopyNamedBufferSubData
4795+typedef void (APIENTRYP PFNGLCLEARNAMEDBUFFERDATAPROC)(GLuint buffer, GLenum internalformat, GLenum format, GLenum type, const void *data);
4796+GLAPI PFNGLCLEARNAMEDBUFFERDATAPROC glad_glClearNamedBufferData;
4797+#define glClearNamedBufferData glad_glClearNamedBufferData
4798+typedef void (APIENTRYP PFNGLCLEARNAMEDBUFFERSUBDATAPROC)(GLuint buffer, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data);
4799+GLAPI PFNGLCLEARNAMEDBUFFERSUBDATAPROC glad_glClearNamedBufferSubData;
4800+#define glClearNamedBufferSubData glad_glClearNamedBufferSubData
4801+typedef void * (APIENTRYP PFNGLMAPNAMEDBUFFERPROC)(GLuint buffer, GLenum access);
4802+GLAPI PFNGLMAPNAMEDBUFFERPROC glad_glMapNamedBuffer;
4803+#define glMapNamedBuffer glad_glMapNamedBuffer
4804+typedef void * (APIENTRYP PFNGLMAPNAMEDBUFFERRANGEPROC)(GLuint buffer, GLintptr offset, GLsizeiptr length, GLbitfield access);
4805+GLAPI PFNGLMAPNAMEDBUFFERRANGEPROC glad_glMapNamedBufferRange;
4806+#define glMapNamedBufferRange glad_glMapNamedBufferRange
4807+typedef GLboolean (APIENTRYP PFNGLUNMAPNAMEDBUFFERPROC)(GLuint buffer);
4808+GLAPI PFNGLUNMAPNAMEDBUFFERPROC glad_glUnmapNamedBuffer;
4809+#define glUnmapNamedBuffer glad_glUnmapNamedBuffer
4810+typedef void (APIENTRYP PFNGLFLUSHMAPPEDNAMEDBUFFERRANGEPROC)(GLuint buffer, GLintptr offset, GLsizeiptr length);
4811+GLAPI PFNGLFLUSHMAPPEDNAMEDBUFFERRANGEPROC glad_glFlushMappedNamedBufferRange;
4812+#define glFlushMappedNamedBufferRange glad_glFlushMappedNamedBufferRange
4813+typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPARAMETERIVPROC)(GLuint buffer, GLenum pname, GLint *params);
4814+GLAPI PFNGLGETNAMEDBUFFERPARAMETERIVPROC glad_glGetNamedBufferParameteriv;
4815+#define glGetNamedBufferParameteriv glad_glGetNamedBufferParameteriv
4816+typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPARAMETERI64VPROC)(GLuint buffer, GLenum pname, GLint64 *params);
4817+GLAPI PFNGLGETNAMEDBUFFERPARAMETERI64VPROC glad_glGetNamedBufferParameteri64v;
4818+#define glGetNamedBufferParameteri64v glad_glGetNamedBufferParameteri64v
4819+typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPOINTERVPROC)(GLuint buffer, GLenum pname, void **params);
4820+GLAPI PFNGLGETNAMEDBUFFERPOINTERVPROC glad_glGetNamedBufferPointerv;
4821+#define glGetNamedBufferPointerv glad_glGetNamedBufferPointerv
4822+typedef void (APIENTRYP PFNGLGETNAMEDBUFFERSUBDATAPROC)(GLuint buffer, GLintptr offset, GLsizeiptr size, void *data);
4823+GLAPI PFNGLGETNAMEDBUFFERSUBDATAPROC glad_glGetNamedBufferSubData;
4824+#define glGetNamedBufferSubData glad_glGetNamedBufferSubData
4825+typedef void (APIENTRYP PFNGLCREATEFRAMEBUFFERSPROC)(GLsizei n, GLuint *framebuffers);
4826+GLAPI PFNGLCREATEFRAMEBUFFERSPROC glad_glCreateFramebuffers;
4827+#define glCreateFramebuffers glad_glCreateFramebuffers
4828+typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERRENDERBUFFERPROC)(GLuint framebuffer, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
4829+GLAPI PFNGLNAMEDFRAMEBUFFERRENDERBUFFERPROC glad_glNamedFramebufferRenderbuffer;
4830+#define glNamedFramebufferRenderbuffer glad_glNamedFramebufferRenderbuffer
4831+typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERPARAMETERIPROC)(GLuint framebuffer, GLenum pname, GLint param);
4832+GLAPI PFNGLNAMEDFRAMEBUFFERPARAMETERIPROC glad_glNamedFramebufferParameteri;
4833+#define glNamedFramebufferParameteri glad_glNamedFramebufferParameteri
4834+typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTUREPROC)(GLuint framebuffer, GLenum attachment, GLuint texture, GLint level);
4835+GLAPI PFNGLNAMEDFRAMEBUFFERTEXTUREPROC glad_glNamedFramebufferTexture;
4836+#define glNamedFramebufferTexture glad_glNamedFramebufferTexture
4837+typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTURELAYERPROC)(GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLint layer);
4838+GLAPI PFNGLNAMEDFRAMEBUFFERTEXTURELAYERPROC glad_glNamedFramebufferTextureLayer;
4839+#define glNamedFramebufferTextureLayer glad_glNamedFramebufferTextureLayer
4840+typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERDRAWBUFFERPROC)(GLuint framebuffer, GLenum buf);
4841+GLAPI PFNGLNAMEDFRAMEBUFFERDRAWBUFFERPROC glad_glNamedFramebufferDrawBuffer;
4842+#define glNamedFramebufferDrawBuffer glad_glNamedFramebufferDrawBuffer
4843+typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERDRAWBUFFERSPROC)(GLuint framebuffer, GLsizei n, const GLenum *bufs);
4844+GLAPI PFNGLNAMEDFRAMEBUFFERDRAWBUFFERSPROC glad_glNamedFramebufferDrawBuffers;
4845+#define glNamedFramebufferDrawBuffers glad_glNamedFramebufferDrawBuffers
4846+typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERREADBUFFERPROC)(GLuint framebuffer, GLenum src);
4847+GLAPI PFNGLNAMEDFRAMEBUFFERREADBUFFERPROC glad_glNamedFramebufferReadBuffer;
4848+#define glNamedFramebufferReadBuffer glad_glNamedFramebufferReadBuffer
4849+typedef void (APIENTRYP PFNGLINVALIDATENAMEDFRAMEBUFFERDATAPROC)(GLuint framebuffer, GLsizei numAttachments, const GLenum *attachments);
4850+GLAPI PFNGLINVALIDATENAMEDFRAMEBUFFERDATAPROC glad_glInvalidateNamedFramebufferData;
4851+#define glInvalidateNamedFramebufferData glad_glInvalidateNamedFramebufferData
4852+typedef void (APIENTRYP PFNGLINVALIDATENAMEDFRAMEBUFFERSUBDATAPROC)(GLuint framebuffer, GLsizei numAttachments, const GLenum *attachments, GLint x, GLint y, GLsizei width, GLsizei height);
4853+GLAPI PFNGLINVALIDATENAMEDFRAMEBUFFERSUBDATAPROC glad_glInvalidateNamedFramebufferSubData;
4854+#define glInvalidateNamedFramebufferSubData glad_glInvalidateNamedFramebufferSubData
4855+typedef void (APIENTRYP PFNGLCLEARNAMEDFRAMEBUFFERIVPROC)(GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLint *value);
4856+GLAPI PFNGLCLEARNAMEDFRAMEBUFFERIVPROC glad_glClearNamedFramebufferiv;
4857+#define glClearNamedFramebufferiv glad_glClearNamedFramebufferiv
4858+typedef void (APIENTRYP PFNGLCLEARNAMEDFRAMEBUFFERUIVPROC)(GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLuint *value);
4859+GLAPI PFNGLCLEARNAMEDFRAMEBUFFERUIVPROC glad_glClearNamedFramebufferuiv;
4860+#define glClearNamedFramebufferuiv glad_glClearNamedFramebufferuiv
4861+typedef void (APIENTRYP PFNGLCLEARNAMEDFRAMEBUFFERFVPROC)(GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLfloat *value);
4862+GLAPI PFNGLCLEARNAMEDFRAMEBUFFERFVPROC glad_glClearNamedFramebufferfv;
4863+#define glClearNamedFramebufferfv glad_glClearNamedFramebufferfv
4864+typedef void (APIENTRYP PFNGLCLEARNAMEDFRAMEBUFFERFIPROC)(GLuint framebuffer, GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil);
4865+GLAPI PFNGLCLEARNAMEDFRAMEBUFFERFIPROC glad_glClearNamedFramebufferfi;
4866+#define glClearNamedFramebufferfi glad_glClearNamedFramebufferfi
4867+typedef void (APIENTRYP PFNGLBLITNAMEDFRAMEBUFFERPROC)(GLuint readFramebuffer, GLuint drawFramebuffer, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
4868+GLAPI PFNGLBLITNAMEDFRAMEBUFFERPROC glad_glBlitNamedFramebuffer;
4869+#define glBlitNamedFramebuffer glad_glBlitNamedFramebuffer
4870+typedef GLenum (APIENTRYP PFNGLCHECKNAMEDFRAMEBUFFERSTATUSPROC)(GLuint framebuffer, GLenum target);
4871+GLAPI PFNGLCHECKNAMEDFRAMEBUFFERSTATUSPROC glad_glCheckNamedFramebufferStatus;
4872+#define glCheckNamedFramebufferStatus glad_glCheckNamedFramebufferStatus
4873+typedef void (APIENTRYP PFNGLGETNAMEDFRAMEBUFFERPARAMETERIVPROC)(GLuint framebuffer, GLenum pname, GLint *param);
4874+GLAPI PFNGLGETNAMEDFRAMEBUFFERPARAMETERIVPROC glad_glGetNamedFramebufferParameteriv;
4875+#define glGetNamedFramebufferParameteriv glad_glGetNamedFramebufferParameteriv
4876+typedef void (APIENTRYP PFNGLGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIVPROC)(GLuint framebuffer, GLenum attachment, GLenum pname, GLint *params);
4877+GLAPI PFNGLGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIVPROC glad_glGetNamedFramebufferAttachmentParameteriv;
4878+#define glGetNamedFramebufferAttachmentParameteriv glad_glGetNamedFramebufferAttachmentParameteriv
4879+typedef void (APIENTRYP PFNGLCREATERENDERBUFFERSPROC)(GLsizei n, GLuint *renderbuffers);
4880+GLAPI PFNGLCREATERENDERBUFFERSPROC glad_glCreateRenderbuffers;
4881+#define glCreateRenderbuffers glad_glCreateRenderbuffers
4882+typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEPROC)(GLuint renderbuffer, GLenum internalformat, GLsizei width, GLsizei height);
4883+GLAPI PFNGLNAMEDRENDERBUFFERSTORAGEPROC glad_glNamedRenderbufferStorage;
4884+#define glNamedRenderbufferStorage glad_glNamedRenderbufferStorage
4885+typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLEPROC)(GLuint renderbuffer, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
4886+GLAPI PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLEPROC glad_glNamedRenderbufferStorageMultisample;
4887+#define glNamedRenderbufferStorageMultisample glad_glNamedRenderbufferStorageMultisample
4888+typedef void (APIENTRYP PFNGLGETNAMEDRENDERBUFFERPARAMETERIVPROC)(GLuint renderbuffer, GLenum pname, GLint *params);
4889+GLAPI PFNGLGETNAMEDRENDERBUFFERPARAMETERIVPROC glad_glGetNamedRenderbufferParameteriv;
4890+#define glGetNamedRenderbufferParameteriv glad_glGetNamedRenderbufferParameteriv
4891+typedef void (APIENTRYP PFNGLCREATETEXTURESPROC)(GLenum target, GLsizei n, GLuint *textures);
4892+GLAPI PFNGLCREATETEXTURESPROC glad_glCreateTextures;
4893+#define glCreateTextures glad_glCreateTextures
4894+typedef void (APIENTRYP PFNGLTEXTUREBUFFERPROC)(GLuint texture, GLenum internalformat, GLuint buffer);
4895+GLAPI PFNGLTEXTUREBUFFERPROC glad_glTextureBuffer;
4896+#define glTextureBuffer glad_glTextureBuffer
4897+typedef void (APIENTRYP PFNGLTEXTUREBUFFERRANGEPROC)(GLuint texture, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size);
4898+GLAPI PFNGLTEXTUREBUFFERRANGEPROC glad_glTextureBufferRange;
4899+#define glTextureBufferRange glad_glTextureBufferRange
4900+typedef void (APIENTRYP PFNGLTEXTURESTORAGE1DPROC)(GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width);
4901+GLAPI PFNGLTEXTURESTORAGE1DPROC glad_glTextureStorage1D;
4902+#define glTextureStorage1D glad_glTextureStorage1D
4903+typedef void (APIENTRYP PFNGLTEXTURESTORAGE2DPROC)(GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
4904+GLAPI PFNGLTEXTURESTORAGE2DPROC glad_glTextureStorage2D;
4905+#define glTextureStorage2D glad_glTextureStorage2D
4906+typedef void (APIENTRYP PFNGLTEXTURESTORAGE3DPROC)(GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
4907+GLAPI PFNGLTEXTURESTORAGE3DPROC glad_glTextureStorage3D;
4908+#define glTextureStorage3D glad_glTextureStorage3D
4909+typedef void (APIENTRYP PFNGLTEXTURESTORAGE2DMULTISAMPLEPROC)(GLuint texture, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
4910+GLAPI PFNGLTEXTURESTORAGE2DMULTISAMPLEPROC glad_glTextureStorage2DMultisample;
4911+#define glTextureStorage2DMultisample glad_glTextureStorage2DMultisample
4912+typedef void (APIENTRYP PFNGLTEXTURESTORAGE3DMULTISAMPLEPROC)(GLuint texture, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
4913+GLAPI PFNGLTEXTURESTORAGE3DMULTISAMPLEPROC glad_glTextureStorage3DMultisample;
4914+#define glTextureStorage3DMultisample glad_glTextureStorage3DMultisample
4915+typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE1DPROC)(GLuint texture, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels);
4916+GLAPI PFNGLTEXTURESUBIMAGE1DPROC glad_glTextureSubImage1D;
4917+#define glTextureSubImage1D glad_glTextureSubImage1D
4918+typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE2DPROC)(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels);
4919+GLAPI PFNGLTEXTURESUBIMAGE2DPROC glad_glTextureSubImage2D;
4920+#define glTextureSubImage2D glad_glTextureSubImage2D
4921+typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE3DPROC)(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels);
4922+GLAPI PFNGLTEXTURESUBIMAGE3DPROC glad_glTextureSubImage3D;
4923+#define glTextureSubImage3D glad_glTextureSubImage3D
4924+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE1DPROC)(GLuint texture, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data);
4925+GLAPI PFNGLCOMPRESSEDTEXTURESUBIMAGE1DPROC glad_glCompressedTextureSubImage1D;
4926+#define glCompressedTextureSubImage1D glad_glCompressedTextureSubImage1D
4927+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE2DPROC)(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data);
4928+GLAPI PFNGLCOMPRESSEDTEXTURESUBIMAGE2DPROC glad_glCompressedTextureSubImage2D;
4929+#define glCompressedTextureSubImage2D glad_glCompressedTextureSubImage2D
4930+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE3DPROC)(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data);
4931+GLAPI PFNGLCOMPRESSEDTEXTURESUBIMAGE3DPROC glad_glCompressedTextureSubImage3D;
4932+#define glCompressedTextureSubImage3D glad_glCompressedTextureSubImage3D
4933+typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE1DPROC)(GLuint texture, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
4934+GLAPI PFNGLCOPYTEXTURESUBIMAGE1DPROC glad_glCopyTextureSubImage1D;
4935+#define glCopyTextureSubImage1D glad_glCopyTextureSubImage1D
4936+typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE2DPROC)(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
4937+GLAPI PFNGLCOPYTEXTURESUBIMAGE2DPROC glad_glCopyTextureSubImage2D;
4938+#define glCopyTextureSubImage2D glad_glCopyTextureSubImage2D
4939+typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE3DPROC)(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
4940+GLAPI PFNGLCOPYTEXTURESUBIMAGE3DPROC glad_glCopyTextureSubImage3D;
4941+#define glCopyTextureSubImage3D glad_glCopyTextureSubImage3D
4942+typedef void (APIENTRYP PFNGLTEXTUREPARAMETERFPROC)(GLuint texture, GLenum pname, GLfloat param);
4943+GLAPI PFNGLTEXTUREPARAMETERFPROC glad_glTextureParameterf;
4944+#define glTextureParameterf glad_glTextureParameterf
4945+typedef void (APIENTRYP PFNGLTEXTUREPARAMETERFVPROC)(GLuint texture, GLenum pname, const GLfloat *param);
4946+GLAPI PFNGLTEXTUREPARAMETERFVPROC glad_glTextureParameterfv;
4947+#define glTextureParameterfv glad_glTextureParameterfv
4948+typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIPROC)(GLuint texture, GLenum pname, GLint param);
4949+GLAPI PFNGLTEXTUREPARAMETERIPROC glad_glTextureParameteri;
4950+#define glTextureParameteri glad_glTextureParameteri
4951+typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIIVPROC)(GLuint texture, GLenum pname, const GLint *params);
4952+GLAPI PFNGLTEXTUREPARAMETERIIVPROC glad_glTextureParameterIiv;
4953+#define glTextureParameterIiv glad_glTextureParameterIiv
4954+typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIUIVPROC)(GLuint texture, GLenum pname, const GLuint *params);
4955+GLAPI PFNGLTEXTUREPARAMETERIUIVPROC glad_glTextureParameterIuiv;
4956+#define glTextureParameterIuiv glad_glTextureParameterIuiv
4957+typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIVPROC)(GLuint texture, GLenum pname, const GLint *param);
4958+GLAPI PFNGLTEXTUREPARAMETERIVPROC glad_glTextureParameteriv;
4959+#define glTextureParameteriv glad_glTextureParameteriv
4960+typedef void (APIENTRYP PFNGLGENERATETEXTUREMIPMAPPROC)(GLuint texture);
4961+GLAPI PFNGLGENERATETEXTUREMIPMAPPROC glad_glGenerateTextureMipmap;
4962+#define glGenerateTextureMipmap glad_glGenerateTextureMipmap
4963+typedef void (APIENTRYP PFNGLBINDTEXTUREUNITPROC)(GLuint unit, GLuint texture);
4964+GLAPI PFNGLBINDTEXTUREUNITPROC glad_glBindTextureUnit;
4965+#define glBindTextureUnit glad_glBindTextureUnit
4966+typedef void (APIENTRYP PFNGLGETTEXTUREIMAGEPROC)(GLuint texture, GLint level, GLenum format, GLenum type, GLsizei bufSize, void *pixels);
4967+GLAPI PFNGLGETTEXTUREIMAGEPROC glad_glGetTextureImage;
4968+#define glGetTextureImage glad_glGetTextureImage
4969+typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXTUREIMAGEPROC)(GLuint texture, GLint level, GLsizei bufSize, void *pixels);
4970+GLAPI PFNGLGETCOMPRESSEDTEXTUREIMAGEPROC glad_glGetCompressedTextureImage;
4971+#define glGetCompressedTextureImage glad_glGetCompressedTextureImage
4972+typedef void (APIENTRYP PFNGLGETTEXTURELEVELPARAMETERFVPROC)(GLuint texture, GLint level, GLenum pname, GLfloat *params);
4973+GLAPI PFNGLGETTEXTURELEVELPARAMETERFVPROC glad_glGetTextureLevelParameterfv;
4974+#define glGetTextureLevelParameterfv glad_glGetTextureLevelParameterfv
4975+typedef void (APIENTRYP PFNGLGETTEXTURELEVELPARAMETERIVPROC)(GLuint texture, GLint level, GLenum pname, GLint *params);
4976+GLAPI PFNGLGETTEXTURELEVELPARAMETERIVPROC glad_glGetTextureLevelParameteriv;
4977+#define glGetTextureLevelParameteriv glad_glGetTextureLevelParameteriv
4978+typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERFVPROC)(GLuint texture, GLenum pname, GLfloat *params);
4979+GLAPI PFNGLGETTEXTUREPARAMETERFVPROC glad_glGetTextureParameterfv;
4980+#define glGetTextureParameterfv glad_glGetTextureParameterfv
4981+typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIIVPROC)(GLuint texture, GLenum pname, GLint *params);
4982+GLAPI PFNGLGETTEXTUREPARAMETERIIVPROC glad_glGetTextureParameterIiv;
4983+#define glGetTextureParameterIiv glad_glGetTextureParameterIiv
4984+typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIUIVPROC)(GLuint texture, GLenum pname, GLuint *params);
4985+GLAPI PFNGLGETTEXTUREPARAMETERIUIVPROC glad_glGetTextureParameterIuiv;
4986+#define glGetTextureParameterIuiv glad_glGetTextureParameterIuiv
4987+typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIVPROC)(GLuint texture, GLenum pname, GLint *params);
4988+GLAPI PFNGLGETTEXTUREPARAMETERIVPROC glad_glGetTextureParameteriv;
4989+#define glGetTextureParameteriv glad_glGetTextureParameteriv
4990+typedef void (APIENTRYP PFNGLCREATEVERTEXARRAYSPROC)(GLsizei n, GLuint *arrays);
4991+GLAPI PFNGLCREATEVERTEXARRAYSPROC glad_glCreateVertexArrays;
4992+#define glCreateVertexArrays glad_glCreateVertexArrays
4993+typedef void (APIENTRYP PFNGLDISABLEVERTEXARRAYATTRIBPROC)(GLuint vaobj, GLuint index);
4994+GLAPI PFNGLDISABLEVERTEXARRAYATTRIBPROC glad_glDisableVertexArrayAttrib;
4995+#define glDisableVertexArrayAttrib glad_glDisableVertexArrayAttrib
4996+typedef void (APIENTRYP PFNGLENABLEVERTEXARRAYATTRIBPROC)(GLuint vaobj, GLuint index);
4997+GLAPI PFNGLENABLEVERTEXARRAYATTRIBPROC glad_glEnableVertexArrayAttrib;
4998+#define glEnableVertexArrayAttrib glad_glEnableVertexArrayAttrib
4999+typedef void (APIENTRYP PFNGLVERTEXARRAYELEMENTBUFFERPROC)(GLuint vaobj, GLuint buffer);
5000+GLAPI PFNGLVERTEXARRAYELEMENTBUFFERPROC glad_glVertexArrayElementBuffer;
5001+#define glVertexArrayElementBuffer glad_glVertexArrayElementBuffer
5002+typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXBUFFERPROC)(GLuint vaobj, GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride);
5003+GLAPI PFNGLVERTEXARRAYVERTEXBUFFERPROC glad_glVertexArrayVertexBuffer;
5004+#define glVertexArrayVertexBuffer glad_glVertexArrayVertexBuffer
5005+typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXBUFFERSPROC)(GLuint vaobj, GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizei *strides);
5006+GLAPI PFNGLVERTEXARRAYVERTEXBUFFERSPROC glad_glVertexArrayVertexBuffers;
5007+#define glVertexArrayVertexBuffers glad_glVertexArrayVertexBuffers
5008+typedef void (APIENTRYP PFNGLVERTEXARRAYATTRIBBINDINGPROC)(GLuint vaobj, GLuint attribindex, GLuint bindingindex);
5009+GLAPI PFNGLVERTEXARRAYATTRIBBINDINGPROC glad_glVertexArrayAttribBinding;
5010+#define glVertexArrayAttribBinding glad_glVertexArrayAttribBinding
5011+typedef void (APIENTRYP PFNGLVERTEXARRAYATTRIBFORMATPROC)(GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset);
5012+GLAPI PFNGLVERTEXARRAYATTRIBFORMATPROC glad_glVertexArrayAttribFormat;
5013+#define glVertexArrayAttribFormat glad_glVertexArrayAttribFormat
5014+typedef void (APIENTRYP PFNGLVERTEXARRAYATTRIBIFORMATPROC)(GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
5015+GLAPI PFNGLVERTEXARRAYATTRIBIFORMATPROC glad_glVertexArrayAttribIFormat;
5016+#define glVertexArrayAttribIFormat glad_glVertexArrayAttribIFormat
5017+typedef void (APIENTRYP PFNGLVERTEXARRAYATTRIBLFORMATPROC)(GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
5018+GLAPI PFNGLVERTEXARRAYATTRIBLFORMATPROC glad_glVertexArrayAttribLFormat;
5019+#define glVertexArrayAttribLFormat glad_glVertexArrayAttribLFormat
5020+typedef void (APIENTRYP PFNGLVERTEXARRAYBINDINGDIVISORPROC)(GLuint vaobj, GLuint bindingindex, GLuint divisor);
5021+GLAPI PFNGLVERTEXARRAYBINDINGDIVISORPROC glad_glVertexArrayBindingDivisor;
5022+#define glVertexArrayBindingDivisor glad_glVertexArrayBindingDivisor
5023+typedef void (APIENTRYP PFNGLGETVERTEXARRAYIVPROC)(GLuint vaobj, GLenum pname, GLint *param);
5024+GLAPI PFNGLGETVERTEXARRAYIVPROC glad_glGetVertexArrayiv;
5025+#define glGetVertexArrayiv glad_glGetVertexArrayiv
5026+typedef void (APIENTRYP PFNGLGETVERTEXARRAYINDEXEDIVPROC)(GLuint vaobj, GLuint index, GLenum pname, GLint *param);
5027+GLAPI PFNGLGETVERTEXARRAYINDEXEDIVPROC glad_glGetVertexArrayIndexediv;
5028+#define glGetVertexArrayIndexediv glad_glGetVertexArrayIndexediv
5029+typedef void (APIENTRYP PFNGLGETVERTEXARRAYINDEXED64IVPROC)(GLuint vaobj, GLuint index, GLenum pname, GLint64 *param);
5030+GLAPI PFNGLGETVERTEXARRAYINDEXED64IVPROC glad_glGetVertexArrayIndexed64iv;
5031+#define glGetVertexArrayIndexed64iv glad_glGetVertexArrayIndexed64iv
5032+typedef void (APIENTRYP PFNGLCREATESAMPLERSPROC)(GLsizei n, GLuint *samplers);
5033+GLAPI PFNGLCREATESAMPLERSPROC glad_glCreateSamplers;
5034+#define glCreateSamplers glad_glCreateSamplers
5035+typedef void (APIENTRYP PFNGLCREATEPROGRAMPIPELINESPROC)(GLsizei n, GLuint *pipelines);
5036+GLAPI PFNGLCREATEPROGRAMPIPELINESPROC glad_glCreateProgramPipelines;
5037+#define glCreateProgramPipelines glad_glCreateProgramPipelines
5038+typedef void (APIENTRYP PFNGLCREATEQUERIESPROC)(GLenum target, GLsizei n, GLuint *ids);
5039+GLAPI PFNGLCREATEQUERIESPROC glad_glCreateQueries;
5040+#define glCreateQueries glad_glCreateQueries
5041+typedef void (APIENTRYP PFNGLGETQUERYBUFFEROBJECTI64VPROC)(GLuint id, GLuint buffer, GLenum pname, GLintptr offset);
5042+GLAPI PFNGLGETQUERYBUFFEROBJECTI64VPROC glad_glGetQueryBufferObjecti64v;
5043+#define glGetQueryBufferObjecti64v glad_glGetQueryBufferObjecti64v
5044+typedef void (APIENTRYP PFNGLGETQUERYBUFFEROBJECTIVPROC)(GLuint id, GLuint buffer, GLenum pname, GLintptr offset);
5045+GLAPI PFNGLGETQUERYBUFFEROBJECTIVPROC glad_glGetQueryBufferObjectiv;
5046+#define glGetQueryBufferObjectiv glad_glGetQueryBufferObjectiv
5047+typedef void (APIENTRYP PFNGLGETQUERYBUFFEROBJECTUI64VPROC)(GLuint id, GLuint buffer, GLenum pname, GLintptr offset);
5048+GLAPI PFNGLGETQUERYBUFFEROBJECTUI64VPROC glad_glGetQueryBufferObjectui64v;
5049+#define glGetQueryBufferObjectui64v glad_glGetQueryBufferObjectui64v
5050+typedef void (APIENTRYP PFNGLGETQUERYBUFFEROBJECTUIVPROC)(GLuint id, GLuint buffer, GLenum pname, GLintptr offset);
5051+GLAPI PFNGLGETQUERYBUFFEROBJECTUIVPROC glad_glGetQueryBufferObjectuiv;
5052+#define glGetQueryBufferObjectuiv glad_glGetQueryBufferObjectuiv
5053+typedef void (APIENTRYP PFNGLMEMORYBARRIERBYREGIONPROC)(GLbitfield barriers);
5054+GLAPI PFNGLMEMORYBARRIERBYREGIONPROC glad_glMemoryBarrierByRegion;
5055+#define glMemoryBarrierByRegion glad_glMemoryBarrierByRegion
5056+typedef void (APIENTRYP PFNGLGETTEXTURESUBIMAGEPROC)(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, GLsizei bufSize, void *pixels);
5057+GLAPI PFNGLGETTEXTURESUBIMAGEPROC glad_glGetTextureSubImage;
5058+#define glGetTextureSubImage glad_glGetTextureSubImage
5059+typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXTURESUBIMAGEPROC)(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLsizei bufSize, void *pixels);
5060+GLAPI PFNGLGETCOMPRESSEDTEXTURESUBIMAGEPROC glad_glGetCompressedTextureSubImage;
5061+#define glGetCompressedTextureSubImage glad_glGetCompressedTextureSubImage
5062+typedef GLenum (APIENTRYP PFNGLGETGRAPHICSRESETSTATUSPROC)(void);
5063+GLAPI PFNGLGETGRAPHICSRESETSTATUSPROC glad_glGetGraphicsResetStatus;
5064+#define glGetGraphicsResetStatus glad_glGetGraphicsResetStatus
5065+typedef void (APIENTRYP PFNGLGETNCOMPRESSEDTEXIMAGEPROC)(GLenum target, GLint lod, GLsizei bufSize, void *pixels);
5066+GLAPI PFNGLGETNCOMPRESSEDTEXIMAGEPROC glad_glGetnCompressedTexImage;
5067+#define glGetnCompressedTexImage glad_glGetnCompressedTexImage
5068+typedef void (APIENTRYP PFNGLGETNTEXIMAGEPROC)(GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, void *pixels);
5069+GLAPI PFNGLGETNTEXIMAGEPROC glad_glGetnTexImage;
5070+#define glGetnTexImage glad_glGetnTexImage
5071+typedef void (APIENTRYP PFNGLGETNUNIFORMDVPROC)(GLuint program, GLint location, GLsizei bufSize, GLdouble *params);
5072+GLAPI PFNGLGETNUNIFORMDVPROC glad_glGetnUniformdv;
5073+#define glGetnUniformdv glad_glGetnUniformdv
5074+typedef void (APIENTRYP PFNGLGETNUNIFORMFVPROC)(GLuint program, GLint location, GLsizei bufSize, GLfloat *params);
5075+GLAPI PFNGLGETNUNIFORMFVPROC glad_glGetnUniformfv;
5076+#define glGetnUniformfv glad_glGetnUniformfv
5077+typedef void (APIENTRYP PFNGLGETNUNIFORMIVPROC)(GLuint program, GLint location, GLsizei bufSize, GLint *params);
5078+GLAPI PFNGLGETNUNIFORMIVPROC glad_glGetnUniformiv;
5079+#define glGetnUniformiv glad_glGetnUniformiv
5080+typedef void (APIENTRYP PFNGLGETNUNIFORMUIVPROC)(GLuint program, GLint location, GLsizei bufSize, GLuint *params);
5081+GLAPI PFNGLGETNUNIFORMUIVPROC glad_glGetnUniformuiv;
5082+#define glGetnUniformuiv glad_glGetnUniformuiv
5083+typedef void (APIENTRYP PFNGLREADNPIXELSPROC)(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data);
5084+GLAPI PFNGLREADNPIXELSPROC glad_glReadnPixels;
5085+#define glReadnPixels glad_glReadnPixels
5086+typedef void (APIENTRYP PFNGLGETNMAPDVPROC)(GLenum target, GLenum query, GLsizei bufSize, GLdouble *v);
5087+GLAPI PFNGLGETNMAPDVPROC glad_glGetnMapdv;
5088+#define glGetnMapdv glad_glGetnMapdv
5089+typedef void (APIENTRYP PFNGLGETNMAPFVPROC)(GLenum target, GLenum query, GLsizei bufSize, GLfloat *v);
5090+GLAPI PFNGLGETNMAPFVPROC glad_glGetnMapfv;
5091+#define glGetnMapfv glad_glGetnMapfv
5092+typedef void (APIENTRYP PFNGLGETNMAPIVPROC)(GLenum target, GLenum query, GLsizei bufSize, GLint *v);
5093+GLAPI PFNGLGETNMAPIVPROC glad_glGetnMapiv;
5094+#define glGetnMapiv glad_glGetnMapiv
5095+typedef void (APIENTRYP PFNGLGETNPIXELMAPFVPROC)(GLenum map, GLsizei bufSize, GLfloat *values);
5096+GLAPI PFNGLGETNPIXELMAPFVPROC glad_glGetnPixelMapfv;
5097+#define glGetnPixelMapfv glad_glGetnPixelMapfv
5098+typedef void (APIENTRYP PFNGLGETNPIXELMAPUIVPROC)(GLenum map, GLsizei bufSize, GLuint *values);
5099+GLAPI PFNGLGETNPIXELMAPUIVPROC glad_glGetnPixelMapuiv;
5100+#define glGetnPixelMapuiv glad_glGetnPixelMapuiv
5101+typedef void (APIENTRYP PFNGLGETNPIXELMAPUSVPROC)(GLenum map, GLsizei bufSize, GLushort *values);
5102+GLAPI PFNGLGETNPIXELMAPUSVPROC glad_glGetnPixelMapusv;
5103+#define glGetnPixelMapusv glad_glGetnPixelMapusv
5104+typedef void (APIENTRYP PFNGLGETNPOLYGONSTIPPLEPROC)(GLsizei bufSize, GLubyte *pattern);
5105+GLAPI PFNGLGETNPOLYGONSTIPPLEPROC glad_glGetnPolygonStipple;
5106+#define glGetnPolygonStipple glad_glGetnPolygonStipple
5107+typedef void (APIENTRYP PFNGLGETNCOLORTABLEPROC)(GLenum target, GLenum format, GLenum type, GLsizei bufSize, void *table);
5108+GLAPI PFNGLGETNCOLORTABLEPROC glad_glGetnColorTable;
5109+#define glGetnColorTable glad_glGetnColorTable
5110+typedef void (APIENTRYP PFNGLGETNCONVOLUTIONFILTERPROC)(GLenum target, GLenum format, GLenum type, GLsizei bufSize, void *image);
5111+GLAPI PFNGLGETNCONVOLUTIONFILTERPROC glad_glGetnConvolutionFilter;
5112+#define glGetnConvolutionFilter glad_glGetnConvolutionFilter
5113+typedef void (APIENTRYP PFNGLGETNSEPARABLEFILTERPROC)(GLenum target, GLenum format, GLenum type, GLsizei rowBufSize, void *row, GLsizei columnBufSize, void *column, void *span);
5114+GLAPI PFNGLGETNSEPARABLEFILTERPROC glad_glGetnSeparableFilter;
5115+#define glGetnSeparableFilter glad_glGetnSeparableFilter
5116+typedef void (APIENTRYP PFNGLGETNHISTOGRAMPROC)(GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, void *values);
5117+GLAPI PFNGLGETNHISTOGRAMPROC glad_glGetnHistogram;
5118+#define glGetnHistogram glad_glGetnHistogram
5119+typedef void (APIENTRYP PFNGLGETNMINMAXPROC)(GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, void *values);
5120+GLAPI PFNGLGETNMINMAXPROC glad_glGetnMinmax;
5121+#define glGetnMinmax glad_glGetnMinmax
5122+typedef void (APIENTRYP PFNGLTEXTUREBARRIERPROC)(void);
5123+GLAPI PFNGLTEXTUREBARRIERPROC glad_glTextureBarrier;
5124+#define glTextureBarrier glad_glTextureBarrier
5125+#endif
5126+
5127+#ifdef __cplusplus
5128+}
5129+#endif
5130+
5131+#endif
@@ -0,0 +1,40 @@
1+#pragma once
2+
3+typedef union {
4+ struct {
5+ float x;
6+ float y;
7+ };
8+ struct {
9+ float u;
10+ float v;
11+ };
12+} Vector2;
13+
14+typedef union {
15+ struct {
16+ float x;
17+ float y;
18+ float z;
19+ };
20+ struct {
21+ float r;
22+ float g;
23+ float b;
24+ };
25+} Vector3;
26+
27+typedef union {
28+ struct {
29+ float x;
30+ float y;
31+ float z;
32+ float w;
33+ };
34+ struct {
35+ float r;
36+ float g;
37+ float b;
38+ float a;
39+ };
40+} Vector4;

バイナリファイル

追加 main.c
@@ -0,0 +1,273 @@
1+#include <glad/glad.h>
2+#ifdef __APPLE__
3+#define GL_SILENCE_DEPRECATION
4+#include <CoreFoundation/CFBundle.h>
5+#endif
6+#include <GLFW/glfw3.h>
7+#include <stdio.h>
8+#include <stdlib.h>
9+#include <vector.h>
10+#include <math.h>
11+
12+// ファイルパスを構築(プラットフォームに応じて)
13+char *constructFilePath(const char *basePath) {
14+ char *fullPath = (char *)malloc(512);
15+ if (!fullPath) {
16+ printf("エラー: ファイルパスのメモリ確保に失敗しました\n");
17+ return NULL;
18+ }
19+
20+#ifdef __APPLE__
21+ // macOS: リソースフォルダからファイルパスを取得
22+ CFBundleRef mainBundle = CFBundleGetMainBundle();
23+ CFStringRef fileName = CFStringCreateWithCString(NULL, basePath, kCFStringEncodingUTF8);
24+ CFURLRef fileURL = CFBundleCopyResourceURL(mainBundle, fileName, NULL, NULL);
25+ CFRelease(fileName);
26+ if (!fileURL) {
27+ printf("エラー: リソースファイル %s が見つかりませんでした\n", basePath);
28+ free(fullPath);
29+ return NULL;
30+ }
31+ Boolean success = CFURLGetFileSystemRepresentation(fileURL, true, (UInt8 *)fullPath, 512);
32+ CFRelease(fileURL);
33+ if (!success) {
34+ printf("エラー: ファイルパス %s の変換に失敗しました\n", basePath);
35+ free(fullPath);
36+ return NULL;
37+ }
38+#else
39+ // WindowsとUnix: shaderサブディレクトリを仮定
40+ snprintf(fullPath, 512, "%s", basePath);
41+#endif
42+
43+ printf("シェーダーファイルを読み込み中: %s\n", fullPath);
44+ return fullPath;
45+}
46+
47+// ファイルからシェーダーソースを読み込む
48+char *readShaderFile(const char *filename) {
49+ char *fullPath = constructFilePath(filename);
50+ if (!fullPath) return NULL;
51+
52+ FILE *file = fopen(filename, "r");
53+ if (!file) {
54+ printf("シェーダーファイル %s を開けませんでした\n", filename);
55+ free(fullPath);
56+ return NULL;
57+ }
58+
59+ // ファイルサイズを取得
60+ fseek(file, 0, SEEK_END);
61+ long size = ftell(file);
62+ fseek(file, 0, SEEK_SET);
63+
64+ // メモリを確保(終端文字を含む)
65+ char *source = (char *)malloc(size + 1);
66+ if (!source) {
67+ printf("シェーダーファイル %s のメモリ確保に失敗しました\n", filename);
68+ fclose(file);
69+ free(fullPath);
70+ return NULL;
71+ }
72+
73+ // ファイルを読み込む
74+ size_t read_size = fread(source, 1, size, file);
75+ source[read_size] = '\0'; // 終端文字を追加
76+ fclose(file);
77+ free(fullPath);
78+ return source;
79+}
80+
81+// シェーダーのコンパイルエラーをチェック
82+void checkShaderCompile(GLuint shader) {
83+ GLint success;
84+ glGetShaderiv(shader, GL_COMPILE_STATUS, &success);
85+ if (!success) {
86+ char infoLog[512];
87+ glGetShaderInfoLog(shader, 512, NULL, infoLog);
88+ printf("シェーダーのコンパイルに失敗しました:\n%s\n", infoLog);
89+ }
90+}
91+
92+// プログラムのリンクエラーをチェック
93+void checkProgramLink(GLuint program) {
94+ GLint success;
95+ glGetProgramiv(program, GL_LINK_STATUS, &success);
96+ if (!success) {
97+ char infoLog[512];
98+ glGetProgramInfoLog(program, 512, NULL, infoLog);
99+ printf("プログラムのリンクに失敗しました:\n%s\n", infoLog);
100+ }
101+}
102+
103+// ビューポートのリサイズコールバック
104+void framebuffer_size_callback(GLFWwindow *window, int width, int height) {
105+ (void)window;
106+ glViewport(0, 0, width, height);
107+}
108+
109+int main(int argc, char **argv) {
110+ (void)argc;
111+ (void)argv;
112+
113+ // GLFWを初期化
114+ if (!glfwInit()) {
115+ puts("GLFWの初期化に失敗しました");
116+ return -1;
117+ }
118+
119+ glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 4);
120+#ifdef __APPLE__
121+ glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 1);
122+#else
123+ glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 5);
124+#endif
125+ glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
126+#ifdef __APPLE__
127+ glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE);
128+#endif
129+
130+ // ウィンドウを作成
131+ GLFWwindow *window = glfwCreateWindow(800, 600, "OpenGLシェーダーテスト", NULL, NULL);
132+ if (!window) {
133+ puts("GLFWウィンドウの作成に失敗しました");
134+ glfwTerminate();
135+ return -1;
136+ }
137+ glfwMakeContextCurrent(window);
138+
139+ // GLADを初期化
140+ if (!gladLoadGLLoader((GLADloadproc)glfwGetProcAddress)) {
141+ puts("GLADの初期化に失敗しました");
142+ glfwDestroyWindow(window);
143+ glfwTerminate();
144+ return -1;
145+ }
146+
147+ // ビューポートを設定
148+ glViewport(0, 0, 800, 600);
149+ glfwSetFramebufferSizeCallback(window, framebuffer_size_callback);
150+
151+ // シェーダーファイルを読み込む
152+#ifdef __APPLE__
153+ char *vertexShaderSource = readShaderFile("shader/vertex.mac.glsl");
154+ char *fragmentShaderSource = readShaderFile("shader/fragment.mac.glsl");
155+#else
156+ char *vertexShaderSource = readShaderFile("shader/vertex.glsl");
157+ char *fragmentShaderSource = readShaderFile("shader/fragment.glsl");
158+#endif
159+ if (!vertexShaderSource || !fragmentShaderSource) {
160+ puts("シェーダーファイルの読み込みに失敗しました");
161+ if (vertexShaderSource) free(vertexShaderSource);
162+ if (fragmentShaderSource) free(fragmentShaderSource);
163+ glfwDestroyWindow(window);
164+ glfwTerminate();
165+ return -1;
166+ }
167+
168+ // シェーダーをコンパイル
169+ GLuint vertexShader = glCreateShader(GL_VERTEX_SHADER);
170+ glShaderSource(vertexShader, 1, (const char **)&vertexShaderSource, NULL);
171+ glCompileShader(vertexShader);
172+ checkShaderCompile(vertexShader);
173+
174+ GLuint fragmentShader = glCreateShader(GL_FRAGMENT_SHADER);
175+ glShaderSource(fragmentShader, 1, (const char **)&fragmentShaderSource, NULL);
176+ glCompileShader(fragmentShader);
177+ checkShaderCompile(fragmentShader);
178+
179+ // シェーダープログラムをリンク
180+ GLuint shaderProgram = glCreateProgram();
181+ glAttachShader(shaderProgram, vertexShader);
182+ glAttachShader(shaderProgram, fragmentShader);
183+ glLinkProgram(shaderProgram);
184+ checkProgramLink(shaderProgram);
185+
186+ glDeleteShader(vertexShader);
187+ glDeleteShader(fragmentShader);
188+ free(vertexShaderSource);
189+ free(fragmentShaderSource);
190+
191+ // 頂点データ(フルスクリーンクアッド)を設定
192+ float vertices[] = {
193+ -1.0f, -1.0f, 0.0f, 0.0f, // 左下(位置、UV)
194+ 1.0f, -1.0f, 1.0f, 0.0f, // 右下
195+ 1.0f, 1.0f, 1.0f, 1.0f, // 右上
196+ -1.0f, 1.0f, 0.0f, 1.0f // 左上
197+ };
198+ GLuint indices[] = { 0, 1, 2, 2, 3, 0 };
199+
200+ GLuint VAO, VBO, EBO;
201+ glGenVertexArrays(1, &VAO);
202+ glGenBuffers(1, &VBO);
203+ glGenBuffers(1, &EBO);
204+
205+ glBindVertexArray(VAO);
206+ glBindBuffer(GL_ARRAY_BUFFER, VBO);
207+ glBufferData(GL_ARRAY_BUFFER, sizeof(vertices), vertices, GL_STATIC_DRAW);
208+ glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, EBO);
209+ glBufferData(GL_ELEMENT_ARRAY_BUFFER, sizeof(indices), indices, GL_STATIC_DRAW);
210+
211+ // 頂点属性:位置(location 0)、UV(location 1)
212+ glVertexAttribPointer(0, 2, GL_FLOAT, GL_FALSE, 4 * sizeof(float), (void *)0);
213+ glEnableVertexAttribArray(0);
214+ size_t offset = 2 * sizeof(float);
215+ glVertexAttribPointer(1, 2, GL_FLOAT, GL_FALSE, 4 * sizeof(float), (void *)offset);
216+ glEnableVertexAttribArray(1);
217+
218+ // メインレンダリングループ
219+ while (!glfwWindowShouldClose(window)) {
220+ // 画面をクリア
221+ glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
222+ glClear(GL_COLOR_BUFFER_BIT);
223+
224+ // シェーダープログラムを使用
225+ glUseProgram(shaderProgram);
226+
227+ // 時間に基づいて色をアニメーション
228+ float time = (float)glfwGetTime();
229+ float speed = 1.0f; // アニメーションの速度
230+ float phase = 2.0f * 3.14159f / 3.0f; // // 120度の位相差(3色用)
231+
232+ // uColorA: 赤 -> 緑 -> 青
233+ Vector3 colorA;
234+ colorA.r = sin(time * speed + 0.0f) * 0.5f + 0.5f; // 0.0 to 1.0
235+ colorA.g = sin(time * speed + phase) * 0.5f + 0.5f;
236+ colorA.b = sin(time * speed + 2.0f * phase) * 0.5f + 0.5f;
237+
238+ // uColorB: 緑 -> 青 -> 赤
239+ Vector3 colorB;
240+ colorB.r = sin(time * speed + 2.0f * phase) * 0.5f + 0.5f;
241+ colorB.g = sin(time * speed + 0.0f) * 0.5f + 0.5f;
242+ colorB.b = sin(time * speed + phase) * 0.5f + 0.5f;
243+
244+ // uColorC: 青 -> 赤 -> 緑
245+ Vector3 colorC;
246+ colorC.r = sin(time * speed + phase) * 0.5f + 0.5f;
247+ colorC.g = sin(time * speed + 2.0f * phase) * 0.5f + 0.5f;
248+ colorC.b = sin(time * speed + 0.0f) * 0.5f + 0.5f;
249+
250+ // ユニフォームを設定
251+ glUniform3f(glGetUniformLocation(shaderProgram, "uColorA"), colorA.r, colorA.g, colorA.b); // 赤
252+ glUniform3f(glGetUniformLocation(shaderProgram, "uColorB"), colorB.r, colorB.g, colorB.b); // 緑
253+ glUniform3f(glGetUniformLocation(shaderProgram, "uColorC"), colorC.r, colorC.g, colorC.b); // 青
254+
255+ // クアッドを描画
256+ glBindVertexArray(VAO);
257+ glDrawElements(GL_TRIANGLES, 6, GL_UNSIGNED_INT, 0);
258+
259+ // バッファをスワップし、イベントを処理
260+ glfwSwapBuffers(window);
261+ glfwPollEvents();
262+ }
263+
264+ // クリーンアップ
265+ glDeleteVertexArrays(1, &VAO);
266+ glDeleteBuffers(1, &VBO);
267+ glDeleteBuffers(1, &EBO);
268+ glDeleteProgram(shaderProgram);
269+ glfwDestroyWindow(window);
270+ glfwTerminate();
271+
272+ return 0;
273+}
@@ -0,0 +1,14 @@
1+#version 450 core
2+
3+in vec2 vUv;
4+out vec4 out_color;
5+
6+uniform vec3 uColorA;
7+uniform vec3 uColorB;
8+uniform vec3 uColorC;
9+
10+void main() {
11+ vec3 temp = mix(uColorA, uColorB, vUv.x);
12+ vec3 blendedColor = mix(temp, uColorC, vUv.y * 0.95);
13+ out_color = vec4(blendedColor, 1.0);
14+}
@@ -0,0 +1,12 @@
1+#version 410 core
2+
3+in vec2 vUv;
4+out vec4 out_color;
5+
6+uniform vec3 uColorA;
7+uniform vec3 uColorB;
8+
9+void main() {
10+ vec3 blendedColor = mix(uColorA, uColorB, vUv.x);
11+ out_color = vec4(blendedColor, 1.0);
12+}
@@ -0,0 +1,10 @@
1+#version 450 core
2+
3+layout(location = 0) in vec2 aPosition;
4+layout(location = 1) in vec2 aUv;
5+out vec2 vUv;
6+
7+void main() {
8+ vUv = aUv;
9+ gl_Position = vec4(aPosition, 0.0, 1.0);
10+}
@@ -0,0 +1,10 @@
1+#version 410 core
2+
3+layout(location = 0) in vec2 aPosition;
4+layout(location = 1) in vec2 aUv;
5+out vec2 vUv;
6+
7+void main() {
8+ vUv = aUv;
9+ gl_Position = vec4(aPosition, 0.0, 1.0);
10+}
追加 src/glad.c
@@ -0,0 +1,2518 @@
1+/*
2+
3+ OpenGL loader generated by glad 0.1.36 on Sat Jul 19 17:57:30 2025.
4+
5+ Language/Generator: C/C++
6+ Specification: gl
7+ APIs: gl=4.5
8+ Profile: compatibility
9+ Extensions:
10+
11+ Loader: True
12+ Local files: False
13+ Omit khrplatform: False
14+ Reproducible: False
15+
16+ Commandline:
17+ --profile="compatibility" --api="gl=4.5" --generator="c" --spec="gl" --extensions=""
18+ Online:
19+ https://glad.dav1d.de/#profile=compatibility&language=c&specification=gl&loader=on&api=gl%3D4.5
20+*/
21+
22+#include <stdio.h>
23+#include <stdlib.h>
24+#include <string.h>
25+#include <glad/glad.h>
26+
27+static void* get_proc(const char *namez);
28+
29+#if defined(_WIN32) || defined(__CYGWIN__)
30+#ifndef _WINDOWS_
31+#undef APIENTRY
32+#endif
33+#include <windows.h>
34+static HMODULE libGL;
35+
36+typedef void* (APIENTRYP PFNWGLGETPROCADDRESSPROC_PRIVATE)(const char*);
37+static PFNWGLGETPROCADDRESSPROC_PRIVATE gladGetProcAddressPtr;
38+
39+#ifdef _MSC_VER
40+#ifdef __has_include
41+ #if __has_include(<winapifamily.h>)
42+ #define HAVE_WINAPIFAMILY 1
43+ #endif
44+#elif _MSC_VER >= 1700 && !_USING_V110_SDK71_
45+ #define HAVE_WINAPIFAMILY 1
46+#endif
47+#endif
48+
49+#ifdef HAVE_WINAPIFAMILY
50+ #include <winapifamily.h>
51+ #if !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) && WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
52+ #define IS_UWP 1
53+ #endif
54+#endif
55+
56+static
57+int open_gl(void) {
58+#ifndef IS_UWP
59+ libGL = LoadLibraryW(L"opengl32.dll");
60+ if(libGL != NULL) {
61+ void (* tmp)(void);
62+ tmp = (void(*)(void)) GetProcAddress(libGL, "wglGetProcAddress");
63+ gladGetProcAddressPtr = (PFNWGLGETPROCADDRESSPROC_PRIVATE) tmp;
64+ return gladGetProcAddressPtr != NULL;
65+ }
66+#endif
67+
68+ return 0;
69+}
70+
71+static
72+void close_gl(void) {
73+ if(libGL != NULL) {
74+ FreeLibrary((HMODULE) libGL);
75+ libGL = NULL;
76+ }
77+}
78+#else
79+#include <dlfcn.h>
80+static void* libGL;
81+
82+#if !defined(__APPLE__) && !defined(__HAIKU__)
83+typedef void* (APIENTRYP PFNGLXGETPROCADDRESSPROC_PRIVATE)(const char*);
84+static PFNGLXGETPROCADDRESSPROC_PRIVATE gladGetProcAddressPtr;
85+#endif
86+
87+static
88+int open_gl(void) {
89+#ifdef __APPLE__
90+ static const char *NAMES[] = {
91+ "../Frameworks/OpenGL.framework/OpenGL",
92+ "/Library/Frameworks/OpenGL.framework/OpenGL",
93+ "/System/Library/Frameworks/OpenGL.framework/OpenGL",
94+ "/System/Library/Frameworks/OpenGL.framework/Versions/Current/OpenGL"
95+ };
96+#else
97+ static const char *NAMES[] = {"libGL.so.1", "libGL.so"};
98+#endif
99+
100+ unsigned int index = 0;
101+ for(index = 0; index < (sizeof(NAMES) / sizeof(NAMES[0])); index++) {
102+ libGL = dlopen(NAMES[index], RTLD_NOW | RTLD_GLOBAL);
103+
104+ if(libGL != NULL) {
105+#if defined(__APPLE__) || defined(__HAIKU__)
106+ return 1;
107+#else
108+ gladGetProcAddressPtr = (PFNGLXGETPROCADDRESSPROC_PRIVATE)dlsym(libGL,
109+ "glXGetProcAddressARB");
110+ return gladGetProcAddressPtr != NULL;
111+#endif
112+ }
113+ }
114+
115+ return 0;
116+}
117+
118+static
119+void close_gl(void) {
120+ if(libGL != NULL) {
121+ dlclose(libGL);
122+ libGL = NULL;
123+ }
124+}
125+#endif
126+
127+static
128+void* get_proc(const char *namez) {
129+ void* result = NULL;
130+ if(libGL == NULL) return NULL;
131+
132+#if !defined(__APPLE__) && !defined(__HAIKU__)
133+ if(gladGetProcAddressPtr != NULL) {
134+ result = gladGetProcAddressPtr(namez);
135+ }
136+#endif
137+ if(result == NULL) {
138+#if defined(_WIN32) || defined(__CYGWIN__)
139+ result = (void*)GetProcAddress((HMODULE) libGL, namez);
140+#else
141+ result = dlsym(libGL, namez);
142+#endif
143+ }
144+
145+ return result;
146+}
147+
148+int gladLoadGL(void) {
149+ int status = 0;
150+
151+ if(open_gl()) {
152+ status = gladLoadGLLoader(&get_proc);
153+ close_gl();
154+ }
155+
156+ return status;
157+}
158+
159+struct gladGLversionStruct GLVersion = { 0, 0 };
160+
161+#if defined(GL_ES_VERSION_3_0) || defined(GL_VERSION_3_0)
162+#define _GLAD_IS_SOME_NEW_VERSION 1
163+#endif
164+
165+static int max_loaded_major;
166+static int max_loaded_minor;
167+
168+static const char *exts = NULL;
169+static int num_exts_i = 0;
170+static char **exts_i = NULL;
171+
172+static int get_exts(void) {
173+#ifdef _GLAD_IS_SOME_NEW_VERSION
174+ if(max_loaded_major < 3) {
175+#endif
176+ exts = (const char *)glGetString(GL_EXTENSIONS);
177+#ifdef _GLAD_IS_SOME_NEW_VERSION
178+ } else {
179+ int index;
180+
181+ num_exts_i = 0;
182+ glGetIntegerv(GL_NUM_EXTENSIONS, &num_exts_i);
183+ if (num_exts_i > 0) {
184+ exts_i = (char **)malloc((size_t)num_exts_i * (sizeof *exts_i));
185+ }
186+
187+ if (exts_i == NULL) {
188+ return 0;
189+ }
190+
191+ for(index = 0; index < num_exts_i; index++) {
192+ const char *gl_str_tmp = (const char*)glGetStringi(GL_EXTENSIONS, index);
193+ size_t len = strlen(gl_str_tmp);
194+
195+ char *local_str = (char*)malloc((len+1) * sizeof(char));
196+ if(local_str != NULL) {
197+ memcpy(local_str, gl_str_tmp, (len+1) * sizeof(char));
198+ }
199+ exts_i[index] = local_str;
200+ }
201+ }
202+#endif
203+ return 1;
204+}
205+
206+static void free_exts(void) {
207+ if (exts_i != NULL) {
208+ int index;
209+ for(index = 0; index < num_exts_i; index++) {
210+ free((char *)exts_i[index]);
211+ }
212+ free((void *)exts_i);
213+ exts_i = NULL;
214+ }
215+}
216+
217+static int has_ext(const char *ext) {
218+#ifdef _GLAD_IS_SOME_NEW_VERSION
219+ if(max_loaded_major < 3) {
220+#endif
221+ const char *extensions;
222+ const char *loc;
223+ const char *terminator;
224+ extensions = exts;
225+ if(extensions == NULL || ext == NULL) {
226+ return 0;
227+ }
228+
229+ while(1) {
230+ loc = strstr(extensions, ext);
231+ if(loc == NULL) {
232+ return 0;
233+ }
234+
235+ terminator = loc + strlen(ext);
236+ if((loc == extensions || *(loc - 1) == ' ') &&
237+ (*terminator == ' ' || *terminator == '\0')) {
238+ return 1;
239+ }
240+ extensions = terminator;
241+ }
242+#ifdef _GLAD_IS_SOME_NEW_VERSION
243+ } else {
244+ int index;
245+ if(exts_i == NULL) return 0;
246+ for(index = 0; index < num_exts_i; index++) {
247+ const char *e = exts_i[index];
248+
249+ if(exts_i[index] != NULL && strcmp(e, ext) == 0) {
250+ return 1;
251+ }
252+ }
253+ }
254+#endif
255+
256+ return 0;
257+}
258+int GLAD_GL_VERSION_1_0 = 0;
259+int GLAD_GL_VERSION_1_1 = 0;
260+int GLAD_GL_VERSION_1_2 = 0;
261+int GLAD_GL_VERSION_1_3 = 0;
262+int GLAD_GL_VERSION_1_4 = 0;
263+int GLAD_GL_VERSION_1_5 = 0;
264+int GLAD_GL_VERSION_2_0 = 0;
265+int GLAD_GL_VERSION_2_1 = 0;
266+int GLAD_GL_VERSION_3_0 = 0;
267+int GLAD_GL_VERSION_3_1 = 0;
268+int GLAD_GL_VERSION_3_2 = 0;
269+int GLAD_GL_VERSION_3_3 = 0;
270+int GLAD_GL_VERSION_4_0 = 0;
271+int GLAD_GL_VERSION_4_1 = 0;
272+int GLAD_GL_VERSION_4_2 = 0;
273+int GLAD_GL_VERSION_4_3 = 0;
274+int GLAD_GL_VERSION_4_4 = 0;
275+int GLAD_GL_VERSION_4_5 = 0;
276+PFNGLACCUMPROC glad_glAccum = NULL;
277+PFNGLACTIVESHADERPROGRAMPROC glad_glActiveShaderProgram = NULL;
278+PFNGLACTIVETEXTUREPROC glad_glActiveTexture = NULL;
279+PFNGLALPHAFUNCPROC glad_glAlphaFunc = NULL;
280+PFNGLARETEXTURESRESIDENTPROC glad_glAreTexturesResident = NULL;
281+PFNGLARRAYELEMENTPROC glad_glArrayElement = NULL;
282+PFNGLATTACHSHADERPROC glad_glAttachShader = NULL;
283+PFNGLBEGINPROC glad_glBegin = NULL;
284+PFNGLBEGINCONDITIONALRENDERPROC glad_glBeginConditionalRender = NULL;
285+PFNGLBEGINQUERYPROC glad_glBeginQuery = NULL;
286+PFNGLBEGINQUERYINDEXEDPROC glad_glBeginQueryIndexed = NULL;
287+PFNGLBEGINTRANSFORMFEEDBACKPROC glad_glBeginTransformFeedback = NULL;
288+PFNGLBINDATTRIBLOCATIONPROC glad_glBindAttribLocation = NULL;
289+PFNGLBINDBUFFERPROC glad_glBindBuffer = NULL;
290+PFNGLBINDBUFFERBASEPROC glad_glBindBufferBase = NULL;
291+PFNGLBINDBUFFERRANGEPROC glad_glBindBufferRange = NULL;
292+PFNGLBINDBUFFERSBASEPROC glad_glBindBuffersBase = NULL;
293+PFNGLBINDBUFFERSRANGEPROC glad_glBindBuffersRange = NULL;
294+PFNGLBINDFRAGDATALOCATIONPROC glad_glBindFragDataLocation = NULL;
295+PFNGLBINDFRAGDATALOCATIONINDEXEDPROC glad_glBindFragDataLocationIndexed = NULL;
296+PFNGLBINDFRAMEBUFFERPROC glad_glBindFramebuffer = NULL;
297+PFNGLBINDIMAGETEXTUREPROC glad_glBindImageTexture = NULL;
298+PFNGLBINDIMAGETEXTURESPROC glad_glBindImageTextures = NULL;
299+PFNGLBINDPROGRAMPIPELINEPROC glad_glBindProgramPipeline = NULL;
300+PFNGLBINDRENDERBUFFERPROC glad_glBindRenderbuffer = NULL;
301+PFNGLBINDSAMPLERPROC glad_glBindSampler = NULL;
302+PFNGLBINDSAMPLERSPROC glad_glBindSamplers = NULL;
303+PFNGLBINDTEXTUREPROC glad_glBindTexture = NULL;
304+PFNGLBINDTEXTUREUNITPROC glad_glBindTextureUnit = NULL;
305+PFNGLBINDTEXTURESPROC glad_glBindTextures = NULL;
306+PFNGLBINDTRANSFORMFEEDBACKPROC glad_glBindTransformFeedback = NULL;
307+PFNGLBINDVERTEXARRAYPROC glad_glBindVertexArray = NULL;
308+PFNGLBINDVERTEXBUFFERPROC glad_glBindVertexBuffer = NULL;
309+PFNGLBINDVERTEXBUFFERSPROC glad_glBindVertexBuffers = NULL;
310+PFNGLBITMAPPROC glad_glBitmap = NULL;
311+PFNGLBLENDCOLORPROC glad_glBlendColor = NULL;
312+PFNGLBLENDEQUATIONPROC glad_glBlendEquation = NULL;
313+PFNGLBLENDEQUATIONSEPARATEPROC glad_glBlendEquationSeparate = NULL;
314+PFNGLBLENDEQUATIONSEPARATEIPROC glad_glBlendEquationSeparatei = NULL;
315+PFNGLBLENDEQUATIONIPROC glad_glBlendEquationi = NULL;
316+PFNGLBLENDFUNCPROC glad_glBlendFunc = NULL;
317+PFNGLBLENDFUNCSEPARATEPROC glad_glBlendFuncSeparate = NULL;
318+PFNGLBLENDFUNCSEPARATEIPROC glad_glBlendFuncSeparatei = NULL;
319+PFNGLBLENDFUNCIPROC glad_glBlendFunci = NULL;
320+PFNGLBLITFRAMEBUFFERPROC glad_glBlitFramebuffer = NULL;
321+PFNGLBLITNAMEDFRAMEBUFFERPROC glad_glBlitNamedFramebuffer = NULL;
322+PFNGLBUFFERDATAPROC glad_glBufferData = NULL;
323+PFNGLBUFFERSTORAGEPROC glad_glBufferStorage = NULL;
324+PFNGLBUFFERSUBDATAPROC glad_glBufferSubData = NULL;
325+PFNGLCALLLISTPROC glad_glCallList = NULL;
326+PFNGLCALLLISTSPROC glad_glCallLists = NULL;
327+PFNGLCHECKFRAMEBUFFERSTATUSPROC glad_glCheckFramebufferStatus = NULL;
328+PFNGLCHECKNAMEDFRAMEBUFFERSTATUSPROC glad_glCheckNamedFramebufferStatus = NULL;
329+PFNGLCLAMPCOLORPROC glad_glClampColor = NULL;
330+PFNGLCLEARPROC glad_glClear = NULL;
331+PFNGLCLEARACCUMPROC glad_glClearAccum = NULL;
332+PFNGLCLEARBUFFERDATAPROC glad_glClearBufferData = NULL;
333+PFNGLCLEARBUFFERSUBDATAPROC glad_glClearBufferSubData = NULL;
334+PFNGLCLEARBUFFERFIPROC glad_glClearBufferfi = NULL;
335+PFNGLCLEARBUFFERFVPROC glad_glClearBufferfv = NULL;
336+PFNGLCLEARBUFFERIVPROC glad_glClearBufferiv = NULL;
337+PFNGLCLEARBUFFERUIVPROC glad_glClearBufferuiv = NULL;
338+PFNGLCLEARCOLORPROC glad_glClearColor = NULL;
339+PFNGLCLEARDEPTHPROC glad_glClearDepth = NULL;
340+PFNGLCLEARDEPTHFPROC glad_glClearDepthf = NULL;
341+PFNGLCLEARINDEXPROC glad_glClearIndex = NULL;
342+PFNGLCLEARNAMEDBUFFERDATAPROC glad_glClearNamedBufferData = NULL;
343+PFNGLCLEARNAMEDBUFFERSUBDATAPROC glad_glClearNamedBufferSubData = NULL;
344+PFNGLCLEARNAMEDFRAMEBUFFERFIPROC glad_glClearNamedFramebufferfi = NULL;
345+PFNGLCLEARNAMEDFRAMEBUFFERFVPROC glad_glClearNamedFramebufferfv = NULL;
346+PFNGLCLEARNAMEDFRAMEBUFFERIVPROC glad_glClearNamedFramebufferiv = NULL;
347+PFNGLCLEARNAMEDFRAMEBUFFERUIVPROC glad_glClearNamedFramebufferuiv = NULL;
348+PFNGLCLEARSTENCILPROC glad_glClearStencil = NULL;
349+PFNGLCLEARTEXIMAGEPROC glad_glClearTexImage = NULL;
350+PFNGLCLEARTEXSUBIMAGEPROC glad_glClearTexSubImage = NULL;
351+PFNGLCLIENTACTIVETEXTUREPROC glad_glClientActiveTexture = NULL;
352+PFNGLCLIENTWAITSYNCPROC glad_glClientWaitSync = NULL;
353+PFNGLCLIPCONTROLPROC glad_glClipControl = NULL;
354+PFNGLCLIPPLANEPROC glad_glClipPlane = NULL;
355+PFNGLCOLOR3BPROC glad_glColor3b = NULL;
356+PFNGLCOLOR3BVPROC glad_glColor3bv = NULL;
357+PFNGLCOLOR3DPROC glad_glColor3d = NULL;
358+PFNGLCOLOR3DVPROC glad_glColor3dv = NULL;
359+PFNGLCOLOR3FPROC glad_glColor3f = NULL;
360+PFNGLCOLOR3FVPROC glad_glColor3fv = NULL;
361+PFNGLCOLOR3IPROC glad_glColor3i = NULL;
362+PFNGLCOLOR3IVPROC glad_glColor3iv = NULL;
363+PFNGLCOLOR3SPROC glad_glColor3s = NULL;
364+PFNGLCOLOR3SVPROC glad_glColor3sv = NULL;
365+PFNGLCOLOR3UBPROC glad_glColor3ub = NULL;
366+PFNGLCOLOR3UBVPROC glad_glColor3ubv = NULL;
367+PFNGLCOLOR3UIPROC glad_glColor3ui = NULL;
368+PFNGLCOLOR3UIVPROC glad_glColor3uiv = NULL;
369+PFNGLCOLOR3USPROC glad_glColor3us = NULL;
370+PFNGLCOLOR3USVPROC glad_glColor3usv = NULL;
371+PFNGLCOLOR4BPROC glad_glColor4b = NULL;
372+PFNGLCOLOR4BVPROC glad_glColor4bv = NULL;
373+PFNGLCOLOR4DPROC glad_glColor4d = NULL;
374+PFNGLCOLOR4DVPROC glad_glColor4dv = NULL;
375+PFNGLCOLOR4FPROC glad_glColor4f = NULL;
376+PFNGLCOLOR4FVPROC glad_glColor4fv = NULL;
377+PFNGLCOLOR4IPROC glad_glColor4i = NULL;
378+PFNGLCOLOR4IVPROC glad_glColor4iv = NULL;
379+PFNGLCOLOR4SPROC glad_glColor4s = NULL;
380+PFNGLCOLOR4SVPROC glad_glColor4sv = NULL;
381+PFNGLCOLOR4UBPROC glad_glColor4ub = NULL;
382+PFNGLCOLOR4UBVPROC glad_glColor4ubv = NULL;
383+PFNGLCOLOR4UIPROC glad_glColor4ui = NULL;
384+PFNGLCOLOR4UIVPROC glad_glColor4uiv = NULL;
385+PFNGLCOLOR4USPROC glad_glColor4us = NULL;
386+PFNGLCOLOR4USVPROC glad_glColor4usv = NULL;
387+PFNGLCOLORMASKPROC glad_glColorMask = NULL;
388+PFNGLCOLORMASKIPROC glad_glColorMaski = NULL;
389+PFNGLCOLORMATERIALPROC glad_glColorMaterial = NULL;
390+PFNGLCOLORP3UIPROC glad_glColorP3ui = NULL;
391+PFNGLCOLORP3UIVPROC glad_glColorP3uiv = NULL;
392+PFNGLCOLORP4UIPROC glad_glColorP4ui = NULL;
393+PFNGLCOLORP4UIVPROC glad_glColorP4uiv = NULL;
394+PFNGLCOLORPOINTERPROC glad_glColorPointer = NULL;
395+PFNGLCOMPILESHADERPROC glad_glCompileShader = NULL;
396+PFNGLCOMPRESSEDTEXIMAGE1DPROC glad_glCompressedTexImage1D = NULL;
397+PFNGLCOMPRESSEDTEXIMAGE2DPROC glad_glCompressedTexImage2D = NULL;
398+PFNGLCOMPRESSEDTEXIMAGE3DPROC glad_glCompressedTexImage3D = NULL;
399+PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC glad_glCompressedTexSubImage1D = NULL;
400+PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC glad_glCompressedTexSubImage2D = NULL;
401+PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC glad_glCompressedTexSubImage3D = NULL;
402+PFNGLCOMPRESSEDTEXTURESUBIMAGE1DPROC glad_glCompressedTextureSubImage1D = NULL;
403+PFNGLCOMPRESSEDTEXTURESUBIMAGE2DPROC glad_glCompressedTextureSubImage2D = NULL;
404+PFNGLCOMPRESSEDTEXTURESUBIMAGE3DPROC glad_glCompressedTextureSubImage3D = NULL;
405+PFNGLCOPYBUFFERSUBDATAPROC glad_glCopyBufferSubData = NULL;
406+PFNGLCOPYIMAGESUBDATAPROC glad_glCopyImageSubData = NULL;
407+PFNGLCOPYNAMEDBUFFERSUBDATAPROC glad_glCopyNamedBufferSubData = NULL;
408+PFNGLCOPYPIXELSPROC glad_glCopyPixels = NULL;
409+PFNGLCOPYTEXIMAGE1DPROC glad_glCopyTexImage1D = NULL;
410+PFNGLCOPYTEXIMAGE2DPROC glad_glCopyTexImage2D = NULL;
411+PFNGLCOPYTEXSUBIMAGE1DPROC glad_glCopyTexSubImage1D = NULL;
412+PFNGLCOPYTEXSUBIMAGE2DPROC glad_glCopyTexSubImage2D = NULL;
413+PFNGLCOPYTEXSUBIMAGE3DPROC glad_glCopyTexSubImage3D = NULL;
414+PFNGLCOPYTEXTURESUBIMAGE1DPROC glad_glCopyTextureSubImage1D = NULL;
415+PFNGLCOPYTEXTURESUBIMAGE2DPROC glad_glCopyTextureSubImage2D = NULL;
416+PFNGLCOPYTEXTURESUBIMAGE3DPROC glad_glCopyTextureSubImage3D = NULL;
417+PFNGLCREATEBUFFERSPROC glad_glCreateBuffers = NULL;
418+PFNGLCREATEFRAMEBUFFERSPROC glad_glCreateFramebuffers = NULL;
419+PFNGLCREATEPROGRAMPROC glad_glCreateProgram = NULL;
420+PFNGLCREATEPROGRAMPIPELINESPROC glad_glCreateProgramPipelines = NULL;
421+PFNGLCREATEQUERIESPROC glad_glCreateQueries = NULL;
422+PFNGLCREATERENDERBUFFERSPROC glad_glCreateRenderbuffers = NULL;
423+PFNGLCREATESAMPLERSPROC glad_glCreateSamplers = NULL;
424+PFNGLCREATESHADERPROC glad_glCreateShader = NULL;
425+PFNGLCREATESHADERPROGRAMVPROC glad_glCreateShaderProgramv = NULL;
426+PFNGLCREATETEXTURESPROC glad_glCreateTextures = NULL;
427+PFNGLCREATETRANSFORMFEEDBACKSPROC glad_glCreateTransformFeedbacks = NULL;
428+PFNGLCREATEVERTEXARRAYSPROC glad_glCreateVertexArrays = NULL;
429+PFNGLCULLFACEPROC glad_glCullFace = NULL;
430+PFNGLDEBUGMESSAGECALLBACKPROC glad_glDebugMessageCallback = NULL;
431+PFNGLDEBUGMESSAGECONTROLPROC glad_glDebugMessageControl = NULL;
432+PFNGLDEBUGMESSAGEINSERTPROC glad_glDebugMessageInsert = NULL;
433+PFNGLDELETEBUFFERSPROC glad_glDeleteBuffers = NULL;
434+PFNGLDELETEFRAMEBUFFERSPROC glad_glDeleteFramebuffers = NULL;
435+PFNGLDELETELISTSPROC glad_glDeleteLists = NULL;
436+PFNGLDELETEPROGRAMPROC glad_glDeleteProgram = NULL;
437+PFNGLDELETEPROGRAMPIPELINESPROC glad_glDeleteProgramPipelines = NULL;
438+PFNGLDELETEQUERIESPROC glad_glDeleteQueries = NULL;
439+PFNGLDELETERENDERBUFFERSPROC glad_glDeleteRenderbuffers = NULL;
440+PFNGLDELETESAMPLERSPROC glad_glDeleteSamplers = NULL;
441+PFNGLDELETESHADERPROC glad_glDeleteShader = NULL;
442+PFNGLDELETESYNCPROC glad_glDeleteSync = NULL;
443+PFNGLDELETETEXTURESPROC glad_glDeleteTextures = NULL;
444+PFNGLDELETETRANSFORMFEEDBACKSPROC glad_glDeleteTransformFeedbacks = NULL;
445+PFNGLDELETEVERTEXARRAYSPROC glad_glDeleteVertexArrays = NULL;
446+PFNGLDEPTHFUNCPROC glad_glDepthFunc = NULL;
447+PFNGLDEPTHMASKPROC glad_glDepthMask = NULL;
448+PFNGLDEPTHRANGEPROC glad_glDepthRange = NULL;
449+PFNGLDEPTHRANGEARRAYVPROC glad_glDepthRangeArrayv = NULL;
450+PFNGLDEPTHRANGEINDEXEDPROC glad_glDepthRangeIndexed = NULL;
451+PFNGLDEPTHRANGEFPROC glad_glDepthRangef = NULL;
452+PFNGLDETACHSHADERPROC glad_glDetachShader = NULL;
453+PFNGLDISABLEPROC glad_glDisable = NULL;
454+PFNGLDISABLECLIENTSTATEPROC glad_glDisableClientState = NULL;
455+PFNGLDISABLEVERTEXARRAYATTRIBPROC glad_glDisableVertexArrayAttrib = NULL;
456+PFNGLDISABLEVERTEXATTRIBARRAYPROC glad_glDisableVertexAttribArray = NULL;
457+PFNGLDISABLEIPROC glad_glDisablei = NULL;
458+PFNGLDISPATCHCOMPUTEPROC glad_glDispatchCompute = NULL;
459+PFNGLDISPATCHCOMPUTEINDIRECTPROC glad_glDispatchComputeIndirect = NULL;
460+PFNGLDRAWARRAYSPROC glad_glDrawArrays = NULL;
461+PFNGLDRAWARRAYSINDIRECTPROC glad_glDrawArraysIndirect = NULL;
462+PFNGLDRAWARRAYSINSTANCEDPROC glad_glDrawArraysInstanced = NULL;
463+PFNGLDRAWARRAYSINSTANCEDBASEINSTANCEPROC glad_glDrawArraysInstancedBaseInstance = NULL;
464+PFNGLDRAWBUFFERPROC glad_glDrawBuffer = NULL;
465+PFNGLDRAWBUFFERSPROC glad_glDrawBuffers = NULL;
466+PFNGLDRAWELEMENTSPROC glad_glDrawElements = NULL;
467+PFNGLDRAWELEMENTSBASEVERTEXPROC glad_glDrawElementsBaseVertex = NULL;
468+PFNGLDRAWELEMENTSINDIRECTPROC glad_glDrawElementsIndirect = NULL;
469+PFNGLDRAWELEMENTSINSTANCEDPROC glad_glDrawElementsInstanced = NULL;
470+PFNGLDRAWELEMENTSINSTANCEDBASEINSTANCEPROC glad_glDrawElementsInstancedBaseInstance = NULL;
471+PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC glad_glDrawElementsInstancedBaseVertex = NULL;
472+PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXBASEINSTANCEPROC glad_glDrawElementsInstancedBaseVertexBaseInstance = NULL;
473+PFNGLDRAWPIXELSPROC glad_glDrawPixels = NULL;
474+PFNGLDRAWRANGEELEMENTSPROC glad_glDrawRangeElements = NULL;
475+PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC glad_glDrawRangeElementsBaseVertex = NULL;
476+PFNGLDRAWTRANSFORMFEEDBACKPROC glad_glDrawTransformFeedback = NULL;
477+PFNGLDRAWTRANSFORMFEEDBACKINSTANCEDPROC glad_glDrawTransformFeedbackInstanced = NULL;
478+PFNGLDRAWTRANSFORMFEEDBACKSTREAMPROC glad_glDrawTransformFeedbackStream = NULL;
479+PFNGLDRAWTRANSFORMFEEDBACKSTREAMINSTANCEDPROC glad_glDrawTransformFeedbackStreamInstanced = NULL;
480+PFNGLEDGEFLAGPROC glad_glEdgeFlag = NULL;
481+PFNGLEDGEFLAGPOINTERPROC glad_glEdgeFlagPointer = NULL;
482+PFNGLEDGEFLAGVPROC glad_glEdgeFlagv = NULL;
483+PFNGLENABLEPROC glad_glEnable = NULL;
484+PFNGLENABLECLIENTSTATEPROC glad_glEnableClientState = NULL;
485+PFNGLENABLEVERTEXARRAYATTRIBPROC glad_glEnableVertexArrayAttrib = NULL;
486+PFNGLENABLEVERTEXATTRIBARRAYPROC glad_glEnableVertexAttribArray = NULL;
487+PFNGLENABLEIPROC glad_glEnablei = NULL;
488+PFNGLENDPROC glad_glEnd = NULL;
489+PFNGLENDCONDITIONALRENDERPROC glad_glEndConditionalRender = NULL;
490+PFNGLENDLISTPROC glad_glEndList = NULL;
491+PFNGLENDQUERYPROC glad_glEndQuery = NULL;
492+PFNGLENDQUERYINDEXEDPROC glad_glEndQueryIndexed = NULL;
493+PFNGLENDTRANSFORMFEEDBACKPROC glad_glEndTransformFeedback = NULL;
494+PFNGLEVALCOORD1DPROC glad_glEvalCoord1d = NULL;
495+PFNGLEVALCOORD1DVPROC glad_glEvalCoord1dv = NULL;
496+PFNGLEVALCOORD1FPROC glad_glEvalCoord1f = NULL;
497+PFNGLEVALCOORD1FVPROC glad_glEvalCoord1fv = NULL;
498+PFNGLEVALCOORD2DPROC glad_glEvalCoord2d = NULL;
499+PFNGLEVALCOORD2DVPROC glad_glEvalCoord2dv = NULL;
500+PFNGLEVALCOORD2FPROC glad_glEvalCoord2f = NULL;
501+PFNGLEVALCOORD2FVPROC glad_glEvalCoord2fv = NULL;
502+PFNGLEVALMESH1PROC glad_glEvalMesh1 = NULL;
503+PFNGLEVALMESH2PROC glad_glEvalMesh2 = NULL;
504+PFNGLEVALPOINT1PROC glad_glEvalPoint1 = NULL;
505+PFNGLEVALPOINT2PROC glad_glEvalPoint2 = NULL;
506+PFNGLFEEDBACKBUFFERPROC glad_glFeedbackBuffer = NULL;
507+PFNGLFENCESYNCPROC glad_glFenceSync = NULL;
508+PFNGLFINISHPROC glad_glFinish = NULL;
509+PFNGLFLUSHPROC glad_glFlush = NULL;
510+PFNGLFLUSHMAPPEDBUFFERRANGEPROC glad_glFlushMappedBufferRange = NULL;
511+PFNGLFLUSHMAPPEDNAMEDBUFFERRANGEPROC glad_glFlushMappedNamedBufferRange = NULL;
512+PFNGLFOGCOORDPOINTERPROC glad_glFogCoordPointer = NULL;
513+PFNGLFOGCOORDDPROC glad_glFogCoordd = NULL;
514+PFNGLFOGCOORDDVPROC glad_glFogCoorddv = NULL;
515+PFNGLFOGCOORDFPROC glad_glFogCoordf = NULL;
516+PFNGLFOGCOORDFVPROC glad_glFogCoordfv = NULL;
517+PFNGLFOGFPROC glad_glFogf = NULL;
518+PFNGLFOGFVPROC glad_glFogfv = NULL;
519+PFNGLFOGIPROC glad_glFogi = NULL;
520+PFNGLFOGIVPROC glad_glFogiv = NULL;
521+PFNGLFRAMEBUFFERPARAMETERIPROC glad_glFramebufferParameteri = NULL;
522+PFNGLFRAMEBUFFERRENDERBUFFERPROC glad_glFramebufferRenderbuffer = NULL;
523+PFNGLFRAMEBUFFERTEXTUREPROC glad_glFramebufferTexture = NULL;
524+PFNGLFRAMEBUFFERTEXTURE1DPROC glad_glFramebufferTexture1D = NULL;
525+PFNGLFRAMEBUFFERTEXTURE2DPROC glad_glFramebufferTexture2D = NULL;
526+PFNGLFRAMEBUFFERTEXTURE3DPROC glad_glFramebufferTexture3D = NULL;
527+PFNGLFRAMEBUFFERTEXTURELAYERPROC glad_glFramebufferTextureLayer = NULL;
528+PFNGLFRONTFACEPROC glad_glFrontFace = NULL;
529+PFNGLFRUSTUMPROC glad_glFrustum = NULL;
530+PFNGLGENBUFFERSPROC glad_glGenBuffers = NULL;
531+PFNGLGENFRAMEBUFFERSPROC glad_glGenFramebuffers = NULL;
532+PFNGLGENLISTSPROC glad_glGenLists = NULL;
533+PFNGLGENPROGRAMPIPELINESPROC glad_glGenProgramPipelines = NULL;
534+PFNGLGENQUERIESPROC glad_glGenQueries = NULL;
535+PFNGLGENRENDERBUFFERSPROC glad_glGenRenderbuffers = NULL;
536+PFNGLGENSAMPLERSPROC glad_glGenSamplers = NULL;
537+PFNGLGENTEXTURESPROC glad_glGenTextures = NULL;
538+PFNGLGENTRANSFORMFEEDBACKSPROC glad_glGenTransformFeedbacks = NULL;
539+PFNGLGENVERTEXARRAYSPROC glad_glGenVertexArrays = NULL;
540+PFNGLGENERATEMIPMAPPROC glad_glGenerateMipmap = NULL;
541+PFNGLGENERATETEXTUREMIPMAPPROC glad_glGenerateTextureMipmap = NULL;
542+PFNGLGETACTIVEATOMICCOUNTERBUFFERIVPROC glad_glGetActiveAtomicCounterBufferiv = NULL;
543+PFNGLGETACTIVEATTRIBPROC glad_glGetActiveAttrib = NULL;
544+PFNGLGETACTIVESUBROUTINENAMEPROC glad_glGetActiveSubroutineName = NULL;
545+PFNGLGETACTIVESUBROUTINEUNIFORMNAMEPROC glad_glGetActiveSubroutineUniformName = NULL;
546+PFNGLGETACTIVESUBROUTINEUNIFORMIVPROC glad_glGetActiveSubroutineUniformiv = NULL;
547+PFNGLGETACTIVEUNIFORMPROC glad_glGetActiveUniform = NULL;
548+PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC glad_glGetActiveUniformBlockName = NULL;
549+PFNGLGETACTIVEUNIFORMBLOCKIVPROC glad_glGetActiveUniformBlockiv = NULL;
550+PFNGLGETACTIVEUNIFORMNAMEPROC glad_glGetActiveUniformName = NULL;
551+PFNGLGETACTIVEUNIFORMSIVPROC glad_glGetActiveUniformsiv = NULL;
552+PFNGLGETATTACHEDSHADERSPROC glad_glGetAttachedShaders = NULL;
553+PFNGLGETATTRIBLOCATIONPROC glad_glGetAttribLocation = NULL;
554+PFNGLGETBOOLEANI_VPROC glad_glGetBooleani_v = NULL;
555+PFNGLGETBOOLEANVPROC glad_glGetBooleanv = NULL;
556+PFNGLGETBUFFERPARAMETERI64VPROC glad_glGetBufferParameteri64v = NULL;
557+PFNGLGETBUFFERPARAMETERIVPROC glad_glGetBufferParameteriv = NULL;
558+PFNGLGETBUFFERPOINTERVPROC glad_glGetBufferPointerv = NULL;
559+PFNGLGETBUFFERSUBDATAPROC glad_glGetBufferSubData = NULL;
560+PFNGLGETCLIPPLANEPROC glad_glGetClipPlane = NULL;
561+PFNGLGETCOMPRESSEDTEXIMAGEPROC glad_glGetCompressedTexImage = NULL;
562+PFNGLGETCOMPRESSEDTEXTUREIMAGEPROC glad_glGetCompressedTextureImage = NULL;
563+PFNGLGETCOMPRESSEDTEXTURESUBIMAGEPROC glad_glGetCompressedTextureSubImage = NULL;
564+PFNGLGETDEBUGMESSAGELOGPROC glad_glGetDebugMessageLog = NULL;
565+PFNGLGETDOUBLEI_VPROC glad_glGetDoublei_v = NULL;
566+PFNGLGETDOUBLEVPROC glad_glGetDoublev = NULL;
567+PFNGLGETERRORPROC glad_glGetError = NULL;
568+PFNGLGETFLOATI_VPROC glad_glGetFloati_v = NULL;
569+PFNGLGETFLOATVPROC glad_glGetFloatv = NULL;
570+PFNGLGETFRAGDATAINDEXPROC glad_glGetFragDataIndex = NULL;
571+PFNGLGETFRAGDATALOCATIONPROC glad_glGetFragDataLocation = NULL;
572+PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC glad_glGetFramebufferAttachmentParameteriv = NULL;
573+PFNGLGETFRAMEBUFFERPARAMETERIVPROC glad_glGetFramebufferParameteriv = NULL;
574+PFNGLGETGRAPHICSRESETSTATUSPROC glad_glGetGraphicsResetStatus = NULL;
575+PFNGLGETINTEGER64I_VPROC glad_glGetInteger64i_v = NULL;
576+PFNGLGETINTEGER64VPROC glad_glGetInteger64v = NULL;
577+PFNGLGETINTEGERI_VPROC glad_glGetIntegeri_v = NULL;
578+PFNGLGETINTEGERVPROC glad_glGetIntegerv = NULL;
579+PFNGLGETINTERNALFORMATI64VPROC glad_glGetInternalformati64v = NULL;
580+PFNGLGETINTERNALFORMATIVPROC glad_glGetInternalformativ = NULL;
581+PFNGLGETLIGHTFVPROC glad_glGetLightfv = NULL;
582+PFNGLGETLIGHTIVPROC glad_glGetLightiv = NULL;
583+PFNGLGETMAPDVPROC glad_glGetMapdv = NULL;
584+PFNGLGETMAPFVPROC glad_glGetMapfv = NULL;
585+PFNGLGETMAPIVPROC glad_glGetMapiv = NULL;
586+PFNGLGETMATERIALFVPROC glad_glGetMaterialfv = NULL;
587+PFNGLGETMATERIALIVPROC glad_glGetMaterialiv = NULL;
588+PFNGLGETMULTISAMPLEFVPROC glad_glGetMultisamplefv = NULL;
589+PFNGLGETNAMEDBUFFERPARAMETERI64VPROC glad_glGetNamedBufferParameteri64v = NULL;
590+PFNGLGETNAMEDBUFFERPARAMETERIVPROC glad_glGetNamedBufferParameteriv = NULL;
591+PFNGLGETNAMEDBUFFERPOINTERVPROC glad_glGetNamedBufferPointerv = NULL;
592+PFNGLGETNAMEDBUFFERSUBDATAPROC glad_glGetNamedBufferSubData = NULL;
593+PFNGLGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIVPROC glad_glGetNamedFramebufferAttachmentParameteriv = NULL;
594+PFNGLGETNAMEDFRAMEBUFFERPARAMETERIVPROC glad_glGetNamedFramebufferParameteriv = NULL;
595+PFNGLGETNAMEDRENDERBUFFERPARAMETERIVPROC glad_glGetNamedRenderbufferParameteriv = NULL;
596+PFNGLGETOBJECTLABELPROC glad_glGetObjectLabel = NULL;
597+PFNGLGETOBJECTPTRLABELPROC glad_glGetObjectPtrLabel = NULL;
598+PFNGLGETPIXELMAPFVPROC glad_glGetPixelMapfv = NULL;
599+PFNGLGETPIXELMAPUIVPROC glad_glGetPixelMapuiv = NULL;
600+PFNGLGETPIXELMAPUSVPROC glad_glGetPixelMapusv = NULL;
601+PFNGLGETPOINTERVPROC glad_glGetPointerv = NULL;
602+PFNGLGETPOLYGONSTIPPLEPROC glad_glGetPolygonStipple = NULL;
603+PFNGLGETPROGRAMBINARYPROC glad_glGetProgramBinary = NULL;
604+PFNGLGETPROGRAMINFOLOGPROC glad_glGetProgramInfoLog = NULL;
605+PFNGLGETPROGRAMINTERFACEIVPROC glad_glGetProgramInterfaceiv = NULL;
606+PFNGLGETPROGRAMPIPELINEINFOLOGPROC glad_glGetProgramPipelineInfoLog = NULL;
607+PFNGLGETPROGRAMPIPELINEIVPROC glad_glGetProgramPipelineiv = NULL;
608+PFNGLGETPROGRAMRESOURCEINDEXPROC glad_glGetProgramResourceIndex = NULL;
609+PFNGLGETPROGRAMRESOURCELOCATIONPROC glad_glGetProgramResourceLocation = NULL;
610+PFNGLGETPROGRAMRESOURCELOCATIONINDEXPROC glad_glGetProgramResourceLocationIndex = NULL;
611+PFNGLGETPROGRAMRESOURCENAMEPROC glad_glGetProgramResourceName = NULL;
612+PFNGLGETPROGRAMRESOURCEIVPROC glad_glGetProgramResourceiv = NULL;
613+PFNGLGETPROGRAMSTAGEIVPROC glad_glGetProgramStageiv = NULL;
614+PFNGLGETPROGRAMIVPROC glad_glGetProgramiv = NULL;
615+PFNGLGETQUERYBUFFEROBJECTI64VPROC glad_glGetQueryBufferObjecti64v = NULL;
616+PFNGLGETQUERYBUFFEROBJECTIVPROC glad_glGetQueryBufferObjectiv = NULL;
617+PFNGLGETQUERYBUFFEROBJECTUI64VPROC glad_glGetQueryBufferObjectui64v = NULL;
618+PFNGLGETQUERYBUFFEROBJECTUIVPROC glad_glGetQueryBufferObjectuiv = NULL;
619+PFNGLGETQUERYINDEXEDIVPROC glad_glGetQueryIndexediv = NULL;
620+PFNGLGETQUERYOBJECTI64VPROC glad_glGetQueryObjecti64v = NULL;
621+PFNGLGETQUERYOBJECTIVPROC glad_glGetQueryObjectiv = NULL;
622+PFNGLGETQUERYOBJECTUI64VPROC glad_glGetQueryObjectui64v = NULL;
623+PFNGLGETQUERYOBJECTUIVPROC glad_glGetQueryObjectuiv = NULL;
624+PFNGLGETQUERYIVPROC glad_glGetQueryiv = NULL;
625+PFNGLGETRENDERBUFFERPARAMETERIVPROC glad_glGetRenderbufferParameteriv = NULL;
626+PFNGLGETSAMPLERPARAMETERIIVPROC glad_glGetSamplerParameterIiv = NULL;
627+PFNGLGETSAMPLERPARAMETERIUIVPROC glad_glGetSamplerParameterIuiv = NULL;
628+PFNGLGETSAMPLERPARAMETERFVPROC glad_glGetSamplerParameterfv = NULL;
629+PFNGLGETSAMPLERPARAMETERIVPROC glad_glGetSamplerParameteriv = NULL;
630+PFNGLGETSHADERINFOLOGPROC glad_glGetShaderInfoLog = NULL;
631+PFNGLGETSHADERPRECISIONFORMATPROC glad_glGetShaderPrecisionFormat = NULL;
632+PFNGLGETSHADERSOURCEPROC glad_glGetShaderSource = NULL;
633+PFNGLGETSHADERIVPROC glad_glGetShaderiv = NULL;
634+PFNGLGETSTRINGPROC glad_glGetString = NULL;
635+PFNGLGETSTRINGIPROC glad_glGetStringi = NULL;
636+PFNGLGETSUBROUTINEINDEXPROC glad_glGetSubroutineIndex = NULL;
637+PFNGLGETSUBROUTINEUNIFORMLOCATIONPROC glad_glGetSubroutineUniformLocation = NULL;
638+PFNGLGETSYNCIVPROC glad_glGetSynciv = NULL;
639+PFNGLGETTEXENVFVPROC glad_glGetTexEnvfv = NULL;
640+PFNGLGETTEXENVIVPROC glad_glGetTexEnviv = NULL;
641+PFNGLGETTEXGENDVPROC glad_glGetTexGendv = NULL;
642+PFNGLGETTEXGENFVPROC glad_glGetTexGenfv = NULL;
643+PFNGLGETTEXGENIVPROC glad_glGetTexGeniv = NULL;
644+PFNGLGETTEXIMAGEPROC glad_glGetTexImage = NULL;
645+PFNGLGETTEXLEVELPARAMETERFVPROC glad_glGetTexLevelParameterfv = NULL;
646+PFNGLGETTEXLEVELPARAMETERIVPROC glad_glGetTexLevelParameteriv = NULL;
647+PFNGLGETTEXPARAMETERIIVPROC glad_glGetTexParameterIiv = NULL;
648+PFNGLGETTEXPARAMETERIUIVPROC glad_glGetTexParameterIuiv = NULL;
649+PFNGLGETTEXPARAMETERFVPROC glad_glGetTexParameterfv = NULL;
650+PFNGLGETTEXPARAMETERIVPROC glad_glGetTexParameteriv = NULL;
651+PFNGLGETTEXTUREIMAGEPROC glad_glGetTextureImage = NULL;
652+PFNGLGETTEXTURELEVELPARAMETERFVPROC glad_glGetTextureLevelParameterfv = NULL;
653+PFNGLGETTEXTURELEVELPARAMETERIVPROC glad_glGetTextureLevelParameteriv = NULL;
654+PFNGLGETTEXTUREPARAMETERIIVPROC glad_glGetTextureParameterIiv = NULL;
655+PFNGLGETTEXTUREPARAMETERIUIVPROC glad_glGetTextureParameterIuiv = NULL;
656+PFNGLGETTEXTUREPARAMETERFVPROC glad_glGetTextureParameterfv = NULL;
657+PFNGLGETTEXTUREPARAMETERIVPROC glad_glGetTextureParameteriv = NULL;
658+PFNGLGETTEXTURESUBIMAGEPROC glad_glGetTextureSubImage = NULL;
659+PFNGLGETTRANSFORMFEEDBACKVARYINGPROC glad_glGetTransformFeedbackVarying = NULL;
660+PFNGLGETTRANSFORMFEEDBACKI64_VPROC glad_glGetTransformFeedbacki64_v = NULL;
661+PFNGLGETTRANSFORMFEEDBACKI_VPROC glad_glGetTransformFeedbacki_v = NULL;
662+PFNGLGETTRANSFORMFEEDBACKIVPROC glad_glGetTransformFeedbackiv = NULL;
663+PFNGLGETUNIFORMBLOCKINDEXPROC glad_glGetUniformBlockIndex = NULL;
664+PFNGLGETUNIFORMINDICESPROC glad_glGetUniformIndices = NULL;
665+PFNGLGETUNIFORMLOCATIONPROC glad_glGetUniformLocation = NULL;
666+PFNGLGETUNIFORMSUBROUTINEUIVPROC glad_glGetUniformSubroutineuiv = NULL;
667+PFNGLGETUNIFORMDVPROC glad_glGetUniformdv = NULL;
668+PFNGLGETUNIFORMFVPROC glad_glGetUniformfv = NULL;
669+PFNGLGETUNIFORMIVPROC glad_glGetUniformiv = NULL;
670+PFNGLGETUNIFORMUIVPROC glad_glGetUniformuiv = NULL;
671+PFNGLGETVERTEXARRAYINDEXED64IVPROC glad_glGetVertexArrayIndexed64iv = NULL;
672+PFNGLGETVERTEXARRAYINDEXEDIVPROC glad_glGetVertexArrayIndexediv = NULL;
673+PFNGLGETVERTEXARRAYIVPROC glad_glGetVertexArrayiv = NULL;
674+PFNGLGETVERTEXATTRIBIIVPROC glad_glGetVertexAttribIiv = NULL;
675+PFNGLGETVERTEXATTRIBIUIVPROC glad_glGetVertexAttribIuiv = NULL;
676+PFNGLGETVERTEXATTRIBLDVPROC glad_glGetVertexAttribLdv = NULL;
677+PFNGLGETVERTEXATTRIBPOINTERVPROC glad_glGetVertexAttribPointerv = NULL;
678+PFNGLGETVERTEXATTRIBDVPROC glad_glGetVertexAttribdv = NULL;
679+PFNGLGETVERTEXATTRIBFVPROC glad_glGetVertexAttribfv = NULL;
680+PFNGLGETVERTEXATTRIBIVPROC glad_glGetVertexAttribiv = NULL;
681+PFNGLGETNCOLORTABLEPROC glad_glGetnColorTable = NULL;
682+PFNGLGETNCOMPRESSEDTEXIMAGEPROC glad_glGetnCompressedTexImage = NULL;
683+PFNGLGETNCONVOLUTIONFILTERPROC glad_glGetnConvolutionFilter = NULL;
684+PFNGLGETNHISTOGRAMPROC glad_glGetnHistogram = NULL;
685+PFNGLGETNMAPDVPROC glad_glGetnMapdv = NULL;
686+PFNGLGETNMAPFVPROC glad_glGetnMapfv = NULL;
687+PFNGLGETNMAPIVPROC glad_glGetnMapiv = NULL;
688+PFNGLGETNMINMAXPROC glad_glGetnMinmax = NULL;
689+PFNGLGETNPIXELMAPFVPROC glad_glGetnPixelMapfv = NULL;
690+PFNGLGETNPIXELMAPUIVPROC glad_glGetnPixelMapuiv = NULL;
691+PFNGLGETNPIXELMAPUSVPROC glad_glGetnPixelMapusv = NULL;
692+PFNGLGETNPOLYGONSTIPPLEPROC glad_glGetnPolygonStipple = NULL;
693+PFNGLGETNSEPARABLEFILTERPROC glad_glGetnSeparableFilter = NULL;
694+PFNGLGETNTEXIMAGEPROC glad_glGetnTexImage = NULL;
695+PFNGLGETNUNIFORMDVPROC glad_glGetnUniformdv = NULL;
696+PFNGLGETNUNIFORMFVPROC glad_glGetnUniformfv = NULL;
697+PFNGLGETNUNIFORMIVPROC glad_glGetnUniformiv = NULL;
698+PFNGLGETNUNIFORMUIVPROC glad_glGetnUniformuiv = NULL;
699+PFNGLHINTPROC glad_glHint = NULL;
700+PFNGLINDEXMASKPROC glad_glIndexMask = NULL;
701+PFNGLINDEXPOINTERPROC glad_glIndexPointer = NULL;
702+PFNGLINDEXDPROC glad_glIndexd = NULL;
703+PFNGLINDEXDVPROC glad_glIndexdv = NULL;
704+PFNGLINDEXFPROC glad_glIndexf = NULL;
705+PFNGLINDEXFVPROC glad_glIndexfv = NULL;
706+PFNGLINDEXIPROC glad_glIndexi = NULL;
707+PFNGLINDEXIVPROC glad_glIndexiv = NULL;
708+PFNGLINDEXSPROC glad_glIndexs = NULL;
709+PFNGLINDEXSVPROC glad_glIndexsv = NULL;
710+PFNGLINDEXUBPROC glad_glIndexub = NULL;
711+PFNGLINDEXUBVPROC glad_glIndexubv = NULL;
712+PFNGLINITNAMESPROC glad_glInitNames = NULL;
713+PFNGLINTERLEAVEDARRAYSPROC glad_glInterleavedArrays = NULL;
714+PFNGLINVALIDATEBUFFERDATAPROC glad_glInvalidateBufferData = NULL;
715+PFNGLINVALIDATEBUFFERSUBDATAPROC glad_glInvalidateBufferSubData = NULL;
716+PFNGLINVALIDATEFRAMEBUFFERPROC glad_glInvalidateFramebuffer = NULL;
717+PFNGLINVALIDATENAMEDFRAMEBUFFERDATAPROC glad_glInvalidateNamedFramebufferData = NULL;
718+PFNGLINVALIDATENAMEDFRAMEBUFFERSUBDATAPROC glad_glInvalidateNamedFramebufferSubData = NULL;
719+PFNGLINVALIDATESUBFRAMEBUFFERPROC glad_glInvalidateSubFramebuffer = NULL;
720+PFNGLINVALIDATETEXIMAGEPROC glad_glInvalidateTexImage = NULL;
721+PFNGLINVALIDATETEXSUBIMAGEPROC glad_glInvalidateTexSubImage = NULL;
722+PFNGLISBUFFERPROC glad_glIsBuffer = NULL;
723+PFNGLISENABLEDPROC glad_glIsEnabled = NULL;
724+PFNGLISENABLEDIPROC glad_glIsEnabledi = NULL;
725+PFNGLISFRAMEBUFFERPROC glad_glIsFramebuffer = NULL;
726+PFNGLISLISTPROC glad_glIsList = NULL;
727+PFNGLISPROGRAMPROC glad_glIsProgram = NULL;
728+PFNGLISPROGRAMPIPELINEPROC glad_glIsProgramPipeline = NULL;
729+PFNGLISQUERYPROC glad_glIsQuery = NULL;
730+PFNGLISRENDERBUFFERPROC glad_glIsRenderbuffer = NULL;
731+PFNGLISSAMPLERPROC glad_glIsSampler = NULL;
732+PFNGLISSHADERPROC glad_glIsShader = NULL;
733+PFNGLISSYNCPROC glad_glIsSync = NULL;
734+PFNGLISTEXTUREPROC glad_glIsTexture = NULL;
735+PFNGLISTRANSFORMFEEDBACKPROC glad_glIsTransformFeedback = NULL;
736+PFNGLISVERTEXARRAYPROC glad_glIsVertexArray = NULL;
737+PFNGLLIGHTMODELFPROC glad_glLightModelf = NULL;
738+PFNGLLIGHTMODELFVPROC glad_glLightModelfv = NULL;
739+PFNGLLIGHTMODELIPROC glad_glLightModeli = NULL;
740+PFNGLLIGHTMODELIVPROC glad_glLightModeliv = NULL;
741+PFNGLLIGHTFPROC glad_glLightf = NULL;
742+PFNGLLIGHTFVPROC glad_glLightfv = NULL;
743+PFNGLLIGHTIPROC glad_glLighti = NULL;
744+PFNGLLIGHTIVPROC glad_glLightiv = NULL;
745+PFNGLLINESTIPPLEPROC glad_glLineStipple = NULL;
746+PFNGLLINEWIDTHPROC glad_glLineWidth = NULL;
747+PFNGLLINKPROGRAMPROC glad_glLinkProgram = NULL;
748+PFNGLLISTBASEPROC glad_glListBase = NULL;
749+PFNGLLOADIDENTITYPROC glad_glLoadIdentity = NULL;
750+PFNGLLOADMATRIXDPROC glad_glLoadMatrixd = NULL;
751+PFNGLLOADMATRIXFPROC glad_glLoadMatrixf = NULL;
752+PFNGLLOADNAMEPROC glad_glLoadName = NULL;
753+PFNGLLOADTRANSPOSEMATRIXDPROC glad_glLoadTransposeMatrixd = NULL;
754+PFNGLLOADTRANSPOSEMATRIXFPROC glad_glLoadTransposeMatrixf = NULL;
755+PFNGLLOGICOPPROC glad_glLogicOp = NULL;
756+PFNGLMAP1DPROC glad_glMap1d = NULL;
757+PFNGLMAP1FPROC glad_glMap1f = NULL;
758+PFNGLMAP2DPROC glad_glMap2d = NULL;
759+PFNGLMAP2FPROC glad_glMap2f = NULL;
760+PFNGLMAPBUFFERPROC glad_glMapBuffer = NULL;
761+PFNGLMAPBUFFERRANGEPROC glad_glMapBufferRange = NULL;
762+PFNGLMAPGRID1DPROC glad_glMapGrid1d = NULL;
763+PFNGLMAPGRID1FPROC glad_glMapGrid1f = NULL;
764+PFNGLMAPGRID2DPROC glad_glMapGrid2d = NULL;
765+PFNGLMAPGRID2FPROC glad_glMapGrid2f = NULL;
766+PFNGLMAPNAMEDBUFFERPROC glad_glMapNamedBuffer = NULL;
767+PFNGLMAPNAMEDBUFFERRANGEPROC glad_glMapNamedBufferRange = NULL;
768+PFNGLMATERIALFPROC glad_glMaterialf = NULL;
769+PFNGLMATERIALFVPROC glad_glMaterialfv = NULL;
770+PFNGLMATERIALIPROC glad_glMateriali = NULL;
771+PFNGLMATERIALIVPROC glad_glMaterialiv = NULL;
772+PFNGLMATRIXMODEPROC glad_glMatrixMode = NULL;
773+PFNGLMEMORYBARRIERPROC glad_glMemoryBarrier = NULL;
774+PFNGLMEMORYBARRIERBYREGIONPROC glad_glMemoryBarrierByRegion = NULL;
775+PFNGLMINSAMPLESHADINGPROC glad_glMinSampleShading = NULL;
776+PFNGLMULTMATRIXDPROC glad_glMultMatrixd = NULL;
777+PFNGLMULTMATRIXFPROC glad_glMultMatrixf = NULL;
778+PFNGLMULTTRANSPOSEMATRIXDPROC glad_glMultTransposeMatrixd = NULL;
779+PFNGLMULTTRANSPOSEMATRIXFPROC glad_glMultTransposeMatrixf = NULL;
780+PFNGLMULTIDRAWARRAYSPROC glad_glMultiDrawArrays = NULL;
781+PFNGLMULTIDRAWARRAYSINDIRECTPROC glad_glMultiDrawArraysIndirect = NULL;
782+PFNGLMULTIDRAWELEMENTSPROC glad_glMultiDrawElements = NULL;
783+PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC glad_glMultiDrawElementsBaseVertex = NULL;
784+PFNGLMULTIDRAWELEMENTSINDIRECTPROC glad_glMultiDrawElementsIndirect = NULL;
785+PFNGLMULTITEXCOORD1DPROC glad_glMultiTexCoord1d = NULL;
786+PFNGLMULTITEXCOORD1DVPROC glad_glMultiTexCoord1dv = NULL;
787+PFNGLMULTITEXCOORD1FPROC glad_glMultiTexCoord1f = NULL;
788+PFNGLMULTITEXCOORD1FVPROC glad_glMultiTexCoord1fv = NULL;
789+PFNGLMULTITEXCOORD1IPROC glad_glMultiTexCoord1i = NULL;
790+PFNGLMULTITEXCOORD1IVPROC glad_glMultiTexCoord1iv = NULL;
791+PFNGLMULTITEXCOORD1SPROC glad_glMultiTexCoord1s = NULL;
792+PFNGLMULTITEXCOORD1SVPROC glad_glMultiTexCoord1sv = NULL;
793+PFNGLMULTITEXCOORD2DPROC glad_glMultiTexCoord2d = NULL;
794+PFNGLMULTITEXCOORD2DVPROC glad_glMultiTexCoord2dv = NULL;
795+PFNGLMULTITEXCOORD2FPROC glad_glMultiTexCoord2f = NULL;
796+PFNGLMULTITEXCOORD2FVPROC glad_glMultiTexCoord2fv = NULL;
797+PFNGLMULTITEXCOORD2IPROC glad_glMultiTexCoord2i = NULL;
798+PFNGLMULTITEXCOORD2IVPROC glad_glMultiTexCoord2iv = NULL;
799+PFNGLMULTITEXCOORD2SPROC glad_glMultiTexCoord2s = NULL;
800+PFNGLMULTITEXCOORD2SVPROC glad_glMultiTexCoord2sv = NULL;
801+PFNGLMULTITEXCOORD3DPROC glad_glMultiTexCoord3d = NULL;
802+PFNGLMULTITEXCOORD3DVPROC glad_glMultiTexCoord3dv = NULL;
803+PFNGLMULTITEXCOORD3FPROC glad_glMultiTexCoord3f = NULL;
804+PFNGLMULTITEXCOORD3FVPROC glad_glMultiTexCoord3fv = NULL;
805+PFNGLMULTITEXCOORD3IPROC glad_glMultiTexCoord3i = NULL;
806+PFNGLMULTITEXCOORD3IVPROC glad_glMultiTexCoord3iv = NULL;
807+PFNGLMULTITEXCOORD3SPROC glad_glMultiTexCoord3s = NULL;
808+PFNGLMULTITEXCOORD3SVPROC glad_glMultiTexCoord3sv = NULL;
809+PFNGLMULTITEXCOORD4DPROC glad_glMultiTexCoord4d = NULL;
810+PFNGLMULTITEXCOORD4DVPROC glad_glMultiTexCoord4dv = NULL;
811+PFNGLMULTITEXCOORD4FPROC glad_glMultiTexCoord4f = NULL;
812+PFNGLMULTITEXCOORD4FVPROC glad_glMultiTexCoord4fv = NULL;
813+PFNGLMULTITEXCOORD4IPROC glad_glMultiTexCoord4i = NULL;
814+PFNGLMULTITEXCOORD4IVPROC glad_glMultiTexCoord4iv = NULL;
815+PFNGLMULTITEXCOORD4SPROC glad_glMultiTexCoord4s = NULL;
816+PFNGLMULTITEXCOORD4SVPROC glad_glMultiTexCoord4sv = NULL;
817+PFNGLMULTITEXCOORDP1UIPROC glad_glMultiTexCoordP1ui = NULL;
818+PFNGLMULTITEXCOORDP1UIVPROC glad_glMultiTexCoordP1uiv = NULL;
819+PFNGLMULTITEXCOORDP2UIPROC glad_glMultiTexCoordP2ui = NULL;
820+PFNGLMULTITEXCOORDP2UIVPROC glad_glMultiTexCoordP2uiv = NULL;
821+PFNGLMULTITEXCOORDP3UIPROC glad_glMultiTexCoordP3ui = NULL;
822+PFNGLMULTITEXCOORDP3UIVPROC glad_glMultiTexCoordP3uiv = NULL;
823+PFNGLMULTITEXCOORDP4UIPROC glad_glMultiTexCoordP4ui = NULL;
824+PFNGLMULTITEXCOORDP4UIVPROC glad_glMultiTexCoordP4uiv = NULL;
825+PFNGLNAMEDBUFFERDATAPROC glad_glNamedBufferData = NULL;
826+PFNGLNAMEDBUFFERSTORAGEPROC glad_glNamedBufferStorage = NULL;
827+PFNGLNAMEDBUFFERSUBDATAPROC glad_glNamedBufferSubData = NULL;
828+PFNGLNAMEDFRAMEBUFFERDRAWBUFFERPROC glad_glNamedFramebufferDrawBuffer = NULL;
829+PFNGLNAMEDFRAMEBUFFERDRAWBUFFERSPROC glad_glNamedFramebufferDrawBuffers = NULL;
830+PFNGLNAMEDFRAMEBUFFERPARAMETERIPROC glad_glNamedFramebufferParameteri = NULL;
831+PFNGLNAMEDFRAMEBUFFERREADBUFFERPROC glad_glNamedFramebufferReadBuffer = NULL;
832+PFNGLNAMEDFRAMEBUFFERRENDERBUFFERPROC glad_glNamedFramebufferRenderbuffer = NULL;
833+PFNGLNAMEDFRAMEBUFFERTEXTUREPROC glad_glNamedFramebufferTexture = NULL;
834+PFNGLNAMEDFRAMEBUFFERTEXTURELAYERPROC glad_glNamedFramebufferTextureLayer = NULL;
835+PFNGLNAMEDRENDERBUFFERSTORAGEPROC glad_glNamedRenderbufferStorage = NULL;
836+PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLEPROC glad_glNamedRenderbufferStorageMultisample = NULL;
837+PFNGLNEWLISTPROC glad_glNewList = NULL;
838+PFNGLNORMAL3BPROC glad_glNormal3b = NULL;
839+PFNGLNORMAL3BVPROC glad_glNormal3bv = NULL;
840+PFNGLNORMAL3DPROC glad_glNormal3d = NULL;
841+PFNGLNORMAL3DVPROC glad_glNormal3dv = NULL;
842+PFNGLNORMAL3FPROC glad_glNormal3f = NULL;
843+PFNGLNORMAL3FVPROC glad_glNormal3fv = NULL;
844+PFNGLNORMAL3IPROC glad_glNormal3i = NULL;
845+PFNGLNORMAL3IVPROC glad_glNormal3iv = NULL;
846+PFNGLNORMAL3SPROC glad_glNormal3s = NULL;
847+PFNGLNORMAL3SVPROC glad_glNormal3sv = NULL;
848+PFNGLNORMALP3UIPROC glad_glNormalP3ui = NULL;
849+PFNGLNORMALP3UIVPROC glad_glNormalP3uiv = NULL;
850+PFNGLNORMALPOINTERPROC glad_glNormalPointer = NULL;
851+PFNGLOBJECTLABELPROC glad_glObjectLabel = NULL;
852+PFNGLOBJECTPTRLABELPROC glad_glObjectPtrLabel = NULL;
853+PFNGLORTHOPROC glad_glOrtho = NULL;
854+PFNGLPASSTHROUGHPROC glad_glPassThrough = NULL;
855+PFNGLPATCHPARAMETERFVPROC glad_glPatchParameterfv = NULL;
856+PFNGLPATCHPARAMETERIPROC glad_glPatchParameteri = NULL;
857+PFNGLPAUSETRANSFORMFEEDBACKPROC glad_glPauseTransformFeedback = NULL;
858+PFNGLPIXELMAPFVPROC glad_glPixelMapfv = NULL;
859+PFNGLPIXELMAPUIVPROC glad_glPixelMapuiv = NULL;
860+PFNGLPIXELMAPUSVPROC glad_glPixelMapusv = NULL;
861+PFNGLPIXELSTOREFPROC glad_glPixelStoref = NULL;
862+PFNGLPIXELSTOREIPROC glad_glPixelStorei = NULL;
863+PFNGLPIXELTRANSFERFPROC glad_glPixelTransferf = NULL;
864+PFNGLPIXELTRANSFERIPROC glad_glPixelTransferi = NULL;
865+PFNGLPIXELZOOMPROC glad_glPixelZoom = NULL;
866+PFNGLPOINTPARAMETERFPROC glad_glPointParameterf = NULL;
867+PFNGLPOINTPARAMETERFVPROC glad_glPointParameterfv = NULL;
868+PFNGLPOINTPARAMETERIPROC glad_glPointParameteri = NULL;
869+PFNGLPOINTPARAMETERIVPROC glad_glPointParameteriv = NULL;
870+PFNGLPOINTSIZEPROC glad_glPointSize = NULL;
871+PFNGLPOLYGONMODEPROC glad_glPolygonMode = NULL;
872+PFNGLPOLYGONOFFSETPROC glad_glPolygonOffset = NULL;
873+PFNGLPOLYGONSTIPPLEPROC glad_glPolygonStipple = NULL;
874+PFNGLPOPATTRIBPROC glad_glPopAttrib = NULL;
875+PFNGLPOPCLIENTATTRIBPROC glad_glPopClientAttrib = NULL;
876+PFNGLPOPDEBUGGROUPPROC glad_glPopDebugGroup = NULL;
877+PFNGLPOPMATRIXPROC glad_glPopMatrix = NULL;
878+PFNGLPOPNAMEPROC glad_glPopName = NULL;
879+PFNGLPRIMITIVERESTARTINDEXPROC glad_glPrimitiveRestartIndex = NULL;
880+PFNGLPRIORITIZETEXTURESPROC glad_glPrioritizeTextures = NULL;
881+PFNGLPROGRAMBINARYPROC glad_glProgramBinary = NULL;
882+PFNGLPROGRAMPARAMETERIPROC glad_glProgramParameteri = NULL;
883+PFNGLPROGRAMUNIFORM1DPROC glad_glProgramUniform1d = NULL;
884+PFNGLPROGRAMUNIFORM1DVPROC glad_glProgramUniform1dv = NULL;
885+PFNGLPROGRAMUNIFORM1FPROC glad_glProgramUniform1f = NULL;
886+PFNGLPROGRAMUNIFORM1FVPROC glad_glProgramUniform1fv = NULL;
887+PFNGLPROGRAMUNIFORM1IPROC glad_glProgramUniform1i = NULL;
888+PFNGLPROGRAMUNIFORM1IVPROC glad_glProgramUniform1iv = NULL;
889+PFNGLPROGRAMUNIFORM1UIPROC glad_glProgramUniform1ui = NULL;
890+PFNGLPROGRAMUNIFORM1UIVPROC glad_glProgramUniform1uiv = NULL;
891+PFNGLPROGRAMUNIFORM2DPROC glad_glProgramUniform2d = NULL;
892+PFNGLPROGRAMUNIFORM2DVPROC glad_glProgramUniform2dv = NULL;
893+PFNGLPROGRAMUNIFORM2FPROC glad_glProgramUniform2f = NULL;
894+PFNGLPROGRAMUNIFORM2FVPROC glad_glProgramUniform2fv = NULL;
895+PFNGLPROGRAMUNIFORM2IPROC glad_glProgramUniform2i = NULL;
896+PFNGLPROGRAMUNIFORM2IVPROC glad_glProgramUniform2iv = NULL;
897+PFNGLPROGRAMUNIFORM2UIPROC glad_glProgramUniform2ui = NULL;
898+PFNGLPROGRAMUNIFORM2UIVPROC glad_glProgramUniform2uiv = NULL;
899+PFNGLPROGRAMUNIFORM3DPROC glad_glProgramUniform3d = NULL;
900+PFNGLPROGRAMUNIFORM3DVPROC glad_glProgramUniform3dv = NULL;
901+PFNGLPROGRAMUNIFORM3FPROC glad_glProgramUniform3f = NULL;
902+PFNGLPROGRAMUNIFORM3FVPROC glad_glProgramUniform3fv = NULL;
903+PFNGLPROGRAMUNIFORM3IPROC glad_glProgramUniform3i = NULL;
904+PFNGLPROGRAMUNIFORM3IVPROC glad_glProgramUniform3iv = NULL;
905+PFNGLPROGRAMUNIFORM3UIPROC glad_glProgramUniform3ui = NULL;
906+PFNGLPROGRAMUNIFORM3UIVPROC glad_glProgramUniform3uiv = NULL;
907+PFNGLPROGRAMUNIFORM4DPROC glad_glProgramUniform4d = NULL;
908+PFNGLPROGRAMUNIFORM4DVPROC glad_glProgramUniform4dv = NULL;
909+PFNGLPROGRAMUNIFORM4FPROC glad_glProgramUniform4f = NULL;
910+PFNGLPROGRAMUNIFORM4FVPROC glad_glProgramUniform4fv = NULL;
911+PFNGLPROGRAMUNIFORM4IPROC glad_glProgramUniform4i = NULL;
912+PFNGLPROGRAMUNIFORM4IVPROC glad_glProgramUniform4iv = NULL;
913+PFNGLPROGRAMUNIFORM4UIPROC glad_glProgramUniform4ui = NULL;
914+PFNGLPROGRAMUNIFORM4UIVPROC glad_glProgramUniform4uiv = NULL;
915+PFNGLPROGRAMUNIFORMMATRIX2DVPROC glad_glProgramUniformMatrix2dv = NULL;
916+PFNGLPROGRAMUNIFORMMATRIX2FVPROC glad_glProgramUniformMatrix2fv = NULL;
917+PFNGLPROGRAMUNIFORMMATRIX2X3DVPROC glad_glProgramUniformMatrix2x3dv = NULL;
918+PFNGLPROGRAMUNIFORMMATRIX2X3FVPROC glad_glProgramUniformMatrix2x3fv = NULL;
919+PFNGLPROGRAMUNIFORMMATRIX2X4DVPROC glad_glProgramUniformMatrix2x4dv = NULL;
920+PFNGLPROGRAMUNIFORMMATRIX2X4FVPROC glad_glProgramUniformMatrix2x4fv = NULL;
921+PFNGLPROGRAMUNIFORMMATRIX3DVPROC glad_glProgramUniformMatrix3dv = NULL;
922+PFNGLPROGRAMUNIFORMMATRIX3FVPROC glad_glProgramUniformMatrix3fv = NULL;
923+PFNGLPROGRAMUNIFORMMATRIX3X2DVPROC glad_glProgramUniformMatrix3x2dv = NULL;
924+PFNGLPROGRAMUNIFORMMATRIX3X2FVPROC glad_glProgramUniformMatrix3x2fv = NULL;
925+PFNGLPROGRAMUNIFORMMATRIX3X4DVPROC glad_glProgramUniformMatrix3x4dv = NULL;
926+PFNGLPROGRAMUNIFORMMATRIX3X4FVPROC glad_glProgramUniformMatrix3x4fv = NULL;
927+PFNGLPROGRAMUNIFORMMATRIX4DVPROC glad_glProgramUniformMatrix4dv = NULL;
928+PFNGLPROGRAMUNIFORMMATRIX4FVPROC glad_glProgramUniformMatrix4fv = NULL;
929+PFNGLPROGRAMUNIFORMMATRIX4X2DVPROC glad_glProgramUniformMatrix4x2dv = NULL;
930+PFNGLPROGRAMUNIFORMMATRIX4X2FVPROC glad_glProgramUniformMatrix4x2fv = NULL;
931+PFNGLPROGRAMUNIFORMMATRIX4X3DVPROC glad_glProgramUniformMatrix4x3dv = NULL;
932+PFNGLPROGRAMUNIFORMMATRIX4X3FVPROC glad_glProgramUniformMatrix4x3fv = NULL;
933+PFNGLPROVOKINGVERTEXPROC glad_glProvokingVertex = NULL;
934+PFNGLPUSHATTRIBPROC glad_glPushAttrib = NULL;
935+PFNGLPUSHCLIENTATTRIBPROC glad_glPushClientAttrib = NULL;
936+PFNGLPUSHDEBUGGROUPPROC glad_glPushDebugGroup = NULL;
937+PFNGLPUSHMATRIXPROC glad_glPushMatrix = NULL;
938+PFNGLPUSHNAMEPROC glad_glPushName = NULL;
939+PFNGLQUERYCOUNTERPROC glad_glQueryCounter = NULL;
940+PFNGLRASTERPOS2DPROC glad_glRasterPos2d = NULL;
941+PFNGLRASTERPOS2DVPROC glad_glRasterPos2dv = NULL;
942+PFNGLRASTERPOS2FPROC glad_glRasterPos2f = NULL;
943+PFNGLRASTERPOS2FVPROC glad_glRasterPos2fv = NULL;
944+PFNGLRASTERPOS2IPROC glad_glRasterPos2i = NULL;
945+PFNGLRASTERPOS2IVPROC glad_glRasterPos2iv = NULL;
946+PFNGLRASTERPOS2SPROC glad_glRasterPos2s = NULL;
947+PFNGLRASTERPOS2SVPROC glad_glRasterPos2sv = NULL;
948+PFNGLRASTERPOS3DPROC glad_glRasterPos3d = NULL;
949+PFNGLRASTERPOS3DVPROC glad_glRasterPos3dv = NULL;
950+PFNGLRASTERPOS3FPROC glad_glRasterPos3f = NULL;
951+PFNGLRASTERPOS3FVPROC glad_glRasterPos3fv = NULL;
952+PFNGLRASTERPOS3IPROC glad_glRasterPos3i = NULL;
953+PFNGLRASTERPOS3IVPROC glad_glRasterPos3iv = NULL;
954+PFNGLRASTERPOS3SPROC glad_glRasterPos3s = NULL;
955+PFNGLRASTERPOS3SVPROC glad_glRasterPos3sv = NULL;
956+PFNGLRASTERPOS4DPROC glad_glRasterPos4d = NULL;
957+PFNGLRASTERPOS4DVPROC glad_glRasterPos4dv = NULL;
958+PFNGLRASTERPOS4FPROC glad_glRasterPos4f = NULL;
959+PFNGLRASTERPOS4FVPROC glad_glRasterPos4fv = NULL;
960+PFNGLRASTERPOS4IPROC glad_glRasterPos4i = NULL;
961+PFNGLRASTERPOS4IVPROC glad_glRasterPos4iv = NULL;
962+PFNGLRASTERPOS4SPROC glad_glRasterPos4s = NULL;
963+PFNGLRASTERPOS4SVPROC glad_glRasterPos4sv = NULL;
964+PFNGLREADBUFFERPROC glad_glReadBuffer = NULL;
965+PFNGLREADPIXELSPROC glad_glReadPixels = NULL;
966+PFNGLREADNPIXELSPROC glad_glReadnPixels = NULL;
967+PFNGLRECTDPROC glad_glRectd = NULL;
968+PFNGLRECTDVPROC glad_glRectdv = NULL;
969+PFNGLRECTFPROC glad_glRectf = NULL;
970+PFNGLRECTFVPROC glad_glRectfv = NULL;
971+PFNGLRECTIPROC glad_glRecti = NULL;
972+PFNGLRECTIVPROC glad_glRectiv = NULL;
973+PFNGLRECTSPROC glad_glRects = NULL;
974+PFNGLRECTSVPROC glad_glRectsv = NULL;
975+PFNGLRELEASESHADERCOMPILERPROC glad_glReleaseShaderCompiler = NULL;
976+PFNGLRENDERMODEPROC glad_glRenderMode = NULL;
977+PFNGLRENDERBUFFERSTORAGEPROC glad_glRenderbufferStorage = NULL;
978+PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC glad_glRenderbufferStorageMultisample = NULL;
979+PFNGLRESUMETRANSFORMFEEDBACKPROC glad_glResumeTransformFeedback = NULL;
980+PFNGLROTATEDPROC glad_glRotated = NULL;
981+PFNGLROTATEFPROC glad_glRotatef = NULL;
982+PFNGLSAMPLECOVERAGEPROC glad_glSampleCoverage = NULL;
983+PFNGLSAMPLEMASKIPROC glad_glSampleMaski = NULL;
984+PFNGLSAMPLERPARAMETERIIVPROC glad_glSamplerParameterIiv = NULL;
985+PFNGLSAMPLERPARAMETERIUIVPROC glad_glSamplerParameterIuiv = NULL;
986+PFNGLSAMPLERPARAMETERFPROC glad_glSamplerParameterf = NULL;
987+PFNGLSAMPLERPARAMETERFVPROC glad_glSamplerParameterfv = NULL;
988+PFNGLSAMPLERPARAMETERIPROC glad_glSamplerParameteri = NULL;
989+PFNGLSAMPLERPARAMETERIVPROC glad_glSamplerParameteriv = NULL;
990+PFNGLSCALEDPROC glad_glScaled = NULL;
991+PFNGLSCALEFPROC glad_glScalef = NULL;
992+PFNGLSCISSORPROC glad_glScissor = NULL;
993+PFNGLSCISSORARRAYVPROC glad_glScissorArrayv = NULL;
994+PFNGLSCISSORINDEXEDPROC glad_glScissorIndexed = NULL;
995+PFNGLSCISSORINDEXEDVPROC glad_glScissorIndexedv = NULL;
996+PFNGLSECONDARYCOLOR3BPROC glad_glSecondaryColor3b = NULL;
997+PFNGLSECONDARYCOLOR3BVPROC glad_glSecondaryColor3bv = NULL;
998+PFNGLSECONDARYCOLOR3DPROC glad_glSecondaryColor3d = NULL;
999+PFNGLSECONDARYCOLOR3DVPROC glad_glSecondaryColor3dv = NULL;
1000+PFNGLSECONDARYCOLOR3FPROC glad_glSecondaryColor3f = NULL;
1001+PFNGLSECONDARYCOLOR3FVPROC glad_glSecondaryColor3fv = NULL;
1002+PFNGLSECONDARYCOLOR3IPROC glad_glSecondaryColor3i = NULL;
1003+PFNGLSECONDARYCOLOR3IVPROC glad_glSecondaryColor3iv = NULL;
1004+PFNGLSECONDARYCOLOR3SPROC glad_glSecondaryColor3s = NULL;
1005+PFNGLSECONDARYCOLOR3SVPROC glad_glSecondaryColor3sv = NULL;
1006+PFNGLSECONDARYCOLOR3UBPROC glad_glSecondaryColor3ub = NULL;
1007+PFNGLSECONDARYCOLOR3UBVPROC glad_glSecondaryColor3ubv = NULL;
1008+PFNGLSECONDARYCOLOR3UIPROC glad_glSecondaryColor3ui = NULL;
1009+PFNGLSECONDARYCOLOR3UIVPROC glad_glSecondaryColor3uiv = NULL;
1010+PFNGLSECONDARYCOLOR3USPROC glad_glSecondaryColor3us = NULL;
1011+PFNGLSECONDARYCOLOR3USVPROC glad_glSecondaryColor3usv = NULL;
1012+PFNGLSECONDARYCOLORP3UIPROC glad_glSecondaryColorP3ui = NULL;
1013+PFNGLSECONDARYCOLORP3UIVPROC glad_glSecondaryColorP3uiv = NULL;
1014+PFNGLSECONDARYCOLORPOINTERPROC glad_glSecondaryColorPointer = NULL;
1015+PFNGLSELECTBUFFERPROC glad_glSelectBuffer = NULL;
1016+PFNGLSHADEMODELPROC glad_glShadeModel = NULL;
1017+PFNGLSHADERBINARYPROC glad_glShaderBinary = NULL;
1018+PFNGLSHADERSOURCEPROC glad_glShaderSource = NULL;
1019+PFNGLSHADERSTORAGEBLOCKBINDINGPROC glad_glShaderStorageBlockBinding = NULL;
1020+PFNGLSTENCILFUNCPROC glad_glStencilFunc = NULL;
1021+PFNGLSTENCILFUNCSEPARATEPROC glad_glStencilFuncSeparate = NULL;
1022+PFNGLSTENCILMASKPROC glad_glStencilMask = NULL;
1023+PFNGLSTENCILMASKSEPARATEPROC glad_glStencilMaskSeparate = NULL;
1024+PFNGLSTENCILOPPROC glad_glStencilOp = NULL;
1025+PFNGLSTENCILOPSEPARATEPROC glad_glStencilOpSeparate = NULL;
1026+PFNGLTEXBUFFERPROC glad_glTexBuffer = NULL;
1027+PFNGLTEXBUFFERRANGEPROC glad_glTexBufferRange = NULL;
1028+PFNGLTEXCOORD1DPROC glad_glTexCoord1d = NULL;
1029+PFNGLTEXCOORD1DVPROC glad_glTexCoord1dv = NULL;
1030+PFNGLTEXCOORD1FPROC glad_glTexCoord1f = NULL;
1031+PFNGLTEXCOORD1FVPROC glad_glTexCoord1fv = NULL;
1032+PFNGLTEXCOORD1IPROC glad_glTexCoord1i = NULL;
1033+PFNGLTEXCOORD1IVPROC glad_glTexCoord1iv = NULL;
1034+PFNGLTEXCOORD1SPROC glad_glTexCoord1s = NULL;
1035+PFNGLTEXCOORD1SVPROC glad_glTexCoord1sv = NULL;
1036+PFNGLTEXCOORD2DPROC glad_glTexCoord2d = NULL;
1037+PFNGLTEXCOORD2DVPROC glad_glTexCoord2dv = NULL;
1038+PFNGLTEXCOORD2FPROC glad_glTexCoord2f = NULL;
1039+PFNGLTEXCOORD2FVPROC glad_glTexCoord2fv = NULL;
1040+PFNGLTEXCOORD2IPROC glad_glTexCoord2i = NULL;
1041+PFNGLTEXCOORD2IVPROC glad_glTexCoord2iv = NULL;
1042+PFNGLTEXCOORD2SPROC glad_glTexCoord2s = NULL;
1043+PFNGLTEXCOORD2SVPROC glad_glTexCoord2sv = NULL;
1044+PFNGLTEXCOORD3DPROC glad_glTexCoord3d = NULL;
1045+PFNGLTEXCOORD3DVPROC glad_glTexCoord3dv = NULL;
1046+PFNGLTEXCOORD3FPROC glad_glTexCoord3f = NULL;
1047+PFNGLTEXCOORD3FVPROC glad_glTexCoord3fv = NULL;
1048+PFNGLTEXCOORD3IPROC glad_glTexCoord3i = NULL;
1049+PFNGLTEXCOORD3IVPROC glad_glTexCoord3iv = NULL;
1050+PFNGLTEXCOORD3SPROC glad_glTexCoord3s = NULL;
1051+PFNGLTEXCOORD3SVPROC glad_glTexCoord3sv = NULL;
1052+PFNGLTEXCOORD4DPROC glad_glTexCoord4d = NULL;
1053+PFNGLTEXCOORD4DVPROC glad_glTexCoord4dv = NULL;
1054+PFNGLTEXCOORD4FPROC glad_glTexCoord4f = NULL;
1055+PFNGLTEXCOORD4FVPROC glad_glTexCoord4fv = NULL;
1056+PFNGLTEXCOORD4IPROC glad_glTexCoord4i = NULL;
1057+PFNGLTEXCOORD4IVPROC glad_glTexCoord4iv = NULL;
1058+PFNGLTEXCOORD4SPROC glad_glTexCoord4s = NULL;
1059+PFNGLTEXCOORD4SVPROC glad_glTexCoord4sv = NULL;
1060+PFNGLTEXCOORDP1UIPROC glad_glTexCoordP1ui = NULL;
1061+PFNGLTEXCOORDP1UIVPROC glad_glTexCoordP1uiv = NULL;
1062+PFNGLTEXCOORDP2UIPROC glad_glTexCoordP2ui = NULL;
1063+PFNGLTEXCOORDP2UIVPROC glad_glTexCoordP2uiv = NULL;
1064+PFNGLTEXCOORDP3UIPROC glad_glTexCoordP3ui = NULL;
1065+PFNGLTEXCOORDP3UIVPROC glad_glTexCoordP3uiv = NULL;
1066+PFNGLTEXCOORDP4UIPROC glad_glTexCoordP4ui = NULL;
1067+PFNGLTEXCOORDP4UIVPROC glad_glTexCoordP4uiv = NULL;
1068+PFNGLTEXCOORDPOINTERPROC glad_glTexCoordPointer = NULL;
1069+PFNGLTEXENVFPROC glad_glTexEnvf = NULL;
1070+PFNGLTEXENVFVPROC glad_glTexEnvfv = NULL;
1071+PFNGLTEXENVIPROC glad_glTexEnvi = NULL;
1072+PFNGLTEXENVIVPROC glad_glTexEnviv = NULL;
1073+PFNGLTEXGENDPROC glad_glTexGend = NULL;
1074+PFNGLTEXGENDVPROC glad_glTexGendv = NULL;
1075+PFNGLTEXGENFPROC glad_glTexGenf = NULL;
1076+PFNGLTEXGENFVPROC glad_glTexGenfv = NULL;
1077+PFNGLTEXGENIPROC glad_glTexGeni = NULL;
1078+PFNGLTEXGENIVPROC glad_glTexGeniv = NULL;
1079+PFNGLTEXIMAGE1DPROC glad_glTexImage1D = NULL;
1080+PFNGLTEXIMAGE2DPROC glad_glTexImage2D = NULL;
1081+PFNGLTEXIMAGE2DMULTISAMPLEPROC glad_glTexImage2DMultisample = NULL;
1082+PFNGLTEXIMAGE3DPROC glad_glTexImage3D = NULL;
1083+PFNGLTEXIMAGE3DMULTISAMPLEPROC glad_glTexImage3DMultisample = NULL;
1084+PFNGLTEXPARAMETERIIVPROC glad_glTexParameterIiv = NULL;
1085+PFNGLTEXPARAMETERIUIVPROC glad_glTexParameterIuiv = NULL;
1086+PFNGLTEXPARAMETERFPROC glad_glTexParameterf = NULL;
1087+PFNGLTEXPARAMETERFVPROC glad_glTexParameterfv = NULL;
1088+PFNGLTEXPARAMETERIPROC glad_glTexParameteri = NULL;
1089+PFNGLTEXPARAMETERIVPROC glad_glTexParameteriv = NULL;
1090+PFNGLTEXSTORAGE1DPROC glad_glTexStorage1D = NULL;
1091+PFNGLTEXSTORAGE2DPROC glad_glTexStorage2D = NULL;
1092+PFNGLTEXSTORAGE2DMULTISAMPLEPROC glad_glTexStorage2DMultisample = NULL;
1093+PFNGLTEXSTORAGE3DPROC glad_glTexStorage3D = NULL;
1094+PFNGLTEXSTORAGE3DMULTISAMPLEPROC glad_glTexStorage3DMultisample = NULL;
1095+PFNGLTEXSUBIMAGE1DPROC glad_glTexSubImage1D = NULL;
1096+PFNGLTEXSUBIMAGE2DPROC glad_glTexSubImage2D = NULL;
1097+PFNGLTEXSUBIMAGE3DPROC glad_glTexSubImage3D = NULL;
1098+PFNGLTEXTUREBARRIERPROC glad_glTextureBarrier = NULL;
1099+PFNGLTEXTUREBUFFERPROC glad_glTextureBuffer = NULL;
1100+PFNGLTEXTUREBUFFERRANGEPROC glad_glTextureBufferRange = NULL;
1101+PFNGLTEXTUREPARAMETERIIVPROC glad_glTextureParameterIiv = NULL;
1102+PFNGLTEXTUREPARAMETERIUIVPROC glad_glTextureParameterIuiv = NULL;
1103+PFNGLTEXTUREPARAMETERFPROC glad_glTextureParameterf = NULL;
1104+PFNGLTEXTUREPARAMETERFVPROC glad_glTextureParameterfv = NULL;
1105+PFNGLTEXTUREPARAMETERIPROC glad_glTextureParameteri = NULL;
1106+PFNGLTEXTUREPARAMETERIVPROC glad_glTextureParameteriv = NULL;
1107+PFNGLTEXTURESTORAGE1DPROC glad_glTextureStorage1D = NULL;
1108+PFNGLTEXTURESTORAGE2DPROC glad_glTextureStorage2D = NULL;
1109+PFNGLTEXTURESTORAGE2DMULTISAMPLEPROC glad_glTextureStorage2DMultisample = NULL;
1110+PFNGLTEXTURESTORAGE3DPROC glad_glTextureStorage3D = NULL;
1111+PFNGLTEXTURESTORAGE3DMULTISAMPLEPROC glad_glTextureStorage3DMultisample = NULL;
1112+PFNGLTEXTURESUBIMAGE1DPROC glad_glTextureSubImage1D = NULL;
1113+PFNGLTEXTURESUBIMAGE2DPROC glad_glTextureSubImage2D = NULL;
1114+PFNGLTEXTURESUBIMAGE3DPROC glad_glTextureSubImage3D = NULL;
1115+PFNGLTEXTUREVIEWPROC glad_glTextureView = NULL;
1116+PFNGLTRANSFORMFEEDBACKBUFFERBASEPROC glad_glTransformFeedbackBufferBase = NULL;
1117+PFNGLTRANSFORMFEEDBACKBUFFERRANGEPROC glad_glTransformFeedbackBufferRange = NULL;
1118+PFNGLTRANSFORMFEEDBACKVARYINGSPROC glad_glTransformFeedbackVaryings = NULL;
1119+PFNGLTRANSLATEDPROC glad_glTranslated = NULL;
1120+PFNGLTRANSLATEFPROC glad_glTranslatef = NULL;
1121+PFNGLUNIFORM1DPROC glad_glUniform1d = NULL;
1122+PFNGLUNIFORM1DVPROC glad_glUniform1dv = NULL;
1123+PFNGLUNIFORM1FPROC glad_glUniform1f = NULL;
1124+PFNGLUNIFORM1FVPROC glad_glUniform1fv = NULL;
1125+PFNGLUNIFORM1IPROC glad_glUniform1i = NULL;
1126+PFNGLUNIFORM1IVPROC glad_glUniform1iv = NULL;
1127+PFNGLUNIFORM1UIPROC glad_glUniform1ui = NULL;
1128+PFNGLUNIFORM1UIVPROC glad_glUniform1uiv = NULL;
1129+PFNGLUNIFORM2DPROC glad_glUniform2d = NULL;
1130+PFNGLUNIFORM2DVPROC glad_glUniform2dv = NULL;
1131+PFNGLUNIFORM2FPROC glad_glUniform2f = NULL;
1132+PFNGLUNIFORM2FVPROC glad_glUniform2fv = NULL;
1133+PFNGLUNIFORM2IPROC glad_glUniform2i = NULL;
1134+PFNGLUNIFORM2IVPROC glad_glUniform2iv = NULL;
1135+PFNGLUNIFORM2UIPROC glad_glUniform2ui = NULL;
1136+PFNGLUNIFORM2UIVPROC glad_glUniform2uiv = NULL;
1137+PFNGLUNIFORM3DPROC glad_glUniform3d = NULL;
1138+PFNGLUNIFORM3DVPROC glad_glUniform3dv = NULL;
1139+PFNGLUNIFORM3FPROC glad_glUniform3f = NULL;
1140+PFNGLUNIFORM3FVPROC glad_glUniform3fv = NULL;
1141+PFNGLUNIFORM3IPROC glad_glUniform3i = NULL;
1142+PFNGLUNIFORM3IVPROC glad_glUniform3iv = NULL;
1143+PFNGLUNIFORM3UIPROC glad_glUniform3ui = NULL;
1144+PFNGLUNIFORM3UIVPROC glad_glUniform3uiv = NULL;
1145+PFNGLUNIFORM4DPROC glad_glUniform4d = NULL;
1146+PFNGLUNIFORM4DVPROC glad_glUniform4dv = NULL;
1147+PFNGLUNIFORM4FPROC glad_glUniform4f = NULL;
1148+PFNGLUNIFORM4FVPROC glad_glUniform4fv = NULL;
1149+PFNGLUNIFORM4IPROC glad_glUniform4i = NULL;
1150+PFNGLUNIFORM4IVPROC glad_glUniform4iv = NULL;
1151+PFNGLUNIFORM4UIPROC glad_glUniform4ui = NULL;
1152+PFNGLUNIFORM4UIVPROC glad_glUniform4uiv = NULL;
1153+PFNGLUNIFORMBLOCKBINDINGPROC glad_glUniformBlockBinding = NULL;
1154+PFNGLUNIFORMMATRIX2DVPROC glad_glUniformMatrix2dv = NULL;
1155+PFNGLUNIFORMMATRIX2FVPROC glad_glUniformMatrix2fv = NULL;
1156+PFNGLUNIFORMMATRIX2X3DVPROC glad_glUniformMatrix2x3dv = NULL;
1157+PFNGLUNIFORMMATRIX2X3FVPROC glad_glUniformMatrix2x3fv = NULL;
1158+PFNGLUNIFORMMATRIX2X4DVPROC glad_glUniformMatrix2x4dv = NULL;
1159+PFNGLUNIFORMMATRIX2X4FVPROC glad_glUniformMatrix2x4fv = NULL;
1160+PFNGLUNIFORMMATRIX3DVPROC glad_glUniformMatrix3dv = NULL;
1161+PFNGLUNIFORMMATRIX3FVPROC glad_glUniformMatrix3fv = NULL;
1162+PFNGLUNIFORMMATRIX3X2DVPROC glad_glUniformMatrix3x2dv = NULL;
1163+PFNGLUNIFORMMATRIX3X2FVPROC glad_glUniformMatrix3x2fv = NULL;
1164+PFNGLUNIFORMMATRIX3X4DVPROC glad_glUniformMatrix3x4dv = NULL;
1165+PFNGLUNIFORMMATRIX3X4FVPROC glad_glUniformMatrix3x4fv = NULL;
1166+PFNGLUNIFORMMATRIX4DVPROC glad_glUniformMatrix4dv = NULL;
1167+PFNGLUNIFORMMATRIX4FVPROC glad_glUniformMatrix4fv = NULL;
1168+PFNGLUNIFORMMATRIX4X2DVPROC glad_glUniformMatrix4x2dv = NULL;
1169+PFNGLUNIFORMMATRIX4X2FVPROC glad_glUniformMatrix4x2fv = NULL;
1170+PFNGLUNIFORMMATRIX4X3DVPROC glad_glUniformMatrix4x3dv = NULL;
1171+PFNGLUNIFORMMATRIX4X3FVPROC glad_glUniformMatrix4x3fv = NULL;
1172+PFNGLUNIFORMSUBROUTINESUIVPROC glad_glUniformSubroutinesuiv = NULL;
1173+PFNGLUNMAPBUFFERPROC glad_glUnmapBuffer = NULL;
1174+PFNGLUNMAPNAMEDBUFFERPROC glad_glUnmapNamedBuffer = NULL;
1175+PFNGLUSEPROGRAMPROC glad_glUseProgram = NULL;
1176+PFNGLUSEPROGRAMSTAGESPROC glad_glUseProgramStages = NULL;
1177+PFNGLVALIDATEPROGRAMPROC glad_glValidateProgram = NULL;
1178+PFNGLVALIDATEPROGRAMPIPELINEPROC glad_glValidateProgramPipeline = NULL;
1179+PFNGLVERTEX2DPROC glad_glVertex2d = NULL;
1180+PFNGLVERTEX2DVPROC glad_glVertex2dv = NULL;
1181+PFNGLVERTEX2FPROC glad_glVertex2f = NULL;
1182+PFNGLVERTEX2FVPROC glad_glVertex2fv = NULL;
1183+PFNGLVERTEX2IPROC glad_glVertex2i = NULL;
1184+PFNGLVERTEX2IVPROC glad_glVertex2iv = NULL;
1185+PFNGLVERTEX2SPROC glad_glVertex2s = NULL;
1186+PFNGLVERTEX2SVPROC glad_glVertex2sv = NULL;
1187+PFNGLVERTEX3DPROC glad_glVertex3d = NULL;
1188+PFNGLVERTEX3DVPROC glad_glVertex3dv = NULL;
1189+PFNGLVERTEX3FPROC glad_glVertex3f = NULL;
1190+PFNGLVERTEX3FVPROC glad_glVertex3fv = NULL;
1191+PFNGLVERTEX3IPROC glad_glVertex3i = NULL;
1192+PFNGLVERTEX3IVPROC glad_glVertex3iv = NULL;
1193+PFNGLVERTEX3SPROC glad_glVertex3s = NULL;
1194+PFNGLVERTEX3SVPROC glad_glVertex3sv = NULL;
1195+PFNGLVERTEX4DPROC glad_glVertex4d = NULL;
1196+PFNGLVERTEX4DVPROC glad_glVertex4dv = NULL;
1197+PFNGLVERTEX4FPROC glad_glVertex4f = NULL;
1198+PFNGLVERTEX4FVPROC glad_glVertex4fv = NULL;
1199+PFNGLVERTEX4IPROC glad_glVertex4i = NULL;
1200+PFNGLVERTEX4IVPROC glad_glVertex4iv = NULL;
1201+PFNGLVERTEX4SPROC glad_glVertex4s = NULL;
1202+PFNGLVERTEX4SVPROC glad_glVertex4sv = NULL;
1203+PFNGLVERTEXARRAYATTRIBBINDINGPROC glad_glVertexArrayAttribBinding = NULL;
1204+PFNGLVERTEXARRAYATTRIBFORMATPROC glad_glVertexArrayAttribFormat = NULL;
1205+PFNGLVERTEXARRAYATTRIBIFORMATPROC glad_glVertexArrayAttribIFormat = NULL;
1206+PFNGLVERTEXARRAYATTRIBLFORMATPROC glad_glVertexArrayAttribLFormat = NULL;
1207+PFNGLVERTEXARRAYBINDINGDIVISORPROC glad_glVertexArrayBindingDivisor = NULL;
1208+PFNGLVERTEXARRAYELEMENTBUFFERPROC glad_glVertexArrayElementBuffer = NULL;
1209+PFNGLVERTEXARRAYVERTEXBUFFERPROC glad_glVertexArrayVertexBuffer = NULL;
1210+PFNGLVERTEXARRAYVERTEXBUFFERSPROC glad_glVertexArrayVertexBuffers = NULL;
1211+PFNGLVERTEXATTRIB1DPROC glad_glVertexAttrib1d = NULL;
1212+PFNGLVERTEXATTRIB1DVPROC glad_glVertexAttrib1dv = NULL;
1213+PFNGLVERTEXATTRIB1FPROC glad_glVertexAttrib1f = NULL;
1214+PFNGLVERTEXATTRIB1FVPROC glad_glVertexAttrib1fv = NULL;
1215+PFNGLVERTEXATTRIB1SPROC glad_glVertexAttrib1s = NULL;
1216+PFNGLVERTEXATTRIB1SVPROC glad_glVertexAttrib1sv = NULL;
1217+PFNGLVERTEXATTRIB2DPROC glad_glVertexAttrib2d = NULL;
1218+PFNGLVERTEXATTRIB2DVPROC glad_glVertexAttrib2dv = NULL;
1219+PFNGLVERTEXATTRIB2FPROC glad_glVertexAttrib2f = NULL;
1220+PFNGLVERTEXATTRIB2FVPROC glad_glVertexAttrib2fv = NULL;
1221+PFNGLVERTEXATTRIB2SPROC glad_glVertexAttrib2s = NULL;
1222+PFNGLVERTEXATTRIB2SVPROC glad_glVertexAttrib2sv = NULL;
1223+PFNGLVERTEXATTRIB3DPROC glad_glVertexAttrib3d = NULL;
1224+PFNGLVERTEXATTRIB3DVPROC glad_glVertexAttrib3dv = NULL;
1225+PFNGLVERTEXATTRIB3FPROC glad_glVertexAttrib3f = NULL;
1226+PFNGLVERTEXATTRIB3FVPROC glad_glVertexAttrib3fv = NULL;
1227+PFNGLVERTEXATTRIB3SPROC glad_glVertexAttrib3s = NULL;
1228+PFNGLVERTEXATTRIB3SVPROC glad_glVertexAttrib3sv = NULL;
1229+PFNGLVERTEXATTRIB4NBVPROC glad_glVertexAttrib4Nbv = NULL;
1230+PFNGLVERTEXATTRIB4NIVPROC glad_glVertexAttrib4Niv = NULL;
1231+PFNGLVERTEXATTRIB4NSVPROC glad_glVertexAttrib4Nsv = NULL;
1232+PFNGLVERTEXATTRIB4NUBPROC glad_glVertexAttrib4Nub = NULL;
1233+PFNGLVERTEXATTRIB4NUBVPROC glad_glVertexAttrib4Nubv = NULL;
1234+PFNGLVERTEXATTRIB4NUIVPROC glad_glVertexAttrib4Nuiv = NULL;
1235+PFNGLVERTEXATTRIB4NUSVPROC glad_glVertexAttrib4Nusv = NULL;
1236+PFNGLVERTEXATTRIB4BVPROC glad_glVertexAttrib4bv = NULL;
1237+PFNGLVERTEXATTRIB4DPROC glad_glVertexAttrib4d = NULL;
1238+PFNGLVERTEXATTRIB4DVPROC glad_glVertexAttrib4dv = NULL;
1239+PFNGLVERTEXATTRIB4FPROC glad_glVertexAttrib4f = NULL;
1240+PFNGLVERTEXATTRIB4FVPROC glad_glVertexAttrib4fv = NULL;
1241+PFNGLVERTEXATTRIB4IVPROC glad_glVertexAttrib4iv = NULL;
1242+PFNGLVERTEXATTRIB4SPROC glad_glVertexAttrib4s = NULL;
1243+PFNGLVERTEXATTRIB4SVPROC glad_glVertexAttrib4sv = NULL;
1244+PFNGLVERTEXATTRIB4UBVPROC glad_glVertexAttrib4ubv = NULL;
1245+PFNGLVERTEXATTRIB4UIVPROC glad_glVertexAttrib4uiv = NULL;
1246+PFNGLVERTEXATTRIB4USVPROC glad_glVertexAttrib4usv = NULL;
1247+PFNGLVERTEXATTRIBBINDINGPROC glad_glVertexAttribBinding = NULL;
1248+PFNGLVERTEXATTRIBDIVISORPROC glad_glVertexAttribDivisor = NULL;
1249+PFNGLVERTEXATTRIBFORMATPROC glad_glVertexAttribFormat = NULL;
1250+PFNGLVERTEXATTRIBI1IPROC glad_glVertexAttribI1i = NULL;
1251+PFNGLVERTEXATTRIBI1IVPROC glad_glVertexAttribI1iv = NULL;
1252+PFNGLVERTEXATTRIBI1UIPROC glad_glVertexAttribI1ui = NULL;
1253+PFNGLVERTEXATTRIBI1UIVPROC glad_glVertexAttribI1uiv = NULL;
1254+PFNGLVERTEXATTRIBI2IPROC glad_glVertexAttribI2i = NULL;
1255+PFNGLVERTEXATTRIBI2IVPROC glad_glVertexAttribI2iv = NULL;
1256+PFNGLVERTEXATTRIBI2UIPROC glad_glVertexAttribI2ui = NULL;
1257+PFNGLVERTEXATTRIBI2UIVPROC glad_glVertexAttribI2uiv = NULL;
1258+PFNGLVERTEXATTRIBI3IPROC glad_glVertexAttribI3i = NULL;
1259+PFNGLVERTEXATTRIBI3IVPROC glad_glVertexAttribI3iv = NULL;
1260+PFNGLVERTEXATTRIBI3UIPROC glad_glVertexAttribI3ui = NULL;
1261+PFNGLVERTEXATTRIBI3UIVPROC glad_glVertexAttribI3uiv = NULL;
1262+PFNGLVERTEXATTRIBI4BVPROC glad_glVertexAttribI4bv = NULL;
1263+PFNGLVERTEXATTRIBI4IPROC glad_glVertexAttribI4i = NULL;
1264+PFNGLVERTEXATTRIBI4IVPROC glad_glVertexAttribI4iv = NULL;
1265+PFNGLVERTEXATTRIBI4SVPROC glad_glVertexAttribI4sv = NULL;
1266+PFNGLVERTEXATTRIBI4UBVPROC glad_glVertexAttribI4ubv = NULL;
1267+PFNGLVERTEXATTRIBI4UIPROC glad_glVertexAttribI4ui = NULL;
1268+PFNGLVERTEXATTRIBI4UIVPROC glad_glVertexAttribI4uiv = NULL;
1269+PFNGLVERTEXATTRIBI4USVPROC glad_glVertexAttribI4usv = NULL;
1270+PFNGLVERTEXATTRIBIFORMATPROC glad_glVertexAttribIFormat = NULL;
1271+PFNGLVERTEXATTRIBIPOINTERPROC glad_glVertexAttribIPointer = NULL;
1272+PFNGLVERTEXATTRIBL1DPROC glad_glVertexAttribL1d = NULL;
1273+PFNGLVERTEXATTRIBL1DVPROC glad_glVertexAttribL1dv = NULL;
1274+PFNGLVERTEXATTRIBL2DPROC glad_glVertexAttribL2d = NULL;
1275+PFNGLVERTEXATTRIBL2DVPROC glad_glVertexAttribL2dv = NULL;
1276+PFNGLVERTEXATTRIBL3DPROC glad_glVertexAttribL3d = NULL;
1277+PFNGLVERTEXATTRIBL3DVPROC glad_glVertexAttribL3dv = NULL;
1278+PFNGLVERTEXATTRIBL4DPROC glad_glVertexAttribL4d = NULL;
1279+PFNGLVERTEXATTRIBL4DVPROC glad_glVertexAttribL4dv = NULL;
1280+PFNGLVERTEXATTRIBLFORMATPROC glad_glVertexAttribLFormat = NULL;
1281+PFNGLVERTEXATTRIBLPOINTERPROC glad_glVertexAttribLPointer = NULL;
1282+PFNGLVERTEXATTRIBP1UIPROC glad_glVertexAttribP1ui = NULL;
1283+PFNGLVERTEXATTRIBP1UIVPROC glad_glVertexAttribP1uiv = NULL;
1284+PFNGLVERTEXATTRIBP2UIPROC glad_glVertexAttribP2ui = NULL;
1285+PFNGLVERTEXATTRIBP2UIVPROC glad_glVertexAttribP2uiv = NULL;
1286+PFNGLVERTEXATTRIBP3UIPROC glad_glVertexAttribP3ui = NULL;
1287+PFNGLVERTEXATTRIBP3UIVPROC glad_glVertexAttribP3uiv = NULL;
1288+PFNGLVERTEXATTRIBP4UIPROC glad_glVertexAttribP4ui = NULL;
1289+PFNGLVERTEXATTRIBP4UIVPROC glad_glVertexAttribP4uiv = NULL;
1290+PFNGLVERTEXATTRIBPOINTERPROC glad_glVertexAttribPointer = NULL;
1291+PFNGLVERTEXBINDINGDIVISORPROC glad_glVertexBindingDivisor = NULL;
1292+PFNGLVERTEXP2UIPROC glad_glVertexP2ui = NULL;
1293+PFNGLVERTEXP2UIVPROC glad_glVertexP2uiv = NULL;
1294+PFNGLVERTEXP3UIPROC glad_glVertexP3ui = NULL;
1295+PFNGLVERTEXP3UIVPROC glad_glVertexP3uiv = NULL;
1296+PFNGLVERTEXP4UIPROC glad_glVertexP4ui = NULL;
1297+PFNGLVERTEXP4UIVPROC glad_glVertexP4uiv = NULL;
1298+PFNGLVERTEXPOINTERPROC glad_glVertexPointer = NULL;
1299+PFNGLVIEWPORTPROC glad_glViewport = NULL;
1300+PFNGLVIEWPORTARRAYVPROC glad_glViewportArrayv = NULL;
1301+PFNGLVIEWPORTINDEXEDFPROC glad_glViewportIndexedf = NULL;
1302+PFNGLVIEWPORTINDEXEDFVPROC glad_glViewportIndexedfv = NULL;
1303+PFNGLWAITSYNCPROC glad_glWaitSync = NULL;
1304+PFNGLWINDOWPOS2DPROC glad_glWindowPos2d = NULL;
1305+PFNGLWINDOWPOS2DVPROC glad_glWindowPos2dv = NULL;
1306+PFNGLWINDOWPOS2FPROC glad_glWindowPos2f = NULL;
1307+PFNGLWINDOWPOS2FVPROC glad_glWindowPos2fv = NULL;
1308+PFNGLWINDOWPOS2IPROC glad_glWindowPos2i = NULL;
1309+PFNGLWINDOWPOS2IVPROC glad_glWindowPos2iv = NULL;
1310+PFNGLWINDOWPOS2SPROC glad_glWindowPos2s = NULL;
1311+PFNGLWINDOWPOS2SVPROC glad_glWindowPos2sv = NULL;
1312+PFNGLWINDOWPOS3DPROC glad_glWindowPos3d = NULL;
1313+PFNGLWINDOWPOS3DVPROC glad_glWindowPos3dv = NULL;
1314+PFNGLWINDOWPOS3FPROC glad_glWindowPos3f = NULL;
1315+PFNGLWINDOWPOS3FVPROC glad_glWindowPos3fv = NULL;
1316+PFNGLWINDOWPOS3IPROC glad_glWindowPos3i = NULL;
1317+PFNGLWINDOWPOS3IVPROC glad_glWindowPos3iv = NULL;
1318+PFNGLWINDOWPOS3SPROC glad_glWindowPos3s = NULL;
1319+PFNGLWINDOWPOS3SVPROC glad_glWindowPos3sv = NULL;
1320+static void load_GL_VERSION_1_0(GLADloadproc load) {
1321+ if(!GLAD_GL_VERSION_1_0) return;
1322+ glad_glCullFace = (PFNGLCULLFACEPROC)load("glCullFace");
1323+ glad_glFrontFace = (PFNGLFRONTFACEPROC)load("glFrontFace");
1324+ glad_glHint = (PFNGLHINTPROC)load("glHint");
1325+ glad_glLineWidth = (PFNGLLINEWIDTHPROC)load("glLineWidth");
1326+ glad_glPointSize = (PFNGLPOINTSIZEPROC)load("glPointSize");
1327+ glad_glPolygonMode = (PFNGLPOLYGONMODEPROC)load("glPolygonMode");
1328+ glad_glScissor = (PFNGLSCISSORPROC)load("glScissor");
1329+ glad_glTexParameterf = (PFNGLTEXPARAMETERFPROC)load("glTexParameterf");
1330+ glad_glTexParameterfv = (PFNGLTEXPARAMETERFVPROC)load("glTexParameterfv");
1331+ glad_glTexParameteri = (PFNGLTEXPARAMETERIPROC)load("glTexParameteri");
1332+ glad_glTexParameteriv = (PFNGLTEXPARAMETERIVPROC)load("glTexParameteriv");
1333+ glad_glTexImage1D = (PFNGLTEXIMAGE1DPROC)load("glTexImage1D");
1334+ glad_glTexImage2D = (PFNGLTEXIMAGE2DPROC)load("glTexImage2D");
1335+ glad_glDrawBuffer = (PFNGLDRAWBUFFERPROC)load("glDrawBuffer");
1336+ glad_glClear = (PFNGLCLEARPROC)load("glClear");
1337+ glad_glClearColor = (PFNGLCLEARCOLORPROC)load("glClearColor");
1338+ glad_glClearStencil = (PFNGLCLEARSTENCILPROC)load("glClearStencil");
1339+ glad_glClearDepth = (PFNGLCLEARDEPTHPROC)load("glClearDepth");
1340+ glad_glStencilMask = (PFNGLSTENCILMASKPROC)load("glStencilMask");
1341+ glad_glColorMask = (PFNGLCOLORMASKPROC)load("glColorMask");
1342+ glad_glDepthMask = (PFNGLDEPTHMASKPROC)load("glDepthMask");
1343+ glad_glDisable = (PFNGLDISABLEPROC)load("glDisable");
1344+ glad_glEnable = (PFNGLENABLEPROC)load("glEnable");
1345+ glad_glFinish = (PFNGLFINISHPROC)load("glFinish");
1346+ glad_glFlush = (PFNGLFLUSHPROC)load("glFlush");
1347+ glad_glBlendFunc = (PFNGLBLENDFUNCPROC)load("glBlendFunc");
1348+ glad_glLogicOp = (PFNGLLOGICOPPROC)load("glLogicOp");
1349+ glad_glStencilFunc = (PFNGLSTENCILFUNCPROC)load("glStencilFunc");
1350+ glad_glStencilOp = (PFNGLSTENCILOPPROC)load("glStencilOp");
1351+ glad_glDepthFunc = (PFNGLDEPTHFUNCPROC)load("glDepthFunc");
1352+ glad_glPixelStoref = (PFNGLPIXELSTOREFPROC)load("glPixelStoref");
1353+ glad_glPixelStorei = (PFNGLPIXELSTOREIPROC)load("glPixelStorei");
1354+ glad_glReadBuffer = (PFNGLREADBUFFERPROC)load("glReadBuffer");
1355+ glad_glReadPixels = (PFNGLREADPIXELSPROC)load("glReadPixels");
1356+ glad_glGetBooleanv = (PFNGLGETBOOLEANVPROC)load("glGetBooleanv");
1357+ glad_glGetDoublev = (PFNGLGETDOUBLEVPROC)load("glGetDoublev");
1358+ glad_glGetError = (PFNGLGETERRORPROC)load("glGetError");
1359+ glad_glGetFloatv = (PFNGLGETFLOATVPROC)load("glGetFloatv");
1360+ glad_glGetIntegerv = (PFNGLGETINTEGERVPROC)load("glGetIntegerv");
1361+ glad_glGetString = (PFNGLGETSTRINGPROC)load("glGetString");
1362+ glad_glGetTexImage = (PFNGLGETTEXIMAGEPROC)load("glGetTexImage");
1363+ glad_glGetTexParameterfv = (PFNGLGETTEXPARAMETERFVPROC)load("glGetTexParameterfv");
1364+ glad_glGetTexParameteriv = (PFNGLGETTEXPARAMETERIVPROC)load("glGetTexParameteriv");
1365+ glad_glGetTexLevelParameterfv = (PFNGLGETTEXLEVELPARAMETERFVPROC)load("glGetTexLevelParameterfv");
1366+ glad_glGetTexLevelParameteriv = (PFNGLGETTEXLEVELPARAMETERIVPROC)load("glGetTexLevelParameteriv");
1367+ glad_glIsEnabled = (PFNGLISENABLEDPROC)load("glIsEnabled");
1368+ glad_glDepthRange = (PFNGLDEPTHRANGEPROC)load("glDepthRange");
1369+ glad_glViewport = (PFNGLVIEWPORTPROC)load("glViewport");
1370+ glad_glNewList = (PFNGLNEWLISTPROC)load("glNewList");
1371+ glad_glEndList = (PFNGLENDLISTPROC)load("glEndList");
1372+ glad_glCallList = (PFNGLCALLLISTPROC)load("glCallList");
1373+ glad_glCallLists = (PFNGLCALLLISTSPROC)load("glCallLists");
1374+ glad_glDeleteLists = (PFNGLDELETELISTSPROC)load("glDeleteLists");
1375+ glad_glGenLists = (PFNGLGENLISTSPROC)load("glGenLists");
1376+ glad_glListBase = (PFNGLLISTBASEPROC)load("glListBase");
1377+ glad_glBegin = (PFNGLBEGINPROC)load("glBegin");
1378+ glad_glBitmap = (PFNGLBITMAPPROC)load("glBitmap");
1379+ glad_glColor3b = (PFNGLCOLOR3BPROC)load("glColor3b");
1380+ glad_glColor3bv = (PFNGLCOLOR3BVPROC)load("glColor3bv");
1381+ glad_glColor3d = (PFNGLCOLOR3DPROC)load("glColor3d");
1382+ glad_glColor3dv = (PFNGLCOLOR3DVPROC)load("glColor3dv");
1383+ glad_glColor3f = (PFNGLCOLOR3FPROC)load("glColor3f");
1384+ glad_glColor3fv = (PFNGLCOLOR3FVPROC)load("glColor3fv");
1385+ glad_glColor3i = (PFNGLCOLOR3IPROC)load("glColor3i");
1386+ glad_glColor3iv = (PFNGLCOLOR3IVPROC)load("glColor3iv");
1387+ glad_glColor3s = (PFNGLCOLOR3SPROC)load("glColor3s");
1388+ glad_glColor3sv = (PFNGLCOLOR3SVPROC)load("glColor3sv");
1389+ glad_glColor3ub = (PFNGLCOLOR3UBPROC)load("glColor3ub");
1390+ glad_glColor3ubv = (PFNGLCOLOR3UBVPROC)load("glColor3ubv");
1391+ glad_glColor3ui = (PFNGLCOLOR3UIPROC)load("glColor3ui");
1392+ glad_glColor3uiv = (PFNGLCOLOR3UIVPROC)load("glColor3uiv");
1393+ glad_glColor3us = (PFNGLCOLOR3USPROC)load("glColor3us");
1394+ glad_glColor3usv = (PFNGLCOLOR3USVPROC)load("glColor3usv");
1395+ glad_glColor4b = (PFNGLCOLOR4BPROC)load("glColor4b");
1396+ glad_glColor4bv = (PFNGLCOLOR4BVPROC)load("glColor4bv");
1397+ glad_glColor4d = (PFNGLCOLOR4DPROC)load("glColor4d");
1398+ glad_glColor4dv = (PFNGLCOLOR4DVPROC)load("glColor4dv");
1399+ glad_glColor4f = (PFNGLCOLOR4FPROC)load("glColor4f");
1400+ glad_glColor4fv = (PFNGLCOLOR4FVPROC)load("glColor4fv");
1401+ glad_glColor4i = (PFNGLCOLOR4IPROC)load("glColor4i");
1402+ glad_glColor4iv = (PFNGLCOLOR4IVPROC)load("glColor4iv");
1403+ glad_glColor4s = (PFNGLCOLOR4SPROC)load("glColor4s");
1404+ glad_glColor4sv = (PFNGLCOLOR4SVPROC)load("glColor4sv");
1405+ glad_glColor4ub = (PFNGLCOLOR4UBPROC)load("glColor4ub");
1406+ glad_glColor4ubv = (PFNGLCOLOR4UBVPROC)load("glColor4ubv");
1407+ glad_glColor4ui = (PFNGLCOLOR4UIPROC)load("glColor4ui");
1408+ glad_glColor4uiv = (PFNGLCOLOR4UIVPROC)load("glColor4uiv");
1409+ glad_glColor4us = (PFNGLCOLOR4USPROC)load("glColor4us");
1410+ glad_glColor4usv = (PFNGLCOLOR4USVPROC)load("glColor4usv");
1411+ glad_glEdgeFlag = (PFNGLEDGEFLAGPROC)load("glEdgeFlag");
1412+ glad_glEdgeFlagv = (PFNGLEDGEFLAGVPROC)load("glEdgeFlagv");
1413+ glad_glEnd = (PFNGLENDPROC)load("glEnd");
1414+ glad_glIndexd = (PFNGLINDEXDPROC)load("glIndexd");
1415+ glad_glIndexdv = (PFNGLINDEXDVPROC)load("glIndexdv");
1416+ glad_glIndexf = (PFNGLINDEXFPROC)load("glIndexf");
1417+ glad_glIndexfv = (PFNGLINDEXFVPROC)load("glIndexfv");
1418+ glad_glIndexi = (PFNGLINDEXIPROC)load("glIndexi");
1419+ glad_glIndexiv = (PFNGLINDEXIVPROC)load("glIndexiv");
1420+ glad_glIndexs = (PFNGLINDEXSPROC)load("glIndexs");
1421+ glad_glIndexsv = (PFNGLINDEXSVPROC)load("glIndexsv");
1422+ glad_glNormal3b = (PFNGLNORMAL3BPROC)load("glNormal3b");
1423+ glad_glNormal3bv = (PFNGLNORMAL3BVPROC)load("glNormal3bv");
1424+ glad_glNormal3d = (PFNGLNORMAL3DPROC)load("glNormal3d");
1425+ glad_glNormal3dv = (PFNGLNORMAL3DVPROC)load("glNormal3dv");
1426+ glad_glNormal3f = (PFNGLNORMAL3FPROC)load("glNormal3f");
1427+ glad_glNormal3fv = (PFNGLNORMAL3FVPROC)load("glNormal3fv");
1428+ glad_glNormal3i = (PFNGLNORMAL3IPROC)load("glNormal3i");
1429+ glad_glNormal3iv = (PFNGLNORMAL3IVPROC)load("glNormal3iv");
1430+ glad_glNormal3s = (PFNGLNORMAL3SPROC)load("glNormal3s");
1431+ glad_glNormal3sv = (PFNGLNORMAL3SVPROC)load("glNormal3sv");
1432+ glad_glRasterPos2d = (PFNGLRASTERPOS2DPROC)load("glRasterPos2d");
1433+ glad_glRasterPos2dv = (PFNGLRASTERPOS2DVPROC)load("glRasterPos2dv");
1434+ glad_glRasterPos2f = (PFNGLRASTERPOS2FPROC)load("glRasterPos2f");
1435+ glad_glRasterPos2fv = (PFNGLRASTERPOS2FVPROC)load("glRasterPos2fv");
1436+ glad_glRasterPos2i = (PFNGLRASTERPOS2IPROC)load("glRasterPos2i");
1437+ glad_glRasterPos2iv = (PFNGLRASTERPOS2IVPROC)load("glRasterPos2iv");
1438+ glad_glRasterPos2s = (PFNGLRASTERPOS2SPROC)load("glRasterPos2s");
1439+ glad_glRasterPos2sv = (PFNGLRASTERPOS2SVPROC)load("glRasterPos2sv");
1440+ glad_glRasterPos3d = (PFNGLRASTERPOS3DPROC)load("glRasterPos3d");
1441+ glad_glRasterPos3dv = (PFNGLRASTERPOS3DVPROC)load("glRasterPos3dv");
1442+ glad_glRasterPos3f = (PFNGLRASTERPOS3FPROC)load("glRasterPos3f");
1443+ glad_glRasterPos3fv = (PFNGLRASTERPOS3FVPROC)load("glRasterPos3fv");
1444+ glad_glRasterPos3i = (PFNGLRASTERPOS3IPROC)load("glRasterPos3i");
1445+ glad_glRasterPos3iv = (PFNGLRASTERPOS3IVPROC)load("glRasterPos3iv");
1446+ glad_glRasterPos3s = (PFNGLRASTERPOS3SPROC)load("glRasterPos3s");
1447+ glad_glRasterPos3sv = (PFNGLRASTERPOS3SVPROC)load("glRasterPos3sv");
1448+ glad_glRasterPos4d = (PFNGLRASTERPOS4DPROC)load("glRasterPos4d");
1449+ glad_glRasterPos4dv = (PFNGLRASTERPOS4DVPROC)load("glRasterPos4dv");
1450+ glad_glRasterPos4f = (PFNGLRASTERPOS4FPROC)load("glRasterPos4f");
1451+ glad_glRasterPos4fv = (PFNGLRASTERPOS4FVPROC)load("glRasterPos4fv");
1452+ glad_glRasterPos4i = (PFNGLRASTERPOS4IPROC)load("glRasterPos4i");
1453+ glad_glRasterPos4iv = (PFNGLRASTERPOS4IVPROC)load("glRasterPos4iv");
1454+ glad_glRasterPos4s = (PFNGLRASTERPOS4SPROC)load("glRasterPos4s");
1455+ glad_glRasterPos4sv = (PFNGLRASTERPOS4SVPROC)load("glRasterPos4sv");
1456+ glad_glRectd = (PFNGLRECTDPROC)load("glRectd");
1457+ glad_glRectdv = (PFNGLRECTDVPROC)load("glRectdv");
1458+ glad_glRectf = (PFNGLRECTFPROC)load("glRectf");
1459+ glad_glRectfv = (PFNGLRECTFVPROC)load("glRectfv");
1460+ glad_glRecti = (PFNGLRECTIPROC)load("glRecti");
1461+ glad_glRectiv = (PFNGLRECTIVPROC)load("glRectiv");
1462+ glad_glRects = (PFNGLRECTSPROC)load("glRects");
1463+ glad_glRectsv = (PFNGLRECTSVPROC)load("glRectsv");
1464+ glad_glTexCoord1d = (PFNGLTEXCOORD1DPROC)load("glTexCoord1d");
1465+ glad_glTexCoord1dv = (PFNGLTEXCOORD1DVPROC)load("glTexCoord1dv");
1466+ glad_glTexCoord1f = (PFNGLTEXCOORD1FPROC)load("glTexCoord1f");
1467+ glad_glTexCoord1fv = (PFNGLTEXCOORD1FVPROC)load("glTexCoord1fv");
1468+ glad_glTexCoord1i = (PFNGLTEXCOORD1IPROC)load("glTexCoord1i");
1469+ glad_glTexCoord1iv = (PFNGLTEXCOORD1IVPROC)load("glTexCoord1iv");
1470+ glad_glTexCoord1s = (PFNGLTEXCOORD1SPROC)load("glTexCoord1s");
1471+ glad_glTexCoord1sv = (PFNGLTEXCOORD1SVPROC)load("glTexCoord1sv");
1472+ glad_glTexCoord2d = (PFNGLTEXCOORD2DPROC)load("glTexCoord2d");
1473+ glad_glTexCoord2dv = (PFNGLTEXCOORD2DVPROC)load("glTexCoord2dv");
1474+ glad_glTexCoord2f = (PFNGLTEXCOORD2FPROC)load("glTexCoord2f");
1475+ glad_glTexCoord2fv = (PFNGLTEXCOORD2FVPROC)load("glTexCoord2fv");
1476+ glad_glTexCoord2i = (PFNGLTEXCOORD2IPROC)load("glTexCoord2i");
1477+ glad_glTexCoord2iv = (PFNGLTEXCOORD2IVPROC)load("glTexCoord2iv");
1478+ glad_glTexCoord2s = (PFNGLTEXCOORD2SPROC)load("glTexCoord2s");
1479+ glad_glTexCoord2sv = (PFNGLTEXCOORD2SVPROC)load("glTexCoord2sv");
1480+ glad_glTexCoord3d = (PFNGLTEXCOORD3DPROC)load("glTexCoord3d");
1481+ glad_glTexCoord3dv = (PFNGLTEXCOORD3DVPROC)load("glTexCoord3dv");
1482+ glad_glTexCoord3f = (PFNGLTEXCOORD3FPROC)load("glTexCoord3f");
1483+ glad_glTexCoord3fv = (PFNGLTEXCOORD3FVPROC)load("glTexCoord3fv");
1484+ glad_glTexCoord3i = (PFNGLTEXCOORD3IPROC)load("glTexCoord3i");
1485+ glad_glTexCoord3iv = (PFNGLTEXCOORD3IVPROC)load("glTexCoord3iv");
1486+ glad_glTexCoord3s = (PFNGLTEXCOORD3SPROC)load("glTexCoord3s");
1487+ glad_glTexCoord3sv = (PFNGLTEXCOORD3SVPROC)load("glTexCoord3sv");
1488+ glad_glTexCoord4d = (PFNGLTEXCOORD4DPROC)load("glTexCoord4d");
1489+ glad_glTexCoord4dv = (PFNGLTEXCOORD4DVPROC)load("glTexCoord4dv");
1490+ glad_glTexCoord4f = (PFNGLTEXCOORD4FPROC)load("glTexCoord4f");
1491+ glad_glTexCoord4fv = (PFNGLTEXCOORD4FVPROC)load("glTexCoord4fv");
1492+ glad_glTexCoord4i = (PFNGLTEXCOORD4IPROC)load("glTexCoord4i");
1493+ glad_glTexCoord4iv = (PFNGLTEXCOORD4IVPROC)load("glTexCoord4iv");
1494+ glad_glTexCoord4s = (PFNGLTEXCOORD4SPROC)load("glTexCoord4s");
1495+ glad_glTexCoord4sv = (PFNGLTEXCOORD4SVPROC)load("glTexCoord4sv");
1496+ glad_glVertex2d = (PFNGLVERTEX2DPROC)load("glVertex2d");
1497+ glad_glVertex2dv = (PFNGLVERTEX2DVPROC)load("glVertex2dv");
1498+ glad_glVertex2f = (PFNGLVERTEX2FPROC)load("glVertex2f");
1499+ glad_glVertex2fv = (PFNGLVERTEX2FVPROC)load("glVertex2fv");
1500+ glad_glVertex2i = (PFNGLVERTEX2IPROC)load("glVertex2i");
1501+ glad_glVertex2iv = (PFNGLVERTEX2IVPROC)load("glVertex2iv");
1502+ glad_glVertex2s = (PFNGLVERTEX2SPROC)load("glVertex2s");
1503+ glad_glVertex2sv = (PFNGLVERTEX2SVPROC)load("glVertex2sv");
1504+ glad_glVertex3d = (PFNGLVERTEX3DPROC)load("glVertex3d");
1505+ glad_glVertex3dv = (PFNGLVERTEX3DVPROC)load("glVertex3dv");
1506+ glad_glVertex3f = (PFNGLVERTEX3FPROC)load("glVertex3f");
1507+ glad_glVertex3fv = (PFNGLVERTEX3FVPROC)load("glVertex3fv");
1508+ glad_glVertex3i = (PFNGLVERTEX3IPROC)load("glVertex3i");
1509+ glad_glVertex3iv = (PFNGLVERTEX3IVPROC)load("glVertex3iv");
1510+ glad_glVertex3s = (PFNGLVERTEX3SPROC)load("glVertex3s");
1511+ glad_glVertex3sv = (PFNGLVERTEX3SVPROC)load("glVertex3sv");
1512+ glad_glVertex4d = (PFNGLVERTEX4DPROC)load("glVertex4d");
1513+ glad_glVertex4dv = (PFNGLVERTEX4DVPROC)load("glVertex4dv");
1514+ glad_glVertex4f = (PFNGLVERTEX4FPROC)load("glVertex4f");
1515+ glad_glVertex4fv = (PFNGLVERTEX4FVPROC)load("glVertex4fv");
1516+ glad_glVertex4i = (PFNGLVERTEX4IPROC)load("glVertex4i");
1517+ glad_glVertex4iv = (PFNGLVERTEX4IVPROC)load("glVertex4iv");
1518+ glad_glVertex4s = (PFNGLVERTEX4SPROC)load("glVertex4s");
1519+ glad_glVertex4sv = (PFNGLVERTEX4SVPROC)load("glVertex4sv");
1520+ glad_glClipPlane = (PFNGLCLIPPLANEPROC)load("glClipPlane");
1521+ glad_glColorMaterial = (PFNGLCOLORMATERIALPROC)load("glColorMaterial");
1522+ glad_glFogf = (PFNGLFOGFPROC)load("glFogf");
1523+ glad_glFogfv = (PFNGLFOGFVPROC)load("glFogfv");
1524+ glad_glFogi = (PFNGLFOGIPROC)load("glFogi");
1525+ glad_glFogiv = (PFNGLFOGIVPROC)load("glFogiv");
1526+ glad_glLightf = (PFNGLLIGHTFPROC)load("glLightf");
1527+ glad_glLightfv = (PFNGLLIGHTFVPROC)load("glLightfv");
1528+ glad_glLighti = (PFNGLLIGHTIPROC)load("glLighti");
1529+ glad_glLightiv = (PFNGLLIGHTIVPROC)load("glLightiv");
1530+ glad_glLightModelf = (PFNGLLIGHTMODELFPROC)load("glLightModelf");
1531+ glad_glLightModelfv = (PFNGLLIGHTMODELFVPROC)load("glLightModelfv");
1532+ glad_glLightModeli = (PFNGLLIGHTMODELIPROC)load("glLightModeli");
1533+ glad_glLightModeliv = (PFNGLLIGHTMODELIVPROC)load("glLightModeliv");
1534+ glad_glLineStipple = (PFNGLLINESTIPPLEPROC)load("glLineStipple");
1535+ glad_glMaterialf = (PFNGLMATERIALFPROC)load("glMaterialf");
1536+ glad_glMaterialfv = (PFNGLMATERIALFVPROC)load("glMaterialfv");
1537+ glad_glMateriali = (PFNGLMATERIALIPROC)load("glMateriali");
1538+ glad_glMaterialiv = (PFNGLMATERIALIVPROC)load("glMaterialiv");
1539+ glad_glPolygonStipple = (PFNGLPOLYGONSTIPPLEPROC)load("glPolygonStipple");
1540+ glad_glShadeModel = (PFNGLSHADEMODELPROC)load("glShadeModel");
1541+ glad_glTexEnvf = (PFNGLTEXENVFPROC)load("glTexEnvf");
1542+ glad_glTexEnvfv = (PFNGLTEXENVFVPROC)load("glTexEnvfv");
1543+ glad_glTexEnvi = (PFNGLTEXENVIPROC)load("glTexEnvi");
1544+ glad_glTexEnviv = (PFNGLTEXENVIVPROC)load("glTexEnviv");
1545+ glad_glTexGend = (PFNGLTEXGENDPROC)load("glTexGend");
1546+ glad_glTexGendv = (PFNGLTEXGENDVPROC)load("glTexGendv");
1547+ glad_glTexGenf = (PFNGLTEXGENFPROC)load("glTexGenf");
1548+ glad_glTexGenfv = (PFNGLTEXGENFVPROC)load("glTexGenfv");
1549+ glad_glTexGeni = (PFNGLTEXGENIPROC)load("glTexGeni");
1550+ glad_glTexGeniv = (PFNGLTEXGENIVPROC)load("glTexGeniv");
1551+ glad_glFeedbackBuffer = (PFNGLFEEDBACKBUFFERPROC)load("glFeedbackBuffer");
1552+ glad_glSelectBuffer = (PFNGLSELECTBUFFERPROC)load("glSelectBuffer");
1553+ glad_glRenderMode = (PFNGLRENDERMODEPROC)load("glRenderMode");
1554+ glad_glInitNames = (PFNGLINITNAMESPROC)load("glInitNames");
1555+ glad_glLoadName = (PFNGLLOADNAMEPROC)load("glLoadName");
1556+ glad_glPassThrough = (PFNGLPASSTHROUGHPROC)load("glPassThrough");
1557+ glad_glPopName = (PFNGLPOPNAMEPROC)load("glPopName");
1558+ glad_glPushName = (PFNGLPUSHNAMEPROC)load("glPushName");
1559+ glad_glClearAccum = (PFNGLCLEARACCUMPROC)load("glClearAccum");
1560+ glad_glClearIndex = (PFNGLCLEARINDEXPROC)load("glClearIndex");
1561+ glad_glIndexMask = (PFNGLINDEXMASKPROC)load("glIndexMask");
1562+ glad_glAccum = (PFNGLACCUMPROC)load("glAccum");
1563+ glad_glPopAttrib = (PFNGLPOPATTRIBPROC)load("glPopAttrib");
1564+ glad_glPushAttrib = (PFNGLPUSHATTRIBPROC)load("glPushAttrib");
1565+ glad_glMap1d = (PFNGLMAP1DPROC)load("glMap1d");
1566+ glad_glMap1f = (PFNGLMAP1FPROC)load("glMap1f");
1567+ glad_glMap2d = (PFNGLMAP2DPROC)load("glMap2d");
1568+ glad_glMap2f = (PFNGLMAP2FPROC)load("glMap2f");
1569+ glad_glMapGrid1d = (PFNGLMAPGRID1DPROC)load("glMapGrid1d");
1570+ glad_glMapGrid1f = (PFNGLMAPGRID1FPROC)load("glMapGrid1f");
1571+ glad_glMapGrid2d = (PFNGLMAPGRID2DPROC)load("glMapGrid2d");
1572+ glad_glMapGrid2f = (PFNGLMAPGRID2FPROC)load("glMapGrid2f");
1573+ glad_glEvalCoord1d = (PFNGLEVALCOORD1DPROC)load("glEvalCoord1d");
1574+ glad_glEvalCoord1dv = (PFNGLEVALCOORD1DVPROC)load("glEvalCoord1dv");
1575+ glad_glEvalCoord1f = (PFNGLEVALCOORD1FPROC)load("glEvalCoord1f");
1576+ glad_glEvalCoord1fv = (PFNGLEVALCOORD1FVPROC)load("glEvalCoord1fv");
1577+ glad_glEvalCoord2d = (PFNGLEVALCOORD2DPROC)load("glEvalCoord2d");
1578+ glad_glEvalCoord2dv = (PFNGLEVALCOORD2DVPROC)load("glEvalCoord2dv");
1579+ glad_glEvalCoord2f = (PFNGLEVALCOORD2FPROC)load("glEvalCoord2f");
1580+ glad_glEvalCoord2fv = (PFNGLEVALCOORD2FVPROC)load("glEvalCoord2fv");
1581+ glad_glEvalMesh1 = (PFNGLEVALMESH1PROC)load("glEvalMesh1");
1582+ glad_glEvalPoint1 = (PFNGLEVALPOINT1PROC)load("glEvalPoint1");
1583+ glad_glEvalMesh2 = (PFNGLEVALMESH2PROC)load("glEvalMesh2");
1584+ glad_glEvalPoint2 = (PFNGLEVALPOINT2PROC)load("glEvalPoint2");
1585+ glad_glAlphaFunc = (PFNGLALPHAFUNCPROC)load("glAlphaFunc");
1586+ glad_glPixelZoom = (PFNGLPIXELZOOMPROC)load("glPixelZoom");
1587+ glad_glPixelTransferf = (PFNGLPIXELTRANSFERFPROC)load("glPixelTransferf");
1588+ glad_glPixelTransferi = (PFNGLPIXELTRANSFERIPROC)load("glPixelTransferi");
1589+ glad_glPixelMapfv = (PFNGLPIXELMAPFVPROC)load("glPixelMapfv");
1590+ glad_glPixelMapuiv = (PFNGLPIXELMAPUIVPROC)load("glPixelMapuiv");
1591+ glad_glPixelMapusv = (PFNGLPIXELMAPUSVPROC)load("glPixelMapusv");
1592+ glad_glCopyPixels = (PFNGLCOPYPIXELSPROC)load("glCopyPixels");
1593+ glad_glDrawPixels = (PFNGLDRAWPIXELSPROC)load("glDrawPixels");
1594+ glad_glGetClipPlane = (PFNGLGETCLIPPLANEPROC)load("glGetClipPlane");
1595+ glad_glGetLightfv = (PFNGLGETLIGHTFVPROC)load("glGetLightfv");
1596+ glad_glGetLightiv = (PFNGLGETLIGHTIVPROC)load("glGetLightiv");
1597+ glad_glGetMapdv = (PFNGLGETMAPDVPROC)load("glGetMapdv");
1598+ glad_glGetMapfv = (PFNGLGETMAPFVPROC)load("glGetMapfv");
1599+ glad_glGetMapiv = (PFNGLGETMAPIVPROC)load("glGetMapiv");
1600+ glad_glGetMaterialfv = (PFNGLGETMATERIALFVPROC)load("glGetMaterialfv");
1601+ glad_glGetMaterialiv = (PFNGLGETMATERIALIVPROC)load("glGetMaterialiv");
1602+ glad_glGetPixelMapfv = (PFNGLGETPIXELMAPFVPROC)load("glGetPixelMapfv");
1603+ glad_glGetPixelMapuiv = (PFNGLGETPIXELMAPUIVPROC)load("glGetPixelMapuiv");
1604+ glad_glGetPixelMapusv = (PFNGLGETPIXELMAPUSVPROC)load("glGetPixelMapusv");
1605+ glad_glGetPolygonStipple = (PFNGLGETPOLYGONSTIPPLEPROC)load("glGetPolygonStipple");
1606+ glad_glGetTexEnvfv = (PFNGLGETTEXENVFVPROC)load("glGetTexEnvfv");
1607+ glad_glGetTexEnviv = (PFNGLGETTEXENVIVPROC)load("glGetTexEnviv");
1608+ glad_glGetTexGendv = (PFNGLGETTEXGENDVPROC)load("glGetTexGendv");
1609+ glad_glGetTexGenfv = (PFNGLGETTEXGENFVPROC)load("glGetTexGenfv");
1610+ glad_glGetTexGeniv = (PFNGLGETTEXGENIVPROC)load("glGetTexGeniv");
1611+ glad_glIsList = (PFNGLISLISTPROC)load("glIsList");
1612+ glad_glFrustum = (PFNGLFRUSTUMPROC)load("glFrustum");
1613+ glad_glLoadIdentity = (PFNGLLOADIDENTITYPROC)load("glLoadIdentity");
1614+ glad_glLoadMatrixf = (PFNGLLOADMATRIXFPROC)load("glLoadMatrixf");
1615+ glad_glLoadMatrixd = (PFNGLLOADMATRIXDPROC)load("glLoadMatrixd");
1616+ glad_glMatrixMode = (PFNGLMATRIXMODEPROC)load("glMatrixMode");
1617+ glad_glMultMatrixf = (PFNGLMULTMATRIXFPROC)load("glMultMatrixf");
1618+ glad_glMultMatrixd = (PFNGLMULTMATRIXDPROC)load("glMultMatrixd");
1619+ glad_glOrtho = (PFNGLORTHOPROC)load("glOrtho");
1620+ glad_glPopMatrix = (PFNGLPOPMATRIXPROC)load("glPopMatrix");
1621+ glad_glPushMatrix = (PFNGLPUSHMATRIXPROC)load("glPushMatrix");
1622+ glad_glRotated = (PFNGLROTATEDPROC)load("glRotated");
1623+ glad_glRotatef = (PFNGLROTATEFPROC)load("glRotatef");
1624+ glad_glScaled = (PFNGLSCALEDPROC)load("glScaled");
1625+ glad_glScalef = (PFNGLSCALEFPROC)load("glScalef");
1626+ glad_glTranslated = (PFNGLTRANSLATEDPROC)load("glTranslated");
1627+ glad_glTranslatef = (PFNGLTRANSLATEFPROC)load("glTranslatef");
1628+}
1629+static void load_GL_VERSION_1_1(GLADloadproc load) {
1630+ if(!GLAD_GL_VERSION_1_1) return;
1631+ glad_glDrawArrays = (PFNGLDRAWARRAYSPROC)load("glDrawArrays");
1632+ glad_glDrawElements = (PFNGLDRAWELEMENTSPROC)load("glDrawElements");
1633+ glad_glGetPointerv = (PFNGLGETPOINTERVPROC)load("glGetPointerv");
1634+ glad_glPolygonOffset = (PFNGLPOLYGONOFFSETPROC)load("glPolygonOffset");
1635+ glad_glCopyTexImage1D = (PFNGLCOPYTEXIMAGE1DPROC)load("glCopyTexImage1D");
1636+ glad_glCopyTexImage2D = (PFNGLCOPYTEXIMAGE2DPROC)load("glCopyTexImage2D");
1637+ glad_glCopyTexSubImage1D = (PFNGLCOPYTEXSUBIMAGE1DPROC)load("glCopyTexSubImage1D");
1638+ glad_glCopyTexSubImage2D = (PFNGLCOPYTEXSUBIMAGE2DPROC)load("glCopyTexSubImage2D");
1639+ glad_glTexSubImage1D = (PFNGLTEXSUBIMAGE1DPROC)load("glTexSubImage1D");
1640+ glad_glTexSubImage2D = (PFNGLTEXSUBIMAGE2DPROC)load("glTexSubImage2D");
1641+ glad_glBindTexture = (PFNGLBINDTEXTUREPROC)load("glBindTexture");
1642+ glad_glDeleteTextures = (PFNGLDELETETEXTURESPROC)load("glDeleteTextures");
1643+ glad_glGenTextures = (PFNGLGENTEXTURESPROC)load("glGenTextures");
1644+ glad_glIsTexture = (PFNGLISTEXTUREPROC)load("glIsTexture");
1645+ glad_glArrayElement = (PFNGLARRAYELEMENTPROC)load("glArrayElement");
1646+ glad_glColorPointer = (PFNGLCOLORPOINTERPROC)load("glColorPointer");
1647+ glad_glDisableClientState = (PFNGLDISABLECLIENTSTATEPROC)load("glDisableClientState");
1648+ glad_glEdgeFlagPointer = (PFNGLEDGEFLAGPOINTERPROC)load("glEdgeFlagPointer");
1649+ glad_glEnableClientState = (PFNGLENABLECLIENTSTATEPROC)load("glEnableClientState");
1650+ glad_glIndexPointer = (PFNGLINDEXPOINTERPROC)load("glIndexPointer");
1651+ glad_glInterleavedArrays = (PFNGLINTERLEAVEDARRAYSPROC)load("glInterleavedArrays");
1652+ glad_glNormalPointer = (PFNGLNORMALPOINTERPROC)load("glNormalPointer");
1653+ glad_glTexCoordPointer = (PFNGLTEXCOORDPOINTERPROC)load("glTexCoordPointer");
1654+ glad_glVertexPointer = (PFNGLVERTEXPOINTERPROC)load("glVertexPointer");
1655+ glad_glAreTexturesResident = (PFNGLARETEXTURESRESIDENTPROC)load("glAreTexturesResident");
1656+ glad_glPrioritizeTextures = (PFNGLPRIORITIZETEXTURESPROC)load("glPrioritizeTextures");
1657+ glad_glIndexub = (PFNGLINDEXUBPROC)load("glIndexub");
1658+ glad_glIndexubv = (PFNGLINDEXUBVPROC)load("glIndexubv");
1659+ glad_glPopClientAttrib = (PFNGLPOPCLIENTATTRIBPROC)load("glPopClientAttrib");
1660+ glad_glPushClientAttrib = (PFNGLPUSHCLIENTATTRIBPROC)load("glPushClientAttrib");
1661+}
1662+static void load_GL_VERSION_1_2(GLADloadproc load) {
1663+ if(!GLAD_GL_VERSION_1_2) return;
1664+ glad_glDrawRangeElements = (PFNGLDRAWRANGEELEMENTSPROC)load("glDrawRangeElements");
1665+ glad_glTexImage3D = (PFNGLTEXIMAGE3DPROC)load("glTexImage3D");
1666+ glad_glTexSubImage3D = (PFNGLTEXSUBIMAGE3DPROC)load("glTexSubImage3D");
1667+ glad_glCopyTexSubImage3D = (PFNGLCOPYTEXSUBIMAGE3DPROC)load("glCopyTexSubImage3D");
1668+}
1669+static void load_GL_VERSION_1_3(GLADloadproc load) {
1670+ if(!GLAD_GL_VERSION_1_3) return;
1671+ glad_glActiveTexture = (PFNGLACTIVETEXTUREPROC)load("glActiveTexture");
1672+ glad_glSampleCoverage = (PFNGLSAMPLECOVERAGEPROC)load("glSampleCoverage");
1673+ glad_glCompressedTexImage3D = (PFNGLCOMPRESSEDTEXIMAGE3DPROC)load("glCompressedTexImage3D");
1674+ glad_glCompressedTexImage2D = (PFNGLCOMPRESSEDTEXIMAGE2DPROC)load("glCompressedTexImage2D");
1675+ glad_glCompressedTexImage1D = (PFNGLCOMPRESSEDTEXIMAGE1DPROC)load("glCompressedTexImage1D");
1676+ glad_glCompressedTexSubImage3D = (PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC)load("glCompressedTexSubImage3D");
1677+ glad_glCompressedTexSubImage2D = (PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC)load("glCompressedTexSubImage2D");
1678+ glad_glCompressedTexSubImage1D = (PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC)load("glCompressedTexSubImage1D");
1679+ glad_glGetCompressedTexImage = (PFNGLGETCOMPRESSEDTEXIMAGEPROC)load("glGetCompressedTexImage");
1680+ glad_glClientActiveTexture = (PFNGLCLIENTACTIVETEXTUREPROC)load("glClientActiveTexture");
1681+ glad_glMultiTexCoord1d = (PFNGLMULTITEXCOORD1DPROC)load("glMultiTexCoord1d");
1682+ glad_glMultiTexCoord1dv = (PFNGLMULTITEXCOORD1DVPROC)load("glMultiTexCoord1dv");
1683+ glad_glMultiTexCoord1f = (PFNGLMULTITEXCOORD1FPROC)load("glMultiTexCoord1f");
1684+ glad_glMultiTexCoord1fv = (PFNGLMULTITEXCOORD1FVPROC)load("glMultiTexCoord1fv");
1685+ glad_glMultiTexCoord1i = (PFNGLMULTITEXCOORD1IPROC)load("glMultiTexCoord1i");
1686+ glad_glMultiTexCoord1iv = (PFNGLMULTITEXCOORD1IVPROC)load("glMultiTexCoord1iv");
1687+ glad_glMultiTexCoord1s = (PFNGLMULTITEXCOORD1SPROC)load("glMultiTexCoord1s");
1688+ glad_glMultiTexCoord1sv = (PFNGLMULTITEXCOORD1SVPROC)load("glMultiTexCoord1sv");
1689+ glad_glMultiTexCoord2d = (PFNGLMULTITEXCOORD2DPROC)load("glMultiTexCoord2d");
1690+ glad_glMultiTexCoord2dv = (PFNGLMULTITEXCOORD2DVPROC)load("glMultiTexCoord2dv");
1691+ glad_glMultiTexCoord2f = (PFNGLMULTITEXCOORD2FPROC)load("glMultiTexCoord2f");
1692+ glad_glMultiTexCoord2fv = (PFNGLMULTITEXCOORD2FVPROC)load("glMultiTexCoord2fv");
1693+ glad_glMultiTexCoord2i = (PFNGLMULTITEXCOORD2IPROC)load("glMultiTexCoord2i");
1694+ glad_glMultiTexCoord2iv = (PFNGLMULTITEXCOORD2IVPROC)load("glMultiTexCoord2iv");
1695+ glad_glMultiTexCoord2s = (PFNGLMULTITEXCOORD2SPROC)load("glMultiTexCoord2s");
1696+ glad_glMultiTexCoord2sv = (PFNGLMULTITEXCOORD2SVPROC)load("glMultiTexCoord2sv");
1697+ glad_glMultiTexCoord3d = (PFNGLMULTITEXCOORD3DPROC)load("glMultiTexCoord3d");
1698+ glad_glMultiTexCoord3dv = (PFNGLMULTITEXCOORD3DVPROC)load("glMultiTexCoord3dv");
1699+ glad_glMultiTexCoord3f = (PFNGLMULTITEXCOORD3FPROC)load("glMultiTexCoord3f");
1700+ glad_glMultiTexCoord3fv = (PFNGLMULTITEXCOORD3FVPROC)load("glMultiTexCoord3fv");
1701+ glad_glMultiTexCoord3i = (PFNGLMULTITEXCOORD3IPROC)load("glMultiTexCoord3i");
1702+ glad_glMultiTexCoord3iv = (PFNGLMULTITEXCOORD3IVPROC)load("glMultiTexCoord3iv");
1703+ glad_glMultiTexCoord3s = (PFNGLMULTITEXCOORD3SPROC)load("glMultiTexCoord3s");
1704+ glad_glMultiTexCoord3sv = (PFNGLMULTITEXCOORD3SVPROC)load("glMultiTexCoord3sv");
1705+ glad_glMultiTexCoord4d = (PFNGLMULTITEXCOORD4DPROC)load("glMultiTexCoord4d");
1706+ glad_glMultiTexCoord4dv = (PFNGLMULTITEXCOORD4DVPROC)load("glMultiTexCoord4dv");
1707+ glad_glMultiTexCoord4f = (PFNGLMULTITEXCOORD4FPROC)load("glMultiTexCoord4f");
1708+ glad_glMultiTexCoord4fv = (PFNGLMULTITEXCOORD4FVPROC)load("glMultiTexCoord4fv");
1709+ glad_glMultiTexCoord4i = (PFNGLMULTITEXCOORD4IPROC)load("glMultiTexCoord4i");
1710+ glad_glMultiTexCoord4iv = (PFNGLMULTITEXCOORD4IVPROC)load("glMultiTexCoord4iv");
1711+ glad_glMultiTexCoord4s = (PFNGLMULTITEXCOORD4SPROC)load("glMultiTexCoord4s");
1712+ glad_glMultiTexCoord4sv = (PFNGLMULTITEXCOORD4SVPROC)load("glMultiTexCoord4sv");
1713+ glad_glLoadTransposeMatrixf = (PFNGLLOADTRANSPOSEMATRIXFPROC)load("glLoadTransposeMatrixf");
1714+ glad_glLoadTransposeMatrixd = (PFNGLLOADTRANSPOSEMATRIXDPROC)load("glLoadTransposeMatrixd");
1715+ glad_glMultTransposeMatrixf = (PFNGLMULTTRANSPOSEMATRIXFPROC)load("glMultTransposeMatrixf");
1716+ glad_glMultTransposeMatrixd = (PFNGLMULTTRANSPOSEMATRIXDPROC)load("glMultTransposeMatrixd");
1717+}
1718+static void load_GL_VERSION_1_4(GLADloadproc load) {
1719+ if(!GLAD_GL_VERSION_1_4) return;
1720+ glad_glBlendFuncSeparate = (PFNGLBLENDFUNCSEPARATEPROC)load("glBlendFuncSeparate");
1721+ glad_glMultiDrawArrays = (PFNGLMULTIDRAWARRAYSPROC)load("glMultiDrawArrays");
1722+ glad_glMultiDrawElements = (PFNGLMULTIDRAWELEMENTSPROC)load("glMultiDrawElements");
1723+ glad_glPointParameterf = (PFNGLPOINTPARAMETERFPROC)load("glPointParameterf");
1724+ glad_glPointParameterfv = (PFNGLPOINTPARAMETERFVPROC)load("glPointParameterfv");
1725+ glad_glPointParameteri = (PFNGLPOINTPARAMETERIPROC)load("glPointParameteri");
1726+ glad_glPointParameteriv = (PFNGLPOINTPARAMETERIVPROC)load("glPointParameteriv");
1727+ glad_glFogCoordf = (PFNGLFOGCOORDFPROC)load("glFogCoordf");
1728+ glad_glFogCoordfv = (PFNGLFOGCOORDFVPROC)load("glFogCoordfv");
1729+ glad_glFogCoordd = (PFNGLFOGCOORDDPROC)load("glFogCoordd");
1730+ glad_glFogCoorddv = (PFNGLFOGCOORDDVPROC)load("glFogCoorddv");
1731+ glad_glFogCoordPointer = (PFNGLFOGCOORDPOINTERPROC)load("glFogCoordPointer");
1732+ glad_glSecondaryColor3b = (PFNGLSECONDARYCOLOR3BPROC)load("glSecondaryColor3b");
1733+ glad_glSecondaryColor3bv = (PFNGLSECONDARYCOLOR3BVPROC)load("glSecondaryColor3bv");
1734+ glad_glSecondaryColor3d = (PFNGLSECONDARYCOLOR3DPROC)load("glSecondaryColor3d");
1735+ glad_glSecondaryColor3dv = (PFNGLSECONDARYCOLOR3DVPROC)load("glSecondaryColor3dv");
1736+ glad_glSecondaryColor3f = (PFNGLSECONDARYCOLOR3FPROC)load("glSecondaryColor3f");
1737+ glad_glSecondaryColor3fv = (PFNGLSECONDARYCOLOR3FVPROC)load("glSecondaryColor3fv");
1738+ glad_glSecondaryColor3i = (PFNGLSECONDARYCOLOR3IPROC)load("glSecondaryColor3i");
1739+ glad_glSecondaryColor3iv = (PFNGLSECONDARYCOLOR3IVPROC)load("glSecondaryColor3iv");
1740+ glad_glSecondaryColor3s = (PFNGLSECONDARYCOLOR3SPROC)load("glSecondaryColor3s");
1741+ glad_glSecondaryColor3sv = (PFNGLSECONDARYCOLOR3SVPROC)load("glSecondaryColor3sv");
1742+ glad_glSecondaryColor3ub = (PFNGLSECONDARYCOLOR3UBPROC)load("glSecondaryColor3ub");
1743+ glad_glSecondaryColor3ubv = (PFNGLSECONDARYCOLOR3UBVPROC)load("glSecondaryColor3ubv");
1744+ glad_glSecondaryColor3ui = (PFNGLSECONDARYCOLOR3UIPROC)load("glSecondaryColor3ui");
1745+ glad_glSecondaryColor3uiv = (PFNGLSECONDARYCOLOR3UIVPROC)load("glSecondaryColor3uiv");
1746+ glad_glSecondaryColor3us = (PFNGLSECONDARYCOLOR3USPROC)load("glSecondaryColor3us");
1747+ glad_glSecondaryColor3usv = (PFNGLSECONDARYCOLOR3USVPROC)load("glSecondaryColor3usv");
1748+ glad_glSecondaryColorPointer = (PFNGLSECONDARYCOLORPOINTERPROC)load("glSecondaryColorPointer");
1749+ glad_glWindowPos2d = (PFNGLWINDOWPOS2DPROC)load("glWindowPos2d");
1750+ glad_glWindowPos2dv = (PFNGLWINDOWPOS2DVPROC)load("glWindowPos2dv");
1751+ glad_glWindowPos2f = (PFNGLWINDOWPOS2FPROC)load("glWindowPos2f");
1752+ glad_glWindowPos2fv = (PFNGLWINDOWPOS2FVPROC)load("glWindowPos2fv");
1753+ glad_glWindowPos2i = (PFNGLWINDOWPOS2IPROC)load("glWindowPos2i");
1754+ glad_glWindowPos2iv = (PFNGLWINDOWPOS2IVPROC)load("glWindowPos2iv");
1755+ glad_glWindowPos2s = (PFNGLWINDOWPOS2SPROC)load("glWindowPos2s");
1756+ glad_glWindowPos2sv = (PFNGLWINDOWPOS2SVPROC)load("glWindowPos2sv");
1757+ glad_glWindowPos3d = (PFNGLWINDOWPOS3DPROC)load("glWindowPos3d");
1758+ glad_glWindowPos3dv = (PFNGLWINDOWPOS3DVPROC)load("glWindowPos3dv");
1759+ glad_glWindowPos3f = (PFNGLWINDOWPOS3FPROC)load("glWindowPos3f");
1760+ glad_glWindowPos3fv = (PFNGLWINDOWPOS3FVPROC)load("glWindowPos3fv");
1761+ glad_glWindowPos3i = (PFNGLWINDOWPOS3IPROC)load("glWindowPos3i");
1762+ glad_glWindowPos3iv = (PFNGLWINDOWPOS3IVPROC)load("glWindowPos3iv");
1763+ glad_glWindowPos3s = (PFNGLWINDOWPOS3SPROC)load("glWindowPos3s");
1764+ glad_glWindowPos3sv = (PFNGLWINDOWPOS3SVPROC)load("glWindowPos3sv");
1765+ glad_glBlendColor = (PFNGLBLENDCOLORPROC)load("glBlendColor");
1766+ glad_glBlendEquation = (PFNGLBLENDEQUATIONPROC)load("glBlendEquation");
1767+}
1768+static void load_GL_VERSION_1_5(GLADloadproc load) {
1769+ if(!GLAD_GL_VERSION_1_5) return;
1770+ glad_glGenQueries = (PFNGLGENQUERIESPROC)load("glGenQueries");
1771+ glad_glDeleteQueries = (PFNGLDELETEQUERIESPROC)load("glDeleteQueries");
1772+ glad_glIsQuery = (PFNGLISQUERYPROC)load("glIsQuery");
1773+ glad_glBeginQuery = (PFNGLBEGINQUERYPROC)load("glBeginQuery");
1774+ glad_glEndQuery = (PFNGLENDQUERYPROC)load("glEndQuery");
1775+ glad_glGetQueryiv = (PFNGLGETQUERYIVPROC)load("glGetQueryiv");
1776+ glad_glGetQueryObjectiv = (PFNGLGETQUERYOBJECTIVPROC)load("glGetQueryObjectiv");
1777+ glad_glGetQueryObjectuiv = (PFNGLGETQUERYOBJECTUIVPROC)load("glGetQueryObjectuiv");
1778+ glad_glBindBuffer = (PFNGLBINDBUFFERPROC)load("glBindBuffer");
1779+ glad_glDeleteBuffers = (PFNGLDELETEBUFFERSPROC)load("glDeleteBuffers");
1780+ glad_glGenBuffers = (PFNGLGENBUFFERSPROC)load("glGenBuffers");
1781+ glad_glIsBuffer = (PFNGLISBUFFERPROC)load("glIsBuffer");
1782+ glad_glBufferData = (PFNGLBUFFERDATAPROC)load("glBufferData");
1783+ glad_glBufferSubData = (PFNGLBUFFERSUBDATAPROC)load("glBufferSubData");
1784+ glad_glGetBufferSubData = (PFNGLGETBUFFERSUBDATAPROC)load("glGetBufferSubData");
1785+ glad_glMapBuffer = (PFNGLMAPBUFFERPROC)load("glMapBuffer");
1786+ glad_glUnmapBuffer = (PFNGLUNMAPBUFFERPROC)load("glUnmapBuffer");
1787+ glad_glGetBufferParameteriv = (PFNGLGETBUFFERPARAMETERIVPROC)load("glGetBufferParameteriv");
1788+ glad_glGetBufferPointerv = (PFNGLGETBUFFERPOINTERVPROC)load("glGetBufferPointerv");
1789+}
1790+static void load_GL_VERSION_2_0(GLADloadproc load) {
1791+ if(!GLAD_GL_VERSION_2_0) return;
1792+ glad_glBlendEquationSeparate = (PFNGLBLENDEQUATIONSEPARATEPROC)load("glBlendEquationSeparate");
1793+ glad_glDrawBuffers = (PFNGLDRAWBUFFERSPROC)load("glDrawBuffers");
1794+ glad_glStencilOpSeparate = (PFNGLSTENCILOPSEPARATEPROC)load("glStencilOpSeparate");
1795+ glad_glStencilFuncSeparate = (PFNGLSTENCILFUNCSEPARATEPROC)load("glStencilFuncSeparate");
1796+ glad_glStencilMaskSeparate = (PFNGLSTENCILMASKSEPARATEPROC)load("glStencilMaskSeparate");
1797+ glad_glAttachShader = (PFNGLATTACHSHADERPROC)load("glAttachShader");
1798+ glad_glBindAttribLocation = (PFNGLBINDATTRIBLOCATIONPROC)load("glBindAttribLocation");
1799+ glad_glCompileShader = (PFNGLCOMPILESHADERPROC)load("glCompileShader");
1800+ glad_glCreateProgram = (PFNGLCREATEPROGRAMPROC)load("glCreateProgram");
1801+ glad_glCreateShader = (PFNGLCREATESHADERPROC)load("glCreateShader");
1802+ glad_glDeleteProgram = (PFNGLDELETEPROGRAMPROC)load("glDeleteProgram");
1803+ glad_glDeleteShader = (PFNGLDELETESHADERPROC)load("glDeleteShader");
1804+ glad_glDetachShader = (PFNGLDETACHSHADERPROC)load("glDetachShader");
1805+ glad_glDisableVertexAttribArray = (PFNGLDISABLEVERTEXATTRIBARRAYPROC)load("glDisableVertexAttribArray");
1806+ glad_glEnableVertexAttribArray = (PFNGLENABLEVERTEXATTRIBARRAYPROC)load("glEnableVertexAttribArray");
1807+ glad_glGetActiveAttrib = (PFNGLGETACTIVEATTRIBPROC)load("glGetActiveAttrib");
1808+ glad_glGetActiveUniform = (PFNGLGETACTIVEUNIFORMPROC)load("glGetActiveUniform");
1809+ glad_glGetAttachedShaders = (PFNGLGETATTACHEDSHADERSPROC)load("glGetAttachedShaders");
1810+ glad_glGetAttribLocation = (PFNGLGETATTRIBLOCATIONPROC)load("glGetAttribLocation");
1811+ glad_glGetProgramiv = (PFNGLGETPROGRAMIVPROC)load("glGetProgramiv");
1812+ glad_glGetProgramInfoLog = (PFNGLGETPROGRAMINFOLOGPROC)load("glGetProgramInfoLog");
1813+ glad_glGetShaderiv = (PFNGLGETSHADERIVPROC)load("glGetShaderiv");
1814+ glad_glGetShaderInfoLog = (PFNGLGETSHADERINFOLOGPROC)load("glGetShaderInfoLog");
1815+ glad_glGetShaderSource = (PFNGLGETSHADERSOURCEPROC)load("glGetShaderSource");
1816+ glad_glGetUniformLocation = (PFNGLGETUNIFORMLOCATIONPROC)load("glGetUniformLocation");
1817+ glad_glGetUniformfv = (PFNGLGETUNIFORMFVPROC)load("glGetUniformfv");
1818+ glad_glGetUniformiv = (PFNGLGETUNIFORMIVPROC)load("glGetUniformiv");
1819+ glad_glGetVertexAttribdv = (PFNGLGETVERTEXATTRIBDVPROC)load("glGetVertexAttribdv");
1820+ glad_glGetVertexAttribfv = (PFNGLGETVERTEXATTRIBFVPROC)load("glGetVertexAttribfv");
1821+ glad_glGetVertexAttribiv = (PFNGLGETVERTEXATTRIBIVPROC)load("glGetVertexAttribiv");
1822+ glad_glGetVertexAttribPointerv = (PFNGLGETVERTEXATTRIBPOINTERVPROC)load("glGetVertexAttribPointerv");
1823+ glad_glIsProgram = (PFNGLISPROGRAMPROC)load("glIsProgram");
1824+ glad_glIsShader = (PFNGLISSHADERPROC)load("glIsShader");
1825+ glad_glLinkProgram = (PFNGLLINKPROGRAMPROC)load("glLinkProgram");
1826+ glad_glShaderSource = (PFNGLSHADERSOURCEPROC)load("glShaderSource");
1827+ glad_glUseProgram = (PFNGLUSEPROGRAMPROC)load("glUseProgram");
1828+ glad_glUniform1f = (PFNGLUNIFORM1FPROC)load("glUniform1f");
1829+ glad_glUniform2f = (PFNGLUNIFORM2FPROC)load("glUniform2f");
1830+ glad_glUniform3f = (PFNGLUNIFORM3FPROC)load("glUniform3f");
1831+ glad_glUniform4f = (PFNGLUNIFORM4FPROC)load("glUniform4f");
1832+ glad_glUniform1i = (PFNGLUNIFORM1IPROC)load("glUniform1i");
1833+ glad_glUniform2i = (PFNGLUNIFORM2IPROC)load("glUniform2i");
1834+ glad_glUniform3i = (PFNGLUNIFORM3IPROC)load("glUniform3i");
1835+ glad_glUniform4i = (PFNGLUNIFORM4IPROC)load("glUniform4i");
1836+ glad_glUniform1fv = (PFNGLUNIFORM1FVPROC)load("glUniform1fv");
1837+ glad_glUniform2fv = (PFNGLUNIFORM2FVPROC)load("glUniform2fv");
1838+ glad_glUniform3fv = (PFNGLUNIFORM3FVPROC)load("glUniform3fv");
1839+ glad_glUniform4fv = (PFNGLUNIFORM4FVPROC)load("glUniform4fv");
1840+ glad_glUniform1iv = (PFNGLUNIFORM1IVPROC)load("glUniform1iv");
1841+ glad_glUniform2iv = (PFNGLUNIFORM2IVPROC)load("glUniform2iv");
1842+ glad_glUniform3iv = (PFNGLUNIFORM3IVPROC)load("glUniform3iv");
1843+ glad_glUniform4iv = (PFNGLUNIFORM4IVPROC)load("glUniform4iv");
1844+ glad_glUniformMatrix2fv = (PFNGLUNIFORMMATRIX2FVPROC)load("glUniformMatrix2fv");
1845+ glad_glUniformMatrix3fv = (PFNGLUNIFORMMATRIX3FVPROC)load("glUniformMatrix3fv");
1846+ glad_glUniformMatrix4fv = (PFNGLUNIFORMMATRIX4FVPROC)load("glUniformMatrix4fv");
1847+ glad_glValidateProgram = (PFNGLVALIDATEPROGRAMPROC)load("glValidateProgram");
1848+ glad_glVertexAttrib1d = (PFNGLVERTEXATTRIB1DPROC)load("glVertexAttrib1d");
1849+ glad_glVertexAttrib1dv = (PFNGLVERTEXATTRIB1DVPROC)load("glVertexAttrib1dv");
1850+ glad_glVertexAttrib1f = (PFNGLVERTEXATTRIB1FPROC)load("glVertexAttrib1f");
1851+ glad_glVertexAttrib1fv = (PFNGLVERTEXATTRIB1FVPROC)load("glVertexAttrib1fv");
1852+ glad_glVertexAttrib1s = (PFNGLVERTEXATTRIB1SPROC)load("glVertexAttrib1s");
1853+ glad_glVertexAttrib1sv = (PFNGLVERTEXATTRIB1SVPROC)load("glVertexAttrib1sv");
1854+ glad_glVertexAttrib2d = (PFNGLVERTEXATTRIB2DPROC)load("glVertexAttrib2d");
1855+ glad_glVertexAttrib2dv = (PFNGLVERTEXATTRIB2DVPROC)load("glVertexAttrib2dv");
1856+ glad_glVertexAttrib2f = (PFNGLVERTEXATTRIB2FPROC)load("glVertexAttrib2f");
1857+ glad_glVertexAttrib2fv = (PFNGLVERTEXATTRIB2FVPROC)load("glVertexAttrib2fv");
1858+ glad_glVertexAttrib2s = (PFNGLVERTEXATTRIB2SPROC)load("glVertexAttrib2s");
1859+ glad_glVertexAttrib2sv = (PFNGLVERTEXATTRIB2SVPROC)load("glVertexAttrib2sv");
1860+ glad_glVertexAttrib3d = (PFNGLVERTEXATTRIB3DPROC)load("glVertexAttrib3d");
1861+ glad_glVertexAttrib3dv = (PFNGLVERTEXATTRIB3DVPROC)load("glVertexAttrib3dv");
1862+ glad_glVertexAttrib3f = (PFNGLVERTEXATTRIB3FPROC)load("glVertexAttrib3f");
1863+ glad_glVertexAttrib3fv = (PFNGLVERTEXATTRIB3FVPROC)load("glVertexAttrib3fv");
1864+ glad_glVertexAttrib3s = (PFNGLVERTEXATTRIB3SPROC)load("glVertexAttrib3s");
1865+ glad_glVertexAttrib3sv = (PFNGLVERTEXATTRIB3SVPROC)load("glVertexAttrib3sv");
1866+ glad_glVertexAttrib4Nbv = (PFNGLVERTEXATTRIB4NBVPROC)load("glVertexAttrib4Nbv");
1867+ glad_glVertexAttrib4Niv = (PFNGLVERTEXATTRIB4NIVPROC)load("glVertexAttrib4Niv");
1868+ glad_glVertexAttrib4Nsv = (PFNGLVERTEXATTRIB4NSVPROC)load("glVertexAttrib4Nsv");
1869+ glad_glVertexAttrib4Nub = (PFNGLVERTEXATTRIB4NUBPROC)load("glVertexAttrib4Nub");
1870+ glad_glVertexAttrib4Nubv = (PFNGLVERTEXATTRIB4NUBVPROC)load("glVertexAttrib4Nubv");
1871+ glad_glVertexAttrib4Nuiv = (PFNGLVERTEXATTRIB4NUIVPROC)load("glVertexAttrib4Nuiv");
1872+ glad_glVertexAttrib4Nusv = (PFNGLVERTEXATTRIB4NUSVPROC)load("glVertexAttrib4Nusv");
1873+ glad_glVertexAttrib4bv = (PFNGLVERTEXATTRIB4BVPROC)load("glVertexAttrib4bv");
1874+ glad_glVertexAttrib4d = (PFNGLVERTEXATTRIB4DPROC)load("glVertexAttrib4d");
1875+ glad_glVertexAttrib4dv = (PFNGLVERTEXATTRIB4DVPROC)load("glVertexAttrib4dv");
1876+ glad_glVertexAttrib4f = (PFNGLVERTEXATTRIB4FPROC)load("glVertexAttrib4f");
1877+ glad_glVertexAttrib4fv = (PFNGLVERTEXATTRIB4FVPROC)load("glVertexAttrib4fv");
1878+ glad_glVertexAttrib4iv = (PFNGLVERTEXATTRIB4IVPROC)load("glVertexAttrib4iv");
1879+ glad_glVertexAttrib4s = (PFNGLVERTEXATTRIB4SPROC)load("glVertexAttrib4s");
1880+ glad_glVertexAttrib4sv = (PFNGLVERTEXATTRIB4SVPROC)load("glVertexAttrib4sv");
1881+ glad_glVertexAttrib4ubv = (PFNGLVERTEXATTRIB4UBVPROC)load("glVertexAttrib4ubv");
1882+ glad_glVertexAttrib4uiv = (PFNGLVERTEXATTRIB4UIVPROC)load("glVertexAttrib4uiv");
1883+ glad_glVertexAttrib4usv = (PFNGLVERTEXATTRIB4USVPROC)load("glVertexAttrib4usv");
1884+ glad_glVertexAttribPointer = (PFNGLVERTEXATTRIBPOINTERPROC)load("glVertexAttribPointer");
1885+}
1886+static void load_GL_VERSION_2_1(GLADloadproc load) {
1887+ if(!GLAD_GL_VERSION_2_1) return;
1888+ glad_glUniformMatrix2x3fv = (PFNGLUNIFORMMATRIX2X3FVPROC)load("glUniformMatrix2x3fv");
1889+ glad_glUniformMatrix3x2fv = (PFNGLUNIFORMMATRIX3X2FVPROC)load("glUniformMatrix3x2fv");
1890+ glad_glUniformMatrix2x4fv = (PFNGLUNIFORMMATRIX2X4FVPROC)load("glUniformMatrix2x4fv");
1891+ glad_glUniformMatrix4x2fv = (PFNGLUNIFORMMATRIX4X2FVPROC)load("glUniformMatrix4x2fv");
1892+ glad_glUniformMatrix3x4fv = (PFNGLUNIFORMMATRIX3X4FVPROC)load("glUniformMatrix3x4fv");
1893+ glad_glUniformMatrix4x3fv = (PFNGLUNIFORMMATRIX4X3FVPROC)load("glUniformMatrix4x3fv");
1894+}
1895+static void load_GL_VERSION_3_0(GLADloadproc load) {
1896+ if(!GLAD_GL_VERSION_3_0) return;
1897+ glad_glColorMaski = (PFNGLCOLORMASKIPROC)load("glColorMaski");
1898+ glad_glGetBooleani_v = (PFNGLGETBOOLEANI_VPROC)load("glGetBooleani_v");
1899+ glad_glGetIntegeri_v = (PFNGLGETINTEGERI_VPROC)load("glGetIntegeri_v");
1900+ glad_glEnablei = (PFNGLENABLEIPROC)load("glEnablei");
1901+ glad_glDisablei = (PFNGLDISABLEIPROC)load("glDisablei");
1902+ glad_glIsEnabledi = (PFNGLISENABLEDIPROC)load("glIsEnabledi");
1903+ glad_glBeginTransformFeedback = (PFNGLBEGINTRANSFORMFEEDBACKPROC)load("glBeginTransformFeedback");
1904+ glad_glEndTransformFeedback = (PFNGLENDTRANSFORMFEEDBACKPROC)load("glEndTransformFeedback");
1905+ glad_glBindBufferRange = (PFNGLBINDBUFFERRANGEPROC)load("glBindBufferRange");
1906+ glad_glBindBufferBase = (PFNGLBINDBUFFERBASEPROC)load("glBindBufferBase");
1907+ glad_glTransformFeedbackVaryings = (PFNGLTRANSFORMFEEDBACKVARYINGSPROC)load("glTransformFeedbackVaryings");
1908+ glad_glGetTransformFeedbackVarying = (PFNGLGETTRANSFORMFEEDBACKVARYINGPROC)load("glGetTransformFeedbackVarying");
1909+ glad_glClampColor = (PFNGLCLAMPCOLORPROC)load("glClampColor");
1910+ glad_glBeginConditionalRender = (PFNGLBEGINCONDITIONALRENDERPROC)load("glBeginConditionalRender");
1911+ glad_glEndConditionalRender = (PFNGLENDCONDITIONALRENDERPROC)load("glEndConditionalRender");
1912+ glad_glVertexAttribIPointer = (PFNGLVERTEXATTRIBIPOINTERPROC)load("glVertexAttribIPointer");
1913+ glad_glGetVertexAttribIiv = (PFNGLGETVERTEXATTRIBIIVPROC)load("glGetVertexAttribIiv");
1914+ glad_glGetVertexAttribIuiv = (PFNGLGETVERTEXATTRIBIUIVPROC)load("glGetVertexAttribIuiv");
1915+ glad_glVertexAttribI1i = (PFNGLVERTEXATTRIBI1IPROC)load("glVertexAttribI1i");
1916+ glad_glVertexAttribI2i = (PFNGLVERTEXATTRIBI2IPROC)load("glVertexAttribI2i");
1917+ glad_glVertexAttribI3i = (PFNGLVERTEXATTRIBI3IPROC)load("glVertexAttribI3i");
1918+ glad_glVertexAttribI4i = (PFNGLVERTEXATTRIBI4IPROC)load("glVertexAttribI4i");
1919+ glad_glVertexAttribI1ui = (PFNGLVERTEXATTRIBI1UIPROC)load("glVertexAttribI1ui");
1920+ glad_glVertexAttribI2ui = (PFNGLVERTEXATTRIBI2UIPROC)load("glVertexAttribI2ui");
1921+ glad_glVertexAttribI3ui = (PFNGLVERTEXATTRIBI3UIPROC)load("glVertexAttribI3ui");
1922+ glad_glVertexAttribI4ui = (PFNGLVERTEXATTRIBI4UIPROC)load("glVertexAttribI4ui");
1923+ glad_glVertexAttribI1iv = (PFNGLVERTEXATTRIBI1IVPROC)load("glVertexAttribI1iv");
1924+ glad_glVertexAttribI2iv = (PFNGLVERTEXATTRIBI2IVPROC)load("glVertexAttribI2iv");
1925+ glad_glVertexAttribI3iv = (PFNGLVERTEXATTRIBI3IVPROC)load("glVertexAttribI3iv");
1926+ glad_glVertexAttribI4iv = (PFNGLVERTEXATTRIBI4IVPROC)load("glVertexAttribI4iv");
1927+ glad_glVertexAttribI1uiv = (PFNGLVERTEXATTRIBI1UIVPROC)load("glVertexAttribI1uiv");
1928+ glad_glVertexAttribI2uiv = (PFNGLVERTEXATTRIBI2UIVPROC)load("glVertexAttribI2uiv");
1929+ glad_glVertexAttribI3uiv = (PFNGLVERTEXATTRIBI3UIVPROC)load("glVertexAttribI3uiv");
1930+ glad_glVertexAttribI4uiv = (PFNGLVERTEXATTRIBI4UIVPROC)load("glVertexAttribI4uiv");
1931+ glad_glVertexAttribI4bv = (PFNGLVERTEXATTRIBI4BVPROC)load("glVertexAttribI4bv");
1932+ glad_glVertexAttribI4sv = (PFNGLVERTEXATTRIBI4SVPROC)load("glVertexAttribI4sv");
1933+ glad_glVertexAttribI4ubv = (PFNGLVERTEXATTRIBI4UBVPROC)load("glVertexAttribI4ubv");
1934+ glad_glVertexAttribI4usv = (PFNGLVERTEXATTRIBI4USVPROC)load("glVertexAttribI4usv");
1935+ glad_glGetUniformuiv = (PFNGLGETUNIFORMUIVPROC)load("glGetUniformuiv");
1936+ glad_glBindFragDataLocation = (PFNGLBINDFRAGDATALOCATIONPROC)load("glBindFragDataLocation");
1937+ glad_glGetFragDataLocation = (PFNGLGETFRAGDATALOCATIONPROC)load("glGetFragDataLocation");
1938+ glad_glUniform1ui = (PFNGLUNIFORM1UIPROC)load("glUniform1ui");
1939+ glad_glUniform2ui = (PFNGLUNIFORM2UIPROC)load("glUniform2ui");
1940+ glad_glUniform3ui = (PFNGLUNIFORM3UIPROC)load("glUniform3ui");
1941+ glad_glUniform4ui = (PFNGLUNIFORM4UIPROC)load("glUniform4ui");
1942+ glad_glUniform1uiv = (PFNGLUNIFORM1UIVPROC)load("glUniform1uiv");
1943+ glad_glUniform2uiv = (PFNGLUNIFORM2UIVPROC)load("glUniform2uiv");
1944+ glad_glUniform3uiv = (PFNGLUNIFORM3UIVPROC)load("glUniform3uiv");
1945+ glad_glUniform4uiv = (PFNGLUNIFORM4UIVPROC)load("glUniform4uiv");
1946+ glad_glTexParameterIiv = (PFNGLTEXPARAMETERIIVPROC)load("glTexParameterIiv");
1947+ glad_glTexParameterIuiv = (PFNGLTEXPARAMETERIUIVPROC)load("glTexParameterIuiv");
1948+ glad_glGetTexParameterIiv = (PFNGLGETTEXPARAMETERIIVPROC)load("glGetTexParameterIiv");
1949+ glad_glGetTexParameterIuiv = (PFNGLGETTEXPARAMETERIUIVPROC)load("glGetTexParameterIuiv");
1950+ glad_glClearBufferiv = (PFNGLCLEARBUFFERIVPROC)load("glClearBufferiv");
1951+ glad_glClearBufferuiv = (PFNGLCLEARBUFFERUIVPROC)load("glClearBufferuiv");
1952+ glad_glClearBufferfv = (PFNGLCLEARBUFFERFVPROC)load("glClearBufferfv");
1953+ glad_glClearBufferfi = (PFNGLCLEARBUFFERFIPROC)load("glClearBufferfi");
1954+ glad_glGetStringi = (PFNGLGETSTRINGIPROC)load("glGetStringi");
1955+ glad_glIsRenderbuffer = (PFNGLISRENDERBUFFERPROC)load("glIsRenderbuffer");
1956+ glad_glBindRenderbuffer = (PFNGLBINDRENDERBUFFERPROC)load("glBindRenderbuffer");
1957+ glad_glDeleteRenderbuffers = (PFNGLDELETERENDERBUFFERSPROC)load("glDeleteRenderbuffers");
1958+ glad_glGenRenderbuffers = (PFNGLGENRENDERBUFFERSPROC)load("glGenRenderbuffers");
1959+ glad_glRenderbufferStorage = (PFNGLRENDERBUFFERSTORAGEPROC)load("glRenderbufferStorage");
1960+ glad_glGetRenderbufferParameteriv = (PFNGLGETRENDERBUFFERPARAMETERIVPROC)load("glGetRenderbufferParameteriv");
1961+ glad_glIsFramebuffer = (PFNGLISFRAMEBUFFERPROC)load("glIsFramebuffer");
1962+ glad_glBindFramebuffer = (PFNGLBINDFRAMEBUFFERPROC)load("glBindFramebuffer");
1963+ glad_glDeleteFramebuffers = (PFNGLDELETEFRAMEBUFFERSPROC)load("glDeleteFramebuffers");
1964+ glad_glGenFramebuffers = (PFNGLGENFRAMEBUFFERSPROC)load("glGenFramebuffers");
1965+ glad_glCheckFramebufferStatus = (PFNGLCHECKFRAMEBUFFERSTATUSPROC)load("glCheckFramebufferStatus");
1966+ glad_glFramebufferTexture1D = (PFNGLFRAMEBUFFERTEXTURE1DPROC)load("glFramebufferTexture1D");
1967+ glad_glFramebufferTexture2D = (PFNGLFRAMEBUFFERTEXTURE2DPROC)load("glFramebufferTexture2D");
1968+ glad_glFramebufferTexture3D = (PFNGLFRAMEBUFFERTEXTURE3DPROC)load("glFramebufferTexture3D");
1969+ glad_glFramebufferRenderbuffer = (PFNGLFRAMEBUFFERRENDERBUFFERPROC)load("glFramebufferRenderbuffer");
1970+ glad_glGetFramebufferAttachmentParameteriv = (PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC)load("glGetFramebufferAttachmentParameteriv");
1971+ glad_glGenerateMipmap = (PFNGLGENERATEMIPMAPPROC)load("glGenerateMipmap");
1972+ glad_glBlitFramebuffer = (PFNGLBLITFRAMEBUFFERPROC)load("glBlitFramebuffer");
1973+ glad_glRenderbufferStorageMultisample = (PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC)load("glRenderbufferStorageMultisample");
1974+ glad_glFramebufferTextureLayer = (PFNGLFRAMEBUFFERTEXTURELAYERPROC)load("glFramebufferTextureLayer");
1975+ glad_glMapBufferRange = (PFNGLMAPBUFFERRANGEPROC)load("glMapBufferRange");
1976+ glad_glFlushMappedBufferRange = (PFNGLFLUSHMAPPEDBUFFERRANGEPROC)load("glFlushMappedBufferRange");
1977+ glad_glBindVertexArray = (PFNGLBINDVERTEXARRAYPROC)load("glBindVertexArray");
1978+ glad_glDeleteVertexArrays = (PFNGLDELETEVERTEXARRAYSPROC)load("glDeleteVertexArrays");
1979+ glad_glGenVertexArrays = (PFNGLGENVERTEXARRAYSPROC)load("glGenVertexArrays");
1980+ glad_glIsVertexArray = (PFNGLISVERTEXARRAYPROC)load("glIsVertexArray");
1981+}
1982+static void load_GL_VERSION_3_1(GLADloadproc load) {
1983+ if(!GLAD_GL_VERSION_3_1) return;
1984+ glad_glDrawArraysInstanced = (PFNGLDRAWARRAYSINSTANCEDPROC)load("glDrawArraysInstanced");
1985+ glad_glDrawElementsInstanced = (PFNGLDRAWELEMENTSINSTANCEDPROC)load("glDrawElementsInstanced");
1986+ glad_glTexBuffer = (PFNGLTEXBUFFERPROC)load("glTexBuffer");
1987+ glad_glPrimitiveRestartIndex = (PFNGLPRIMITIVERESTARTINDEXPROC)load("glPrimitiveRestartIndex");
1988+ glad_glCopyBufferSubData = (PFNGLCOPYBUFFERSUBDATAPROC)load("glCopyBufferSubData");
1989+ glad_glGetUniformIndices = (PFNGLGETUNIFORMINDICESPROC)load("glGetUniformIndices");
1990+ glad_glGetActiveUniformsiv = (PFNGLGETACTIVEUNIFORMSIVPROC)load("glGetActiveUniformsiv");
1991+ glad_glGetActiveUniformName = (PFNGLGETACTIVEUNIFORMNAMEPROC)load("glGetActiveUniformName");
1992+ glad_glGetUniformBlockIndex = (PFNGLGETUNIFORMBLOCKINDEXPROC)load("glGetUniformBlockIndex");
1993+ glad_glGetActiveUniformBlockiv = (PFNGLGETACTIVEUNIFORMBLOCKIVPROC)load("glGetActiveUniformBlockiv");
1994+ glad_glGetActiveUniformBlockName = (PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC)load("glGetActiveUniformBlockName");
1995+ glad_glUniformBlockBinding = (PFNGLUNIFORMBLOCKBINDINGPROC)load("glUniformBlockBinding");
1996+ glad_glBindBufferRange = (PFNGLBINDBUFFERRANGEPROC)load("glBindBufferRange");
1997+ glad_glBindBufferBase = (PFNGLBINDBUFFERBASEPROC)load("glBindBufferBase");
1998+ glad_glGetIntegeri_v = (PFNGLGETINTEGERI_VPROC)load("glGetIntegeri_v");
1999+}
2000+static void load_GL_VERSION_3_2(GLADloadproc load) {
2001+ if(!GLAD_GL_VERSION_3_2) return;
2002+ glad_glDrawElementsBaseVertex = (PFNGLDRAWELEMENTSBASEVERTEXPROC)load("glDrawElementsBaseVertex");
2003+ glad_glDrawRangeElementsBaseVertex = (PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC)load("glDrawRangeElementsBaseVertex");
2004+ glad_glDrawElementsInstancedBaseVertex = (PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC)load("glDrawElementsInstancedBaseVertex");
2005+ glad_glMultiDrawElementsBaseVertex = (PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC)load("glMultiDrawElementsBaseVertex");
2006+ glad_glProvokingVertex = (PFNGLPROVOKINGVERTEXPROC)load("glProvokingVertex");
2007+ glad_glFenceSync = (PFNGLFENCESYNCPROC)load("glFenceSync");
2008+ glad_glIsSync = (PFNGLISSYNCPROC)load("glIsSync");
2009+ glad_glDeleteSync = (PFNGLDELETESYNCPROC)load("glDeleteSync");
2010+ glad_glClientWaitSync = (PFNGLCLIENTWAITSYNCPROC)load("glClientWaitSync");
2011+ glad_glWaitSync = (PFNGLWAITSYNCPROC)load("glWaitSync");
2012+ glad_glGetInteger64v = (PFNGLGETINTEGER64VPROC)load("glGetInteger64v");
2013+ glad_glGetSynciv = (PFNGLGETSYNCIVPROC)load("glGetSynciv");
2014+ glad_glGetInteger64i_v = (PFNGLGETINTEGER64I_VPROC)load("glGetInteger64i_v");
2015+ glad_glGetBufferParameteri64v = (PFNGLGETBUFFERPARAMETERI64VPROC)load("glGetBufferParameteri64v");
2016+ glad_glFramebufferTexture = (PFNGLFRAMEBUFFERTEXTUREPROC)load("glFramebufferTexture");
2017+ glad_glTexImage2DMultisample = (PFNGLTEXIMAGE2DMULTISAMPLEPROC)load("glTexImage2DMultisample");
2018+ glad_glTexImage3DMultisample = (PFNGLTEXIMAGE3DMULTISAMPLEPROC)load("glTexImage3DMultisample");
2019+ glad_glGetMultisamplefv = (PFNGLGETMULTISAMPLEFVPROC)load("glGetMultisamplefv");
2020+ glad_glSampleMaski = (PFNGLSAMPLEMASKIPROC)load("glSampleMaski");
2021+}
2022+static void load_GL_VERSION_3_3(GLADloadproc load) {
2023+ if(!GLAD_GL_VERSION_3_3) return;
2024+ glad_glBindFragDataLocationIndexed = (PFNGLBINDFRAGDATALOCATIONINDEXEDPROC)load("glBindFragDataLocationIndexed");
2025+ glad_glGetFragDataIndex = (PFNGLGETFRAGDATAINDEXPROC)load("glGetFragDataIndex");
2026+ glad_glGenSamplers = (PFNGLGENSAMPLERSPROC)load("glGenSamplers");
2027+ glad_glDeleteSamplers = (PFNGLDELETESAMPLERSPROC)load("glDeleteSamplers");
2028+ glad_glIsSampler = (PFNGLISSAMPLERPROC)load("glIsSampler");
2029+ glad_glBindSampler = (PFNGLBINDSAMPLERPROC)load("glBindSampler");
2030+ glad_glSamplerParameteri = (PFNGLSAMPLERPARAMETERIPROC)load("glSamplerParameteri");
2031+ glad_glSamplerParameteriv = (PFNGLSAMPLERPARAMETERIVPROC)load("glSamplerParameteriv");
2032+ glad_glSamplerParameterf = (PFNGLSAMPLERPARAMETERFPROC)load("glSamplerParameterf");
2033+ glad_glSamplerParameterfv = (PFNGLSAMPLERPARAMETERFVPROC)load("glSamplerParameterfv");
2034+ glad_glSamplerParameterIiv = (PFNGLSAMPLERPARAMETERIIVPROC)load("glSamplerParameterIiv");
2035+ glad_glSamplerParameterIuiv = (PFNGLSAMPLERPARAMETERIUIVPROC)load("glSamplerParameterIuiv");
2036+ glad_glGetSamplerParameteriv = (PFNGLGETSAMPLERPARAMETERIVPROC)load("glGetSamplerParameteriv");
2037+ glad_glGetSamplerParameterIiv = (PFNGLGETSAMPLERPARAMETERIIVPROC)load("glGetSamplerParameterIiv");
2038+ glad_glGetSamplerParameterfv = (PFNGLGETSAMPLERPARAMETERFVPROC)load("glGetSamplerParameterfv");
2039+ glad_glGetSamplerParameterIuiv = (PFNGLGETSAMPLERPARAMETERIUIVPROC)load("glGetSamplerParameterIuiv");
2040+ glad_glQueryCounter = (PFNGLQUERYCOUNTERPROC)load("glQueryCounter");
2041+ glad_glGetQueryObjecti64v = (PFNGLGETQUERYOBJECTI64VPROC)load("glGetQueryObjecti64v");
2042+ glad_glGetQueryObjectui64v = (PFNGLGETQUERYOBJECTUI64VPROC)load("glGetQueryObjectui64v");
2043+ glad_glVertexAttribDivisor = (PFNGLVERTEXATTRIBDIVISORPROC)load("glVertexAttribDivisor");
2044+ glad_glVertexAttribP1ui = (PFNGLVERTEXATTRIBP1UIPROC)load("glVertexAttribP1ui");
2045+ glad_glVertexAttribP1uiv = (PFNGLVERTEXATTRIBP1UIVPROC)load("glVertexAttribP1uiv");
2046+ glad_glVertexAttribP2ui = (PFNGLVERTEXATTRIBP2UIPROC)load("glVertexAttribP2ui");
2047+ glad_glVertexAttribP2uiv = (PFNGLVERTEXATTRIBP2UIVPROC)load("glVertexAttribP2uiv");
2048+ glad_glVertexAttribP3ui = (PFNGLVERTEXATTRIBP3UIPROC)load("glVertexAttribP3ui");
2049+ glad_glVertexAttribP3uiv = (PFNGLVERTEXATTRIBP3UIVPROC)load("glVertexAttribP3uiv");
2050+ glad_glVertexAttribP4ui = (PFNGLVERTEXATTRIBP4UIPROC)load("glVertexAttribP4ui");
2051+ glad_glVertexAttribP4uiv = (PFNGLVERTEXATTRIBP4UIVPROC)load("glVertexAttribP4uiv");
2052+ glad_glVertexP2ui = (PFNGLVERTEXP2UIPROC)load("glVertexP2ui");
2053+ glad_glVertexP2uiv = (PFNGLVERTEXP2UIVPROC)load("glVertexP2uiv");
2054+ glad_glVertexP3ui = (PFNGLVERTEXP3UIPROC)load("glVertexP3ui");
2055+ glad_glVertexP3uiv = (PFNGLVERTEXP3UIVPROC)load("glVertexP3uiv");
2056+ glad_glVertexP4ui = (PFNGLVERTEXP4UIPROC)load("glVertexP4ui");
2057+ glad_glVertexP4uiv = (PFNGLVERTEXP4UIVPROC)load("glVertexP4uiv");
2058+ glad_glTexCoordP1ui = (PFNGLTEXCOORDP1UIPROC)load("glTexCoordP1ui");
2059+ glad_glTexCoordP1uiv = (PFNGLTEXCOORDP1UIVPROC)load("glTexCoordP1uiv");
2060+ glad_glTexCoordP2ui = (PFNGLTEXCOORDP2UIPROC)load("glTexCoordP2ui");
2061+ glad_glTexCoordP2uiv = (PFNGLTEXCOORDP2UIVPROC)load("glTexCoordP2uiv");
2062+ glad_glTexCoordP3ui = (PFNGLTEXCOORDP3UIPROC)load("glTexCoordP3ui");
2063+ glad_glTexCoordP3uiv = (PFNGLTEXCOORDP3UIVPROC)load("glTexCoordP3uiv");
2064+ glad_glTexCoordP4ui = (PFNGLTEXCOORDP4UIPROC)load("glTexCoordP4ui");
2065+ glad_glTexCoordP4uiv = (PFNGLTEXCOORDP4UIVPROC)load("glTexCoordP4uiv");
2066+ glad_glMultiTexCoordP1ui = (PFNGLMULTITEXCOORDP1UIPROC)load("glMultiTexCoordP1ui");
2067+ glad_glMultiTexCoordP1uiv = (PFNGLMULTITEXCOORDP1UIVPROC)load("glMultiTexCoordP1uiv");
2068+ glad_glMultiTexCoordP2ui = (PFNGLMULTITEXCOORDP2UIPROC)load("glMultiTexCoordP2ui");
2069+ glad_glMultiTexCoordP2uiv = (PFNGLMULTITEXCOORDP2UIVPROC)load("glMultiTexCoordP2uiv");
2070+ glad_glMultiTexCoordP3ui = (PFNGLMULTITEXCOORDP3UIPROC)load("glMultiTexCoordP3ui");
2071+ glad_glMultiTexCoordP3uiv = (PFNGLMULTITEXCOORDP3UIVPROC)load("glMultiTexCoordP3uiv");
2072+ glad_glMultiTexCoordP4ui = (PFNGLMULTITEXCOORDP4UIPROC)load("glMultiTexCoordP4ui");
2073+ glad_glMultiTexCoordP4uiv = (PFNGLMULTITEXCOORDP4UIVPROC)load("glMultiTexCoordP4uiv");
2074+ glad_glNormalP3ui = (PFNGLNORMALP3UIPROC)load("glNormalP3ui");
2075+ glad_glNormalP3uiv = (PFNGLNORMALP3UIVPROC)load("glNormalP3uiv");
2076+ glad_glColorP3ui = (PFNGLCOLORP3UIPROC)load("glColorP3ui");
2077+ glad_glColorP3uiv = (PFNGLCOLORP3UIVPROC)load("glColorP3uiv");
2078+ glad_glColorP4ui = (PFNGLCOLORP4UIPROC)load("glColorP4ui");
2079+ glad_glColorP4uiv = (PFNGLCOLORP4UIVPROC)load("glColorP4uiv");
2080+ glad_glSecondaryColorP3ui = (PFNGLSECONDARYCOLORP3UIPROC)load("glSecondaryColorP3ui");
2081+ glad_glSecondaryColorP3uiv = (PFNGLSECONDARYCOLORP3UIVPROC)load("glSecondaryColorP3uiv");
2082+}
2083+static void load_GL_VERSION_4_0(GLADloadproc load) {
2084+ if(!GLAD_GL_VERSION_4_0) return;
2085+ glad_glMinSampleShading = (PFNGLMINSAMPLESHADINGPROC)load("glMinSampleShading");
2086+ glad_glBlendEquationi = (PFNGLBLENDEQUATIONIPROC)load("glBlendEquationi");
2087+ glad_glBlendEquationSeparatei = (PFNGLBLENDEQUATIONSEPARATEIPROC)load("glBlendEquationSeparatei");
2088+ glad_glBlendFunci = (PFNGLBLENDFUNCIPROC)load("glBlendFunci");
2089+ glad_glBlendFuncSeparatei = (PFNGLBLENDFUNCSEPARATEIPROC)load("glBlendFuncSeparatei");
2090+ glad_glDrawArraysIndirect = (PFNGLDRAWARRAYSINDIRECTPROC)load("glDrawArraysIndirect");
2091+ glad_glDrawElementsIndirect = (PFNGLDRAWELEMENTSINDIRECTPROC)load("glDrawElementsIndirect");
2092+ glad_glUniform1d = (PFNGLUNIFORM1DPROC)load("glUniform1d");
2093+ glad_glUniform2d = (PFNGLUNIFORM2DPROC)load("glUniform2d");
2094+ glad_glUniform3d = (PFNGLUNIFORM3DPROC)load("glUniform3d");
2095+ glad_glUniform4d = (PFNGLUNIFORM4DPROC)load("glUniform4d");
2096+ glad_glUniform1dv = (PFNGLUNIFORM1DVPROC)load("glUniform1dv");
2097+ glad_glUniform2dv = (PFNGLUNIFORM2DVPROC)load("glUniform2dv");
2098+ glad_glUniform3dv = (PFNGLUNIFORM3DVPROC)load("glUniform3dv");
2099+ glad_glUniform4dv = (PFNGLUNIFORM4DVPROC)load("glUniform4dv");
2100+ glad_glUniformMatrix2dv = (PFNGLUNIFORMMATRIX2DVPROC)load("glUniformMatrix2dv");
2101+ glad_glUniformMatrix3dv = (PFNGLUNIFORMMATRIX3DVPROC)load("glUniformMatrix3dv");
2102+ glad_glUniformMatrix4dv = (PFNGLUNIFORMMATRIX4DVPROC)load("glUniformMatrix4dv");
2103+ glad_glUniformMatrix2x3dv = (PFNGLUNIFORMMATRIX2X3DVPROC)load("glUniformMatrix2x3dv");
2104+ glad_glUniformMatrix2x4dv = (PFNGLUNIFORMMATRIX2X4DVPROC)load("glUniformMatrix2x4dv");
2105+ glad_glUniformMatrix3x2dv = (PFNGLUNIFORMMATRIX3X2DVPROC)load("glUniformMatrix3x2dv");
2106+ glad_glUniformMatrix3x4dv = (PFNGLUNIFORMMATRIX3X4DVPROC)load("glUniformMatrix3x4dv");
2107+ glad_glUniformMatrix4x2dv = (PFNGLUNIFORMMATRIX4X2DVPROC)load("glUniformMatrix4x2dv");
2108+ glad_glUniformMatrix4x3dv = (PFNGLUNIFORMMATRIX4X3DVPROC)load("glUniformMatrix4x3dv");
2109+ glad_glGetUniformdv = (PFNGLGETUNIFORMDVPROC)load("glGetUniformdv");
2110+ glad_glGetSubroutineUniformLocation = (PFNGLGETSUBROUTINEUNIFORMLOCATIONPROC)load("glGetSubroutineUniformLocation");
2111+ glad_glGetSubroutineIndex = (PFNGLGETSUBROUTINEINDEXPROC)load("glGetSubroutineIndex");
2112+ glad_glGetActiveSubroutineUniformiv = (PFNGLGETACTIVESUBROUTINEUNIFORMIVPROC)load("glGetActiveSubroutineUniformiv");
2113+ glad_glGetActiveSubroutineUniformName = (PFNGLGETACTIVESUBROUTINEUNIFORMNAMEPROC)load("glGetActiveSubroutineUniformName");
2114+ glad_glGetActiveSubroutineName = (PFNGLGETACTIVESUBROUTINENAMEPROC)load("glGetActiveSubroutineName");
2115+ glad_glUniformSubroutinesuiv = (PFNGLUNIFORMSUBROUTINESUIVPROC)load("glUniformSubroutinesuiv");
2116+ glad_glGetUniformSubroutineuiv = (PFNGLGETUNIFORMSUBROUTINEUIVPROC)load("glGetUniformSubroutineuiv");
2117+ glad_glGetProgramStageiv = (PFNGLGETPROGRAMSTAGEIVPROC)load("glGetProgramStageiv");
2118+ glad_glPatchParameteri = (PFNGLPATCHPARAMETERIPROC)load("glPatchParameteri");
2119+ glad_glPatchParameterfv = (PFNGLPATCHPARAMETERFVPROC)load("glPatchParameterfv");
2120+ glad_glBindTransformFeedback = (PFNGLBINDTRANSFORMFEEDBACKPROC)load("glBindTransformFeedback");
2121+ glad_glDeleteTransformFeedbacks = (PFNGLDELETETRANSFORMFEEDBACKSPROC)load("glDeleteTransformFeedbacks");
2122+ glad_glGenTransformFeedbacks = (PFNGLGENTRANSFORMFEEDBACKSPROC)load("glGenTransformFeedbacks");
2123+ glad_glIsTransformFeedback = (PFNGLISTRANSFORMFEEDBACKPROC)load("glIsTransformFeedback");
2124+ glad_glPauseTransformFeedback = (PFNGLPAUSETRANSFORMFEEDBACKPROC)load("glPauseTransformFeedback");
2125+ glad_glResumeTransformFeedback = (PFNGLRESUMETRANSFORMFEEDBACKPROC)load("glResumeTransformFeedback");
2126+ glad_glDrawTransformFeedback = (PFNGLDRAWTRANSFORMFEEDBACKPROC)load("glDrawTransformFeedback");
2127+ glad_glDrawTransformFeedbackStream = (PFNGLDRAWTRANSFORMFEEDBACKSTREAMPROC)load("glDrawTransformFeedbackStream");
2128+ glad_glBeginQueryIndexed = (PFNGLBEGINQUERYINDEXEDPROC)load("glBeginQueryIndexed");
2129+ glad_glEndQueryIndexed = (PFNGLENDQUERYINDEXEDPROC)load("glEndQueryIndexed");
2130+ glad_glGetQueryIndexediv = (PFNGLGETQUERYINDEXEDIVPROC)load("glGetQueryIndexediv");
2131+}
2132+static void load_GL_VERSION_4_1(GLADloadproc load) {
2133+ if(!GLAD_GL_VERSION_4_1) return;
2134+ glad_glReleaseShaderCompiler = (PFNGLRELEASESHADERCOMPILERPROC)load("glReleaseShaderCompiler");
2135+ glad_glShaderBinary = (PFNGLSHADERBINARYPROC)load("glShaderBinary");
2136+ glad_glGetShaderPrecisionFormat = (PFNGLGETSHADERPRECISIONFORMATPROC)load("glGetShaderPrecisionFormat");
2137+ glad_glDepthRangef = (PFNGLDEPTHRANGEFPROC)load("glDepthRangef");
2138+ glad_glClearDepthf = (PFNGLCLEARDEPTHFPROC)load("glClearDepthf");
2139+ glad_glGetProgramBinary = (PFNGLGETPROGRAMBINARYPROC)load("glGetProgramBinary");
2140+ glad_glProgramBinary = (PFNGLPROGRAMBINARYPROC)load("glProgramBinary");
2141+ glad_glProgramParameteri = (PFNGLPROGRAMPARAMETERIPROC)load("glProgramParameteri");
2142+ glad_glUseProgramStages = (PFNGLUSEPROGRAMSTAGESPROC)load("glUseProgramStages");
2143+ glad_glActiveShaderProgram = (PFNGLACTIVESHADERPROGRAMPROC)load("glActiveShaderProgram");
2144+ glad_glCreateShaderProgramv = (PFNGLCREATESHADERPROGRAMVPROC)load("glCreateShaderProgramv");
2145+ glad_glBindProgramPipeline = (PFNGLBINDPROGRAMPIPELINEPROC)load("glBindProgramPipeline");
2146+ glad_glDeleteProgramPipelines = (PFNGLDELETEPROGRAMPIPELINESPROC)load("glDeleteProgramPipelines");
2147+ glad_glGenProgramPipelines = (PFNGLGENPROGRAMPIPELINESPROC)load("glGenProgramPipelines");
2148+ glad_glIsProgramPipeline = (PFNGLISPROGRAMPIPELINEPROC)load("glIsProgramPipeline");
2149+ glad_glGetProgramPipelineiv = (PFNGLGETPROGRAMPIPELINEIVPROC)load("glGetProgramPipelineiv");
2150+ glad_glProgramParameteri = (PFNGLPROGRAMPARAMETERIPROC)load("glProgramParameteri");
2151+ glad_glProgramUniform1i = (PFNGLPROGRAMUNIFORM1IPROC)load("glProgramUniform1i");
2152+ glad_glProgramUniform1iv = (PFNGLPROGRAMUNIFORM1IVPROC)load("glProgramUniform1iv");
2153+ glad_glProgramUniform1f = (PFNGLPROGRAMUNIFORM1FPROC)load("glProgramUniform1f");
2154+ glad_glProgramUniform1fv = (PFNGLPROGRAMUNIFORM1FVPROC)load("glProgramUniform1fv");
2155+ glad_glProgramUniform1d = (PFNGLPROGRAMUNIFORM1DPROC)load("glProgramUniform1d");
2156+ glad_glProgramUniform1dv = (PFNGLPROGRAMUNIFORM1DVPROC)load("glProgramUniform1dv");
2157+ glad_glProgramUniform1ui = (PFNGLPROGRAMUNIFORM1UIPROC)load("glProgramUniform1ui");
2158+ glad_glProgramUniform1uiv = (PFNGLPROGRAMUNIFORM1UIVPROC)load("glProgramUniform1uiv");
2159+ glad_glProgramUniform2i = (PFNGLPROGRAMUNIFORM2IPROC)load("glProgramUniform2i");
2160+ glad_glProgramUniform2iv = (PFNGLPROGRAMUNIFORM2IVPROC)load("glProgramUniform2iv");
2161+ glad_glProgramUniform2f = (PFNGLPROGRAMUNIFORM2FPROC)load("glProgramUniform2f");
2162+ glad_glProgramUniform2fv = (PFNGLPROGRAMUNIFORM2FVPROC)load("glProgramUniform2fv");
2163+ glad_glProgramUniform2d = (PFNGLPROGRAMUNIFORM2DPROC)load("glProgramUniform2d");
2164+ glad_glProgramUniform2dv = (PFNGLPROGRAMUNIFORM2DVPROC)load("glProgramUniform2dv");
2165+ glad_glProgramUniform2ui = (PFNGLPROGRAMUNIFORM2UIPROC)load("glProgramUniform2ui");
2166+ glad_glProgramUniform2uiv = (PFNGLPROGRAMUNIFORM2UIVPROC)load("glProgramUniform2uiv");
2167+ glad_glProgramUniform3i = (PFNGLPROGRAMUNIFORM3IPROC)load("glProgramUniform3i");
2168+ glad_glProgramUniform3iv = (PFNGLPROGRAMUNIFORM3IVPROC)load("glProgramUniform3iv");
2169+ glad_glProgramUniform3f = (PFNGLPROGRAMUNIFORM3FPROC)load("glProgramUniform3f");
2170+ glad_glProgramUniform3fv = (PFNGLPROGRAMUNIFORM3FVPROC)load("glProgramUniform3fv");
2171+ glad_glProgramUniform3d = (PFNGLPROGRAMUNIFORM3DPROC)load("glProgramUniform3d");
2172+ glad_glProgramUniform3dv = (PFNGLPROGRAMUNIFORM3DVPROC)load("glProgramUniform3dv");
2173+ glad_glProgramUniform3ui = (PFNGLPROGRAMUNIFORM3UIPROC)load("glProgramUniform3ui");
2174+ glad_glProgramUniform3uiv = (PFNGLPROGRAMUNIFORM3UIVPROC)load("glProgramUniform3uiv");
2175+ glad_glProgramUniform4i = (PFNGLPROGRAMUNIFORM4IPROC)load("glProgramUniform4i");
2176+ glad_glProgramUniform4iv = (PFNGLPROGRAMUNIFORM4IVPROC)load("glProgramUniform4iv");
2177+ glad_glProgramUniform4f = (PFNGLPROGRAMUNIFORM4FPROC)load("glProgramUniform4f");
2178+ glad_glProgramUniform4fv = (PFNGLPROGRAMUNIFORM4FVPROC)load("glProgramUniform4fv");
2179+ glad_glProgramUniform4d = (PFNGLPROGRAMUNIFORM4DPROC)load("glProgramUniform4d");
2180+ glad_glProgramUniform4dv = (PFNGLPROGRAMUNIFORM4DVPROC)load("glProgramUniform4dv");
2181+ glad_glProgramUniform4ui = (PFNGLPROGRAMUNIFORM4UIPROC)load("glProgramUniform4ui");
2182+ glad_glProgramUniform4uiv = (PFNGLPROGRAMUNIFORM4UIVPROC)load("glProgramUniform4uiv");
2183+ glad_glProgramUniformMatrix2fv = (PFNGLPROGRAMUNIFORMMATRIX2FVPROC)load("glProgramUniformMatrix2fv");
2184+ glad_glProgramUniformMatrix3fv = (PFNGLPROGRAMUNIFORMMATRIX3FVPROC)load("glProgramUniformMatrix3fv");
2185+ glad_glProgramUniformMatrix4fv = (PFNGLPROGRAMUNIFORMMATRIX4FVPROC)load("glProgramUniformMatrix4fv");
2186+ glad_glProgramUniformMatrix2dv = (PFNGLPROGRAMUNIFORMMATRIX2DVPROC)load("glProgramUniformMatrix2dv");
2187+ glad_glProgramUniformMatrix3dv = (PFNGLPROGRAMUNIFORMMATRIX3DVPROC)load("glProgramUniformMatrix3dv");
2188+ glad_glProgramUniformMatrix4dv = (PFNGLPROGRAMUNIFORMMATRIX4DVPROC)load("glProgramUniformMatrix4dv");
2189+ glad_glProgramUniformMatrix2x3fv = (PFNGLPROGRAMUNIFORMMATRIX2X3FVPROC)load("glProgramUniformMatrix2x3fv");
2190+ glad_glProgramUniformMatrix3x2fv = (PFNGLPROGRAMUNIFORMMATRIX3X2FVPROC)load("glProgramUniformMatrix3x2fv");
2191+ glad_glProgramUniformMatrix2x4fv = (PFNGLPROGRAMUNIFORMMATRIX2X4FVPROC)load("glProgramUniformMatrix2x4fv");
2192+ glad_glProgramUniformMatrix4x2fv = (PFNGLPROGRAMUNIFORMMATRIX4X2FVPROC)load("glProgramUniformMatrix4x2fv");
2193+ glad_glProgramUniformMatrix3x4fv = (PFNGLPROGRAMUNIFORMMATRIX3X4FVPROC)load("glProgramUniformMatrix3x4fv");
2194+ glad_glProgramUniformMatrix4x3fv = (PFNGLPROGRAMUNIFORMMATRIX4X3FVPROC)load("glProgramUniformMatrix4x3fv");
2195+ glad_glProgramUniformMatrix2x3dv = (PFNGLPROGRAMUNIFORMMATRIX2X3DVPROC)load("glProgramUniformMatrix2x3dv");
2196+ glad_glProgramUniformMatrix3x2dv = (PFNGLPROGRAMUNIFORMMATRIX3X2DVPROC)load("glProgramUniformMatrix3x2dv");
2197+ glad_glProgramUniformMatrix2x4dv = (PFNGLPROGRAMUNIFORMMATRIX2X4DVPROC)load("glProgramUniformMatrix2x4dv");
2198+ glad_glProgramUniformMatrix4x2dv = (PFNGLPROGRAMUNIFORMMATRIX4X2DVPROC)load("glProgramUniformMatrix4x2dv");
2199+ glad_glProgramUniformMatrix3x4dv = (PFNGLPROGRAMUNIFORMMATRIX3X4DVPROC)load("glProgramUniformMatrix3x4dv");
2200+ glad_glProgramUniformMatrix4x3dv = (PFNGLPROGRAMUNIFORMMATRIX4X3DVPROC)load("glProgramUniformMatrix4x3dv");
2201+ glad_glValidateProgramPipeline = (PFNGLVALIDATEPROGRAMPIPELINEPROC)load("glValidateProgramPipeline");
2202+ glad_glGetProgramPipelineInfoLog = (PFNGLGETPROGRAMPIPELINEINFOLOGPROC)load("glGetProgramPipelineInfoLog");
2203+ glad_glVertexAttribL1d = (PFNGLVERTEXATTRIBL1DPROC)load("glVertexAttribL1d");
2204+ glad_glVertexAttribL2d = (PFNGLVERTEXATTRIBL2DPROC)load("glVertexAttribL2d");
2205+ glad_glVertexAttribL3d = (PFNGLVERTEXATTRIBL3DPROC)load("glVertexAttribL3d");
2206+ glad_glVertexAttribL4d = (PFNGLVERTEXATTRIBL4DPROC)load("glVertexAttribL4d");
2207+ glad_glVertexAttribL1dv = (PFNGLVERTEXATTRIBL1DVPROC)load("glVertexAttribL1dv");
2208+ glad_glVertexAttribL2dv = (PFNGLVERTEXATTRIBL2DVPROC)load("glVertexAttribL2dv");
2209+ glad_glVertexAttribL3dv = (PFNGLVERTEXATTRIBL3DVPROC)load("glVertexAttribL3dv");
2210+ glad_glVertexAttribL4dv = (PFNGLVERTEXATTRIBL4DVPROC)load("glVertexAttribL4dv");
2211+ glad_glVertexAttribLPointer = (PFNGLVERTEXATTRIBLPOINTERPROC)load("glVertexAttribLPointer");
2212+ glad_glGetVertexAttribLdv = (PFNGLGETVERTEXATTRIBLDVPROC)load("glGetVertexAttribLdv");
2213+ glad_glViewportArrayv = (PFNGLVIEWPORTARRAYVPROC)load("glViewportArrayv");
2214+ glad_glViewportIndexedf = (PFNGLVIEWPORTINDEXEDFPROC)load("glViewportIndexedf");
2215+ glad_glViewportIndexedfv = (PFNGLVIEWPORTINDEXEDFVPROC)load("glViewportIndexedfv");
2216+ glad_glScissorArrayv = (PFNGLSCISSORARRAYVPROC)load("glScissorArrayv");
2217+ glad_glScissorIndexed = (PFNGLSCISSORINDEXEDPROC)load("glScissorIndexed");
2218+ glad_glScissorIndexedv = (PFNGLSCISSORINDEXEDVPROC)load("glScissorIndexedv");
2219+ glad_glDepthRangeArrayv = (PFNGLDEPTHRANGEARRAYVPROC)load("glDepthRangeArrayv");
2220+ glad_glDepthRangeIndexed = (PFNGLDEPTHRANGEINDEXEDPROC)load("glDepthRangeIndexed");
2221+ glad_glGetFloati_v = (PFNGLGETFLOATI_VPROC)load("glGetFloati_v");
2222+ glad_glGetDoublei_v = (PFNGLGETDOUBLEI_VPROC)load("glGetDoublei_v");
2223+}
2224+static void load_GL_VERSION_4_2(GLADloadproc load) {
2225+ if(!GLAD_GL_VERSION_4_2) return;
2226+ glad_glDrawArraysInstancedBaseInstance = (PFNGLDRAWARRAYSINSTANCEDBASEINSTANCEPROC)load("glDrawArraysInstancedBaseInstance");
2227+ glad_glDrawElementsInstancedBaseInstance = (PFNGLDRAWELEMENTSINSTANCEDBASEINSTANCEPROC)load("glDrawElementsInstancedBaseInstance");
2228+ glad_glDrawElementsInstancedBaseVertexBaseInstance = (PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXBASEINSTANCEPROC)load("glDrawElementsInstancedBaseVertexBaseInstance");
2229+ glad_glGetInternalformativ = (PFNGLGETINTERNALFORMATIVPROC)load("glGetInternalformativ");
2230+ glad_glGetActiveAtomicCounterBufferiv = (PFNGLGETACTIVEATOMICCOUNTERBUFFERIVPROC)load("glGetActiveAtomicCounterBufferiv");
2231+ glad_glBindImageTexture = (PFNGLBINDIMAGETEXTUREPROC)load("glBindImageTexture");
2232+ glad_glMemoryBarrier = (PFNGLMEMORYBARRIERPROC)load("glMemoryBarrier");
2233+ glad_glTexStorage1D = (PFNGLTEXSTORAGE1DPROC)load("glTexStorage1D");
2234+ glad_glTexStorage2D = (PFNGLTEXSTORAGE2DPROC)load("glTexStorage2D");
2235+ glad_glTexStorage3D = (PFNGLTEXSTORAGE3DPROC)load("glTexStorage3D");
2236+ glad_glDrawTransformFeedbackInstanced = (PFNGLDRAWTRANSFORMFEEDBACKINSTANCEDPROC)load("glDrawTransformFeedbackInstanced");
2237+ glad_glDrawTransformFeedbackStreamInstanced = (PFNGLDRAWTRANSFORMFEEDBACKSTREAMINSTANCEDPROC)load("glDrawTransformFeedbackStreamInstanced");
2238+}
2239+static void load_GL_VERSION_4_3(GLADloadproc load) {
2240+ if(!GLAD_GL_VERSION_4_3) return;
2241+ glad_glClearBufferData = (PFNGLCLEARBUFFERDATAPROC)load("glClearBufferData");
2242+ glad_glClearBufferSubData = (PFNGLCLEARBUFFERSUBDATAPROC)load("glClearBufferSubData");
2243+ glad_glDispatchCompute = (PFNGLDISPATCHCOMPUTEPROC)load("glDispatchCompute");
2244+ glad_glDispatchComputeIndirect = (PFNGLDISPATCHCOMPUTEINDIRECTPROC)load("glDispatchComputeIndirect");
2245+ glad_glCopyImageSubData = (PFNGLCOPYIMAGESUBDATAPROC)load("glCopyImageSubData");
2246+ glad_glFramebufferParameteri = (PFNGLFRAMEBUFFERPARAMETERIPROC)load("glFramebufferParameteri");
2247+ glad_glGetFramebufferParameteriv = (PFNGLGETFRAMEBUFFERPARAMETERIVPROC)load("glGetFramebufferParameteriv");
2248+ glad_glGetInternalformati64v = (PFNGLGETINTERNALFORMATI64VPROC)load("glGetInternalformati64v");
2249+ glad_glInvalidateTexSubImage = (PFNGLINVALIDATETEXSUBIMAGEPROC)load("glInvalidateTexSubImage");
2250+ glad_glInvalidateTexImage = (PFNGLINVALIDATETEXIMAGEPROC)load("glInvalidateTexImage");
2251+ glad_glInvalidateBufferSubData = (PFNGLINVALIDATEBUFFERSUBDATAPROC)load("glInvalidateBufferSubData");
2252+ glad_glInvalidateBufferData = (PFNGLINVALIDATEBUFFERDATAPROC)load("glInvalidateBufferData");
2253+ glad_glInvalidateFramebuffer = (PFNGLINVALIDATEFRAMEBUFFERPROC)load("glInvalidateFramebuffer");
2254+ glad_glInvalidateSubFramebuffer = (PFNGLINVALIDATESUBFRAMEBUFFERPROC)load("glInvalidateSubFramebuffer");
2255+ glad_glMultiDrawArraysIndirect = (PFNGLMULTIDRAWARRAYSINDIRECTPROC)load("glMultiDrawArraysIndirect");
2256+ glad_glMultiDrawElementsIndirect = (PFNGLMULTIDRAWELEMENTSINDIRECTPROC)load("glMultiDrawElementsIndirect");
2257+ glad_glGetProgramInterfaceiv = (PFNGLGETPROGRAMINTERFACEIVPROC)load("glGetProgramInterfaceiv");
2258+ glad_glGetProgramResourceIndex = (PFNGLGETPROGRAMRESOURCEINDEXPROC)load("glGetProgramResourceIndex");
2259+ glad_glGetProgramResourceName = (PFNGLGETPROGRAMRESOURCENAMEPROC)load("glGetProgramResourceName");
2260+ glad_glGetProgramResourceiv = (PFNGLGETPROGRAMRESOURCEIVPROC)load("glGetProgramResourceiv");
2261+ glad_glGetProgramResourceLocation = (PFNGLGETPROGRAMRESOURCELOCATIONPROC)load("glGetProgramResourceLocation");
2262+ glad_glGetProgramResourceLocationIndex = (PFNGLGETPROGRAMRESOURCELOCATIONINDEXPROC)load("glGetProgramResourceLocationIndex");
2263+ glad_glShaderStorageBlockBinding = (PFNGLSHADERSTORAGEBLOCKBINDINGPROC)load("glShaderStorageBlockBinding");
2264+ glad_glTexBufferRange = (PFNGLTEXBUFFERRANGEPROC)load("glTexBufferRange");
2265+ glad_glTexStorage2DMultisample = (PFNGLTEXSTORAGE2DMULTISAMPLEPROC)load("glTexStorage2DMultisample");
2266+ glad_glTexStorage3DMultisample = (PFNGLTEXSTORAGE3DMULTISAMPLEPROC)load("glTexStorage3DMultisample");
2267+ glad_glTextureView = (PFNGLTEXTUREVIEWPROC)load("glTextureView");
2268+ glad_glBindVertexBuffer = (PFNGLBINDVERTEXBUFFERPROC)load("glBindVertexBuffer");
2269+ glad_glVertexAttribFormat = (PFNGLVERTEXATTRIBFORMATPROC)load("glVertexAttribFormat");
2270+ glad_glVertexAttribIFormat = (PFNGLVERTEXATTRIBIFORMATPROC)load("glVertexAttribIFormat");
2271+ glad_glVertexAttribLFormat = (PFNGLVERTEXATTRIBLFORMATPROC)load("glVertexAttribLFormat");
2272+ glad_glVertexAttribBinding = (PFNGLVERTEXATTRIBBINDINGPROC)load("glVertexAttribBinding");
2273+ glad_glVertexBindingDivisor = (PFNGLVERTEXBINDINGDIVISORPROC)load("glVertexBindingDivisor");
2274+ glad_glDebugMessageControl = (PFNGLDEBUGMESSAGECONTROLPROC)load("glDebugMessageControl");
2275+ glad_glDebugMessageInsert = (PFNGLDEBUGMESSAGEINSERTPROC)load("glDebugMessageInsert");
2276+ glad_glDebugMessageCallback = (PFNGLDEBUGMESSAGECALLBACKPROC)load("glDebugMessageCallback");
2277+ glad_glGetDebugMessageLog = (PFNGLGETDEBUGMESSAGELOGPROC)load("glGetDebugMessageLog");
2278+ glad_glPushDebugGroup = (PFNGLPUSHDEBUGGROUPPROC)load("glPushDebugGroup");
2279+ glad_glPopDebugGroup = (PFNGLPOPDEBUGGROUPPROC)load("glPopDebugGroup");
2280+ glad_glObjectLabel = (PFNGLOBJECTLABELPROC)load("glObjectLabel");
2281+ glad_glGetObjectLabel = (PFNGLGETOBJECTLABELPROC)load("glGetObjectLabel");
2282+ glad_glObjectPtrLabel = (PFNGLOBJECTPTRLABELPROC)load("glObjectPtrLabel");
2283+ glad_glGetObjectPtrLabel = (PFNGLGETOBJECTPTRLABELPROC)load("glGetObjectPtrLabel");
2284+ glad_glGetPointerv = (PFNGLGETPOINTERVPROC)load("glGetPointerv");
2285+}
2286+static void load_GL_VERSION_4_4(GLADloadproc load) {
2287+ if(!GLAD_GL_VERSION_4_4) return;
2288+ glad_glBufferStorage = (PFNGLBUFFERSTORAGEPROC)load("glBufferStorage");
2289+ glad_glClearTexImage = (PFNGLCLEARTEXIMAGEPROC)load("glClearTexImage");
2290+ glad_glClearTexSubImage = (PFNGLCLEARTEXSUBIMAGEPROC)load("glClearTexSubImage");
2291+ glad_glBindBuffersBase = (PFNGLBINDBUFFERSBASEPROC)load("glBindBuffersBase");
2292+ glad_glBindBuffersRange = (PFNGLBINDBUFFERSRANGEPROC)load("glBindBuffersRange");
2293+ glad_glBindTextures = (PFNGLBINDTEXTURESPROC)load("glBindTextures");
2294+ glad_glBindSamplers = (PFNGLBINDSAMPLERSPROC)load("glBindSamplers");
2295+ glad_glBindImageTextures = (PFNGLBINDIMAGETEXTURESPROC)load("glBindImageTextures");
2296+ glad_glBindVertexBuffers = (PFNGLBINDVERTEXBUFFERSPROC)load("glBindVertexBuffers");
2297+}
2298+static void load_GL_VERSION_4_5(GLADloadproc load) {
2299+ if(!GLAD_GL_VERSION_4_5) return;
2300+ glad_glClipControl = (PFNGLCLIPCONTROLPROC)load("glClipControl");
2301+ glad_glCreateTransformFeedbacks = (PFNGLCREATETRANSFORMFEEDBACKSPROC)load("glCreateTransformFeedbacks");
2302+ glad_glTransformFeedbackBufferBase = (PFNGLTRANSFORMFEEDBACKBUFFERBASEPROC)load("glTransformFeedbackBufferBase");
2303+ glad_glTransformFeedbackBufferRange = (PFNGLTRANSFORMFEEDBACKBUFFERRANGEPROC)load("glTransformFeedbackBufferRange");
2304+ glad_glGetTransformFeedbackiv = (PFNGLGETTRANSFORMFEEDBACKIVPROC)load("glGetTransformFeedbackiv");
2305+ glad_glGetTransformFeedbacki_v = (PFNGLGETTRANSFORMFEEDBACKI_VPROC)load("glGetTransformFeedbacki_v");
2306+ glad_glGetTransformFeedbacki64_v = (PFNGLGETTRANSFORMFEEDBACKI64_VPROC)load("glGetTransformFeedbacki64_v");
2307+ glad_glCreateBuffers = (PFNGLCREATEBUFFERSPROC)load("glCreateBuffers");
2308+ glad_glNamedBufferStorage = (PFNGLNAMEDBUFFERSTORAGEPROC)load("glNamedBufferStorage");
2309+ glad_glNamedBufferData = (PFNGLNAMEDBUFFERDATAPROC)load("glNamedBufferData");
2310+ glad_glNamedBufferSubData = (PFNGLNAMEDBUFFERSUBDATAPROC)load("glNamedBufferSubData");
2311+ glad_glCopyNamedBufferSubData = (PFNGLCOPYNAMEDBUFFERSUBDATAPROC)load("glCopyNamedBufferSubData");
2312+ glad_glClearNamedBufferData = (PFNGLCLEARNAMEDBUFFERDATAPROC)load("glClearNamedBufferData");
2313+ glad_glClearNamedBufferSubData = (PFNGLCLEARNAMEDBUFFERSUBDATAPROC)load("glClearNamedBufferSubData");
2314+ glad_glMapNamedBuffer = (PFNGLMAPNAMEDBUFFERPROC)load("glMapNamedBuffer");
2315+ glad_glMapNamedBufferRange = (PFNGLMAPNAMEDBUFFERRANGEPROC)load("glMapNamedBufferRange");
2316+ glad_glUnmapNamedBuffer = (PFNGLUNMAPNAMEDBUFFERPROC)load("glUnmapNamedBuffer");
2317+ glad_glFlushMappedNamedBufferRange = (PFNGLFLUSHMAPPEDNAMEDBUFFERRANGEPROC)load("glFlushMappedNamedBufferRange");
2318+ glad_glGetNamedBufferParameteriv = (PFNGLGETNAMEDBUFFERPARAMETERIVPROC)load("glGetNamedBufferParameteriv");
2319+ glad_glGetNamedBufferParameteri64v = (PFNGLGETNAMEDBUFFERPARAMETERI64VPROC)load("glGetNamedBufferParameteri64v");
2320+ glad_glGetNamedBufferPointerv = (PFNGLGETNAMEDBUFFERPOINTERVPROC)load("glGetNamedBufferPointerv");
2321+ glad_glGetNamedBufferSubData = (PFNGLGETNAMEDBUFFERSUBDATAPROC)load("glGetNamedBufferSubData");
2322+ glad_glCreateFramebuffers = (PFNGLCREATEFRAMEBUFFERSPROC)load("glCreateFramebuffers");
2323+ glad_glNamedFramebufferRenderbuffer = (PFNGLNAMEDFRAMEBUFFERRENDERBUFFERPROC)load("glNamedFramebufferRenderbuffer");
2324+ glad_glNamedFramebufferParameteri = (PFNGLNAMEDFRAMEBUFFERPARAMETERIPROC)load("glNamedFramebufferParameteri");
2325+ glad_glNamedFramebufferTexture = (PFNGLNAMEDFRAMEBUFFERTEXTUREPROC)load("glNamedFramebufferTexture");
2326+ glad_glNamedFramebufferTextureLayer = (PFNGLNAMEDFRAMEBUFFERTEXTURELAYERPROC)load("glNamedFramebufferTextureLayer");
2327+ glad_glNamedFramebufferDrawBuffer = (PFNGLNAMEDFRAMEBUFFERDRAWBUFFERPROC)load("glNamedFramebufferDrawBuffer");
2328+ glad_glNamedFramebufferDrawBuffers = (PFNGLNAMEDFRAMEBUFFERDRAWBUFFERSPROC)load("glNamedFramebufferDrawBuffers");
2329+ glad_glNamedFramebufferReadBuffer = (PFNGLNAMEDFRAMEBUFFERREADBUFFERPROC)load("glNamedFramebufferReadBuffer");
2330+ glad_glInvalidateNamedFramebufferData = (PFNGLINVALIDATENAMEDFRAMEBUFFERDATAPROC)load("glInvalidateNamedFramebufferData");
2331+ glad_glInvalidateNamedFramebufferSubData = (PFNGLINVALIDATENAMEDFRAMEBUFFERSUBDATAPROC)load("glInvalidateNamedFramebufferSubData");
2332+ glad_glClearNamedFramebufferiv = (PFNGLCLEARNAMEDFRAMEBUFFERIVPROC)load("glClearNamedFramebufferiv");
2333+ glad_glClearNamedFramebufferuiv = (PFNGLCLEARNAMEDFRAMEBUFFERUIVPROC)load("glClearNamedFramebufferuiv");
2334+ glad_glClearNamedFramebufferfv = (PFNGLCLEARNAMEDFRAMEBUFFERFVPROC)load("glClearNamedFramebufferfv");
2335+ glad_glClearNamedFramebufferfi = (PFNGLCLEARNAMEDFRAMEBUFFERFIPROC)load("glClearNamedFramebufferfi");
2336+ glad_glBlitNamedFramebuffer = (PFNGLBLITNAMEDFRAMEBUFFERPROC)load("glBlitNamedFramebuffer");
2337+ glad_glCheckNamedFramebufferStatus = (PFNGLCHECKNAMEDFRAMEBUFFERSTATUSPROC)load("glCheckNamedFramebufferStatus");
2338+ glad_glGetNamedFramebufferParameteriv = (PFNGLGETNAMEDFRAMEBUFFERPARAMETERIVPROC)load("glGetNamedFramebufferParameteriv");
2339+ glad_glGetNamedFramebufferAttachmentParameteriv = (PFNGLGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIVPROC)load("glGetNamedFramebufferAttachmentParameteriv");
2340+ glad_glCreateRenderbuffers = (PFNGLCREATERENDERBUFFERSPROC)load("glCreateRenderbuffers");
2341+ glad_glNamedRenderbufferStorage = (PFNGLNAMEDRENDERBUFFERSTORAGEPROC)load("glNamedRenderbufferStorage");
2342+ glad_glNamedRenderbufferStorageMultisample = (PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLEPROC)load("glNamedRenderbufferStorageMultisample");
2343+ glad_glGetNamedRenderbufferParameteriv = (PFNGLGETNAMEDRENDERBUFFERPARAMETERIVPROC)load("glGetNamedRenderbufferParameteriv");
2344+ glad_glCreateTextures = (PFNGLCREATETEXTURESPROC)load("glCreateTextures");
2345+ glad_glTextureBuffer = (PFNGLTEXTUREBUFFERPROC)load("glTextureBuffer");
2346+ glad_glTextureBufferRange = (PFNGLTEXTUREBUFFERRANGEPROC)load("glTextureBufferRange");
2347+ glad_glTextureStorage1D = (PFNGLTEXTURESTORAGE1DPROC)load("glTextureStorage1D");
2348+ glad_glTextureStorage2D = (PFNGLTEXTURESTORAGE2DPROC)load("glTextureStorage2D");
2349+ glad_glTextureStorage3D = (PFNGLTEXTURESTORAGE3DPROC)load("glTextureStorage3D");
2350+ glad_glTextureStorage2DMultisample = (PFNGLTEXTURESTORAGE2DMULTISAMPLEPROC)load("glTextureStorage2DMultisample");
2351+ glad_glTextureStorage3DMultisample = (PFNGLTEXTURESTORAGE3DMULTISAMPLEPROC)load("glTextureStorage3DMultisample");
2352+ glad_glTextureSubImage1D = (PFNGLTEXTURESUBIMAGE1DPROC)load("glTextureSubImage1D");
2353+ glad_glTextureSubImage2D = (PFNGLTEXTURESUBIMAGE2DPROC)load("glTextureSubImage2D");
2354+ glad_glTextureSubImage3D = (PFNGLTEXTURESUBIMAGE3DPROC)load("glTextureSubImage3D");
2355+ glad_glCompressedTextureSubImage1D = (PFNGLCOMPRESSEDTEXTURESUBIMAGE1DPROC)load("glCompressedTextureSubImage1D");
2356+ glad_glCompressedTextureSubImage2D = (PFNGLCOMPRESSEDTEXTURESUBIMAGE2DPROC)load("glCompressedTextureSubImage2D");
2357+ glad_glCompressedTextureSubImage3D = (PFNGLCOMPRESSEDTEXTURESUBIMAGE3DPROC)load("glCompressedTextureSubImage3D");
2358+ glad_glCopyTextureSubImage1D = (PFNGLCOPYTEXTURESUBIMAGE1DPROC)load("glCopyTextureSubImage1D");
2359+ glad_glCopyTextureSubImage2D = (PFNGLCOPYTEXTURESUBIMAGE2DPROC)load("glCopyTextureSubImage2D");
2360+ glad_glCopyTextureSubImage3D = (PFNGLCOPYTEXTURESUBIMAGE3DPROC)load("glCopyTextureSubImage3D");
2361+ glad_glTextureParameterf = (PFNGLTEXTUREPARAMETERFPROC)load("glTextureParameterf");
2362+ glad_glTextureParameterfv = (PFNGLTEXTUREPARAMETERFVPROC)load("glTextureParameterfv");
2363+ glad_glTextureParameteri = (PFNGLTEXTUREPARAMETERIPROC)load("glTextureParameteri");
2364+ glad_glTextureParameterIiv = (PFNGLTEXTUREPARAMETERIIVPROC)load("glTextureParameterIiv");
2365+ glad_glTextureParameterIuiv = (PFNGLTEXTUREPARAMETERIUIVPROC)load("glTextureParameterIuiv");
2366+ glad_glTextureParameteriv = (PFNGLTEXTUREPARAMETERIVPROC)load("glTextureParameteriv");
2367+ glad_glGenerateTextureMipmap = (PFNGLGENERATETEXTUREMIPMAPPROC)load("glGenerateTextureMipmap");
2368+ glad_glBindTextureUnit = (PFNGLBINDTEXTUREUNITPROC)load("glBindTextureUnit");
2369+ glad_glGetTextureImage = (PFNGLGETTEXTUREIMAGEPROC)load("glGetTextureImage");
2370+ glad_glGetCompressedTextureImage = (PFNGLGETCOMPRESSEDTEXTUREIMAGEPROC)load("glGetCompressedTextureImage");
2371+ glad_glGetTextureLevelParameterfv = (PFNGLGETTEXTURELEVELPARAMETERFVPROC)load("glGetTextureLevelParameterfv");
2372+ glad_glGetTextureLevelParameteriv = (PFNGLGETTEXTURELEVELPARAMETERIVPROC)load("glGetTextureLevelParameteriv");
2373+ glad_glGetTextureParameterfv = (PFNGLGETTEXTUREPARAMETERFVPROC)load("glGetTextureParameterfv");
2374+ glad_glGetTextureParameterIiv = (PFNGLGETTEXTUREPARAMETERIIVPROC)load("glGetTextureParameterIiv");
2375+ glad_glGetTextureParameterIuiv = (PFNGLGETTEXTUREPARAMETERIUIVPROC)load("glGetTextureParameterIuiv");
2376+ glad_glGetTextureParameteriv = (PFNGLGETTEXTUREPARAMETERIVPROC)load("glGetTextureParameteriv");
2377+ glad_glCreateVertexArrays = (PFNGLCREATEVERTEXARRAYSPROC)load("glCreateVertexArrays");
2378+ glad_glDisableVertexArrayAttrib = (PFNGLDISABLEVERTEXARRAYATTRIBPROC)load("glDisableVertexArrayAttrib");
2379+ glad_glEnableVertexArrayAttrib = (PFNGLENABLEVERTEXARRAYATTRIBPROC)load("glEnableVertexArrayAttrib");
2380+ glad_glVertexArrayElementBuffer = (PFNGLVERTEXARRAYELEMENTBUFFERPROC)load("glVertexArrayElementBuffer");
2381+ glad_glVertexArrayVertexBuffer = (PFNGLVERTEXARRAYVERTEXBUFFERPROC)load("glVertexArrayVertexBuffer");
2382+ glad_glVertexArrayVertexBuffers = (PFNGLVERTEXARRAYVERTEXBUFFERSPROC)load("glVertexArrayVertexBuffers");
2383+ glad_glVertexArrayAttribBinding = (PFNGLVERTEXARRAYATTRIBBINDINGPROC)load("glVertexArrayAttribBinding");
2384+ glad_glVertexArrayAttribFormat = (PFNGLVERTEXARRAYATTRIBFORMATPROC)load("glVertexArrayAttribFormat");
2385+ glad_glVertexArrayAttribIFormat = (PFNGLVERTEXARRAYATTRIBIFORMATPROC)load("glVertexArrayAttribIFormat");
2386+ glad_glVertexArrayAttribLFormat = (PFNGLVERTEXARRAYATTRIBLFORMATPROC)load("glVertexArrayAttribLFormat");
2387+ glad_glVertexArrayBindingDivisor = (PFNGLVERTEXARRAYBINDINGDIVISORPROC)load("glVertexArrayBindingDivisor");
2388+ glad_glGetVertexArrayiv = (PFNGLGETVERTEXARRAYIVPROC)load("glGetVertexArrayiv");
2389+ glad_glGetVertexArrayIndexediv = (PFNGLGETVERTEXARRAYINDEXEDIVPROC)load("glGetVertexArrayIndexediv");
2390+ glad_glGetVertexArrayIndexed64iv = (PFNGLGETVERTEXARRAYINDEXED64IVPROC)load("glGetVertexArrayIndexed64iv");
2391+ glad_glCreateSamplers = (PFNGLCREATESAMPLERSPROC)load("glCreateSamplers");
2392+ glad_glCreateProgramPipelines = (PFNGLCREATEPROGRAMPIPELINESPROC)load("glCreateProgramPipelines");
2393+ glad_glCreateQueries = (PFNGLCREATEQUERIESPROC)load("glCreateQueries");
2394+ glad_glGetQueryBufferObjecti64v = (PFNGLGETQUERYBUFFEROBJECTI64VPROC)load("glGetQueryBufferObjecti64v");
2395+ glad_glGetQueryBufferObjectiv = (PFNGLGETQUERYBUFFEROBJECTIVPROC)load("glGetQueryBufferObjectiv");
2396+ glad_glGetQueryBufferObjectui64v = (PFNGLGETQUERYBUFFEROBJECTUI64VPROC)load("glGetQueryBufferObjectui64v");
2397+ glad_glGetQueryBufferObjectuiv = (PFNGLGETQUERYBUFFEROBJECTUIVPROC)load("glGetQueryBufferObjectuiv");
2398+ glad_glMemoryBarrierByRegion = (PFNGLMEMORYBARRIERBYREGIONPROC)load("glMemoryBarrierByRegion");
2399+ glad_glGetTextureSubImage = (PFNGLGETTEXTURESUBIMAGEPROC)load("glGetTextureSubImage");
2400+ glad_glGetCompressedTextureSubImage = (PFNGLGETCOMPRESSEDTEXTURESUBIMAGEPROC)load("glGetCompressedTextureSubImage");
2401+ glad_glGetGraphicsResetStatus = (PFNGLGETGRAPHICSRESETSTATUSPROC)load("glGetGraphicsResetStatus");
2402+ glad_glGetnCompressedTexImage = (PFNGLGETNCOMPRESSEDTEXIMAGEPROC)load("glGetnCompressedTexImage");
2403+ glad_glGetnTexImage = (PFNGLGETNTEXIMAGEPROC)load("glGetnTexImage");
2404+ glad_glGetnUniformdv = (PFNGLGETNUNIFORMDVPROC)load("glGetnUniformdv");
2405+ glad_glGetnUniformfv = (PFNGLGETNUNIFORMFVPROC)load("glGetnUniformfv");
2406+ glad_glGetnUniformiv = (PFNGLGETNUNIFORMIVPROC)load("glGetnUniformiv");
2407+ glad_glGetnUniformuiv = (PFNGLGETNUNIFORMUIVPROC)load("glGetnUniformuiv");
2408+ glad_glReadnPixels = (PFNGLREADNPIXELSPROC)load("glReadnPixels");
2409+ glad_glGetnMapdv = (PFNGLGETNMAPDVPROC)load("glGetnMapdv");
2410+ glad_glGetnMapfv = (PFNGLGETNMAPFVPROC)load("glGetnMapfv");
2411+ glad_glGetnMapiv = (PFNGLGETNMAPIVPROC)load("glGetnMapiv");
2412+ glad_glGetnPixelMapfv = (PFNGLGETNPIXELMAPFVPROC)load("glGetnPixelMapfv");
2413+ glad_glGetnPixelMapuiv = (PFNGLGETNPIXELMAPUIVPROC)load("glGetnPixelMapuiv");
2414+ glad_glGetnPixelMapusv = (PFNGLGETNPIXELMAPUSVPROC)load("glGetnPixelMapusv");
2415+ glad_glGetnPolygonStipple = (PFNGLGETNPOLYGONSTIPPLEPROC)load("glGetnPolygonStipple");
2416+ glad_glGetnColorTable = (PFNGLGETNCOLORTABLEPROC)load("glGetnColorTable");
2417+ glad_glGetnConvolutionFilter = (PFNGLGETNCONVOLUTIONFILTERPROC)load("glGetnConvolutionFilter");
2418+ glad_glGetnSeparableFilter = (PFNGLGETNSEPARABLEFILTERPROC)load("glGetnSeparableFilter");
2419+ glad_glGetnHistogram = (PFNGLGETNHISTOGRAMPROC)load("glGetnHistogram");
2420+ glad_glGetnMinmax = (PFNGLGETNMINMAXPROC)load("glGetnMinmax");
2421+ glad_glTextureBarrier = (PFNGLTEXTUREBARRIERPROC)load("glTextureBarrier");
2422+}
2423+static int find_extensionsGL(void) {
2424+ if (!get_exts()) return 0;
2425+ (void)&has_ext;
2426+ free_exts();
2427+ return 1;
2428+}
2429+
2430+static void find_coreGL(void) {
2431+
2432+ /* Thank you @elmindreda
2433+ * https://github.com/elmindreda/greg/blob/master/templates/greg.c.in#L176
2434+ * https://github.com/glfw/glfw/blob/master/src/context.c#L36
2435+ */
2436+ int i, major, minor;
2437+
2438+ const char* version;
2439+ const char* prefixes[] = {
2440+ "OpenGL ES-CM ",
2441+ "OpenGL ES-CL ",
2442+ "OpenGL ES ",
2443+ NULL
2444+ };
2445+
2446+ version = (const char*) glGetString(GL_VERSION);
2447+ if (!version) return;
2448+
2449+ for (i = 0; prefixes[i]; i++) {
2450+ const size_t length = strlen(prefixes[i]);
2451+ if (strncmp(version, prefixes[i], length) == 0) {
2452+ version += length;
2453+ break;
2454+ }
2455+ }
2456+
2457+/* PR #18 */
2458+#ifdef _MSC_VER
2459+ sscanf_s(version, "%d.%d", &major, &minor);
2460+#else
2461+ sscanf(version, "%d.%d", &major, &minor);
2462+#endif
2463+
2464+ GLVersion.major = major; GLVersion.minor = minor;
2465+ max_loaded_major = major; max_loaded_minor = minor;
2466+ GLAD_GL_VERSION_1_0 = (major == 1 && minor >= 0) || major > 1;
2467+ GLAD_GL_VERSION_1_1 = (major == 1 && minor >= 1) || major > 1;
2468+ GLAD_GL_VERSION_1_2 = (major == 1 && minor >= 2) || major > 1;
2469+ GLAD_GL_VERSION_1_3 = (major == 1 && minor >= 3) || major > 1;
2470+ GLAD_GL_VERSION_1_4 = (major == 1 && minor >= 4) || major > 1;
2471+ GLAD_GL_VERSION_1_5 = (major == 1 && minor >= 5) || major > 1;
2472+ GLAD_GL_VERSION_2_0 = (major == 2 && minor >= 0) || major > 2;
2473+ GLAD_GL_VERSION_2_1 = (major == 2 && minor >= 1) || major > 2;
2474+ GLAD_GL_VERSION_3_0 = (major == 3 && minor >= 0) || major > 3;
2475+ GLAD_GL_VERSION_3_1 = (major == 3 && minor >= 1) || major > 3;
2476+ GLAD_GL_VERSION_3_2 = (major == 3 && minor >= 2) || major > 3;
2477+ GLAD_GL_VERSION_3_3 = (major == 3 && minor >= 3) || major > 3;
2478+ GLAD_GL_VERSION_4_0 = (major == 4 && minor >= 0) || major > 4;
2479+ GLAD_GL_VERSION_4_1 = (major == 4 && minor >= 1) || major > 4;
2480+ GLAD_GL_VERSION_4_2 = (major == 4 && minor >= 2) || major > 4;
2481+ GLAD_GL_VERSION_4_3 = (major == 4 && minor >= 3) || major > 4;
2482+ GLAD_GL_VERSION_4_4 = (major == 4 && minor >= 4) || major > 4;
2483+ GLAD_GL_VERSION_4_5 = (major == 4 && minor >= 5) || major > 4;
2484+ if (GLVersion.major > 4 || (GLVersion.major >= 4 && GLVersion.minor >= 5)) {
2485+ max_loaded_major = 4;
2486+ max_loaded_minor = 5;
2487+ }
2488+}
2489+
2490+int gladLoadGLLoader(GLADloadproc load) {
2491+ GLVersion.major = 0; GLVersion.minor = 0;
2492+ glGetString = (PFNGLGETSTRINGPROC)load("glGetString");
2493+ if(glGetString == NULL) return 0;
2494+ if(glGetString(GL_VERSION) == NULL) return 0;
2495+ find_coreGL();
2496+ load_GL_VERSION_1_0(load);
2497+ load_GL_VERSION_1_1(load);
2498+ load_GL_VERSION_1_2(load);
2499+ load_GL_VERSION_1_3(load);
2500+ load_GL_VERSION_1_4(load);
2501+ load_GL_VERSION_1_5(load);
2502+ load_GL_VERSION_2_0(load);
2503+ load_GL_VERSION_2_1(load);
2504+ load_GL_VERSION_3_0(load);
2505+ load_GL_VERSION_3_1(load);
2506+ load_GL_VERSION_3_2(load);
2507+ load_GL_VERSION_3_3(load);
2508+ load_GL_VERSION_4_0(load);
2509+ load_GL_VERSION_4_1(load);
2510+ load_GL_VERSION_4_2(load);
2511+ load_GL_VERSION_4_3(load);
2512+ load_GL_VERSION_4_4(load);
2513+ load_GL_VERSION_4_5(load);
2514+
2515+ if (!find_extensionsGL()) return 0;
2516+ return GLVersion.major != 0 || GLVersion.minor != 0;
2517+}
2518+