Pyrogenesis trunk
wgl.h
Go to the documentation of this file.
1/**
2 * Loader generated by glad 2.0.7 on Sat Sep 7 20:28:17 2024
3 *
4 * SPDX-License-Identifier: (WTFPL OR CC0-1.0) AND Apache-2.0
5 *
6 * Generator: C/C++
7 * Specification: wgl
8 * Extensions: 3
9 *
10 * APIs:
11 * - wgl=1.0
12 *
13 * Options:
14 * - ALIAS = False
15 * - DEBUG = False
16 * - HEADER_ONLY = False
17 * - LOADER = False
18 * - MX = False
19 * - ON_DEMAND = False
20 *
21 * Commandline:
22 * --api='wgl=1.0' --extensions='WGL_ARB_extensions_string,WGL_EXT_extensions_string,WGL_EXT_swap_control' c
23 *
24 * Online:
25 * http://glad.sh/#api=wgl%3D1.0&extensions=WGL_ARB_extensions_string%2CWGL_EXT_extensions_string%2CWGL_EXT_swap_control&generator=c&options=
26 *
27 */
28
29#ifndef GLAD_WGL_H_
30#define GLAD_WGL_H_
31
32#include <windows.h>
33#include <glad/gl.h>
34
35#define GLAD_WGL
36
37#ifdef __cplusplus
38extern "C" {
39#endif
40
41#ifndef GLAD_PLATFORM_H_
42#define GLAD_PLATFORM_H_
43
44#ifndef GLAD_PLATFORM_WIN32
45 #if defined(_WIN32) || defined(__WIN32__) || defined(WIN32) || defined(__MINGW32__)
46 #define GLAD_PLATFORM_WIN32 1
47 #else
48 #define GLAD_PLATFORM_WIN32 0
49 #endif
50#endif
51
52#ifndef GLAD_PLATFORM_APPLE
53 #ifdef __APPLE__
54 #define GLAD_PLATFORM_APPLE 1
55 #else
56 #define GLAD_PLATFORM_APPLE 0
57 #endif
58#endif
59
60#ifndef GLAD_PLATFORM_EMSCRIPTEN
61 #ifdef __EMSCRIPTEN__
62 #define GLAD_PLATFORM_EMSCRIPTEN 1
63 #else
64 #define GLAD_PLATFORM_EMSCRIPTEN 0
65 #endif
66#endif
67
68#ifndef GLAD_PLATFORM_UWP
69 #if defined(_MSC_VER) && !defined(GLAD_INTERNAL_HAVE_WINAPIFAMILY)
70 #ifdef __has_include
71 #if __has_include(<winapifamily.h>)
72 #define GLAD_INTERNAL_HAVE_WINAPIFAMILY 1
73 #endif
74 #elif _MSC_VER >= 1700 && !_USING_V110_SDK71_
75 #define GLAD_INTERNAL_HAVE_WINAPIFAMILY 1
76 #endif
77 #endif
78
79 #ifdef GLAD_INTERNAL_HAVE_WINAPIFAMILY
80 #include <winapifamily.h>
81 #if !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) && WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
82 #define GLAD_PLATFORM_UWP 1
83 #endif
84 #endif
85
86 #ifndef GLAD_PLATFORM_UWP
87 #define GLAD_PLATFORM_UWP 0
88 #endif
89#endif
90
91#ifdef __GNUC__
92 #define GLAD_GNUC_EXTENSION __extension__
93#else
94 #define GLAD_GNUC_EXTENSION
95#endif
96
97#define GLAD_UNUSED(x) (void)(x)
98
99#ifndef GLAD_API_CALL
100 #if defined(GLAD_API_CALL_EXPORT)
101 #if GLAD_PLATFORM_WIN32 || defined(__CYGWIN__)
102 #if defined(GLAD_API_CALL_EXPORT_BUILD)
103 #if defined(__GNUC__)
104 #define GLAD_API_CALL __attribute__ ((dllexport)) extern
105 #else
106 #define GLAD_API_CALL __declspec(dllexport) extern
107 #endif
108 #else
109 #if defined(__GNUC__)
110 #define GLAD_API_CALL __attribute__ ((dllimport)) extern
111 #else
112 #define GLAD_API_CALL __declspec(dllimport) extern
113 #endif
114 #endif
115 #elif defined(__GNUC__) && defined(GLAD_API_CALL_EXPORT_BUILD)
116 #define GLAD_API_CALL __attribute__ ((visibility ("default"))) extern
117 #else
118 #define GLAD_API_CALL extern
119 #endif
120 #else
121 #define GLAD_API_CALL extern
122 #endif
123#endif
124
125#ifdef APIENTRY
126 #define GLAD_API_PTR APIENTRY
127#elif GLAD_PLATFORM_WIN32
128 #define GLAD_API_PTR __stdcall
129#else
130 #define GLAD_API_PTR
131#endif
132
133#ifndef GLAPI
134#define GLAPI GLAD_API_CALL
135#endif
136
137#ifndef GLAPIENTRY
138#define GLAPIENTRY GLAD_API_PTR
139#endif
140
141#define GLAD_MAKE_VERSION(major, minor) (major * 10000 + minor)
142#define GLAD_VERSION_MAJOR(version) (version / 10000)
143#define GLAD_VERSION_MINOR(version) (version % 10000)
144
145#define GLAD_GENERATOR_VERSION "2.0.7"
146
147typedef void (*GLADapiproc)(void);
148
149typedef GLADapiproc (*GLADloadfunc)(const char *name);
150typedef GLADapiproc (*GLADuserptrloadfunc)(void *userptr, const char *name);
151
152typedef void (*GLADprecallback)(const char *name, GLADapiproc apiproc, int len_args, ...);
153typedef void (*GLADpostcallback)(void *ret, const char *name, GLADapiproc apiproc, int len_args, ...);
154
155#endif /* GLAD_PLATFORM_H_ */
156
157#define WGL_FONT_LINES 0
158#define WGL_FONT_POLYGONS 1
159#define WGL_SWAP_MAIN_PLANE 0x00000001
160#define WGL_SWAP_OVERLAY1 0x00000002
161#define WGL_SWAP_OVERLAY10 0x00000400
162#define WGL_SWAP_OVERLAY11 0x00000800
163#define WGL_SWAP_OVERLAY12 0x00001000
164#define WGL_SWAP_OVERLAY13 0x00002000
165#define WGL_SWAP_OVERLAY14 0x00004000
166#define WGL_SWAP_OVERLAY15 0x00008000
167#define WGL_SWAP_OVERLAY2 0x00000004
168#define WGL_SWAP_OVERLAY3 0x00000008
169#define WGL_SWAP_OVERLAY4 0x00000010
170#define WGL_SWAP_OVERLAY5 0x00000020
171#define WGL_SWAP_OVERLAY6 0x00000040
172#define WGL_SWAP_OVERLAY7 0x00000080
173#define WGL_SWAP_OVERLAY8 0x00000100
174#define WGL_SWAP_OVERLAY9 0x00000200
175#define WGL_SWAP_UNDERLAY1 0x00010000
176#define WGL_SWAP_UNDERLAY10 0x02000000
177#define WGL_SWAP_UNDERLAY11 0x04000000
178#define WGL_SWAP_UNDERLAY12 0x08000000
179#define WGL_SWAP_UNDERLAY13 0x10000000
180#define WGL_SWAP_UNDERLAY14 0x20000000
181#define WGL_SWAP_UNDERLAY15 0x40000000
182#define WGL_SWAP_UNDERLAY2 0x00020000
183#define WGL_SWAP_UNDERLAY3 0x00040000
184#define WGL_SWAP_UNDERLAY4 0x00080000
185#define WGL_SWAP_UNDERLAY5 0x00100000
186#define WGL_SWAP_UNDERLAY6 0x00200000
187#define WGL_SWAP_UNDERLAY7 0x00400000
188#define WGL_SWAP_UNDERLAY8 0x00800000
189#define WGL_SWAP_UNDERLAY9 0x01000000
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
223 DWORD cb;
224 CHAR DeviceName[32];
225 CHAR DeviceString[128];
226 DWORD Flags;
228};
229DECLARE_HANDLE(HPBUFFERARB);
230DECLARE_HANDLE(HPBUFFEREXT);
231DECLARE_HANDLE(HVIDEOOUTPUTDEVICENV);
232DECLARE_HANDLE(HPVIDEODEV);
235DECLARE_HANDLE(HVIDEOINPUTDEVICENV);
236typedef struct _GPU_DEVICE GPU_DEVICE;
237typedef struct _GPU_DEVICE *PGPU_DEVICE;
238
239
240#define WGL_VERSION_1_0 1
242#define WGL_ARB_extensions_string 1
244#define WGL_EXT_extensions_string 1
246#define WGL_EXT_swap_control 1
248
249
250typedef int (GLAD_API_PTR *PFNCHOOSEPIXELFORMATPROC)(HDC hDc, const PIXELFORMATDESCRIPTOR * pPfd);
251typedef int (GLAD_API_PTR *PFNDESCRIBEPIXELFORMATPROC)(HDC hdc, int ipfd, UINT cjpfd, PIXELFORMATDESCRIPTOR * ppfd);
252typedef UINT (GLAD_API_PTR *PFNGETENHMETAFILEPIXELFORMATPROC)(HENHMETAFILE hemf, UINT cbBuffer, PIXELFORMATDESCRIPTOR * ppfd);
253typedef int (GLAD_API_PTR *PFNGETPIXELFORMATPROC)(HDC hdc);
254typedef BOOL (GLAD_API_PTR *PFNSETPIXELFORMATPROC)(HDC hdc, int ipfd, const PIXELFORMATDESCRIPTOR * ppfd);
256typedef BOOL (GLAD_API_PTR *PFNWGLCOPYCONTEXTPROC)(HGLRC hglrcSrc, HGLRC hglrcDst, UINT mask);
257typedef HGLRC (GLAD_API_PTR *PFNWGLCREATECONTEXTPROC)(HDC hDc);
258typedef HGLRC (GLAD_API_PTR *PFNWGLCREATELAYERCONTEXTPROC)(HDC hDc, int level);
259typedef BOOL (GLAD_API_PTR *PFNWGLDELETECONTEXTPROC)(HGLRC oldContext);
260typedef BOOL (GLAD_API_PTR *PFNWGLDESCRIBELAYERPLANEPROC)(HDC hDc, int pixelFormat, int layerPlane, UINT nBytes, LAYERPLANEDESCRIPTOR * plpd);
263typedef const char * (GLAD_API_PTR *PFNWGLGETEXTENSIONSSTRINGARBPROC)(HDC hdc);
264typedef const char * (GLAD_API_PTR *PFNWGLGETEXTENSIONSSTRINGEXTPROC)(void);
265typedef int (GLAD_API_PTR *PFNWGLGETLAYERPALETTEENTRIESPROC)(HDC hdc, int iLayerPlane, int iStart, int cEntries, COLORREF * pcr);
266typedef PROC (GLAD_API_PTR *PFNWGLGETPROCADDRESSPROC)(LPCSTR lpszProc);
268typedef BOOL (GLAD_API_PTR *PFNWGLMAKECURRENTPROC)(HDC hDc, HGLRC newContext);
269typedef BOOL (GLAD_API_PTR *PFNWGLREALIZELAYERPALETTEPROC)(HDC hdc, int iLayerPlane, BOOL bRealize);
270typedef int (GLAD_API_PTR *PFNWGLSETLAYERPALETTEENTRIESPROC)(HDC hdc, int iLayerPlane, int iStart, int cEntries, const COLORREF * pcr);
271typedef BOOL (GLAD_API_PTR *PFNWGLSHARELISTSPROC)(HGLRC hrcSrvShare, HGLRC hrcSrvSource);
273typedef BOOL (GLAD_API_PTR *PFNWGLSWAPLAYERBUFFERSPROC)(HDC hdc, UINT fuFlags);
274typedef BOOL (GLAD_API_PTR *PFNWGLUSEFONTBITMAPSPROC)(HDC hDC, DWORD first, DWORD count, DWORD listBase);
275typedef BOOL (GLAD_API_PTR *PFNWGLUSEFONTBITMAPSAPROC)(HDC hDC, DWORD first, DWORD count, DWORD listBase);
276typedef BOOL (GLAD_API_PTR *PFNWGLUSEFONTBITMAPSWPROC)(HDC hDC, DWORD first, DWORD count, DWORD listBase);
277typedef BOOL (GLAD_API_PTR *PFNWGLUSEFONTOUTLINESPROC)(HDC hDC, DWORD first, DWORD count, DWORD listBase, FLOAT deviation, FLOAT extrusion, int format, LPGLYPHMETRICSFLOAT lpgmf);
278typedef BOOL (GLAD_API_PTR *PFNWGLUSEFONTOUTLINESAPROC)(HDC hDC, DWORD first, DWORD count, DWORD listBase, FLOAT deviation, FLOAT extrusion, int format, LPGLYPHMETRICSFLOAT lpgmf);
279typedef BOOL (GLAD_API_PTR *PFNWGLUSEFONTOUTLINESWPROC)(HDC hDC, DWORD first, DWORD count, DWORD listBase, FLOAT deviation, FLOAT extrusion, int format, LPGLYPHMETRICSFLOAT lpgmf);
280
282#define wglGetExtensionsStringARB glad_wglGetExtensionsStringARB
284#define wglGetExtensionsStringEXT glad_wglGetExtensionsStringEXT
286#define wglGetSwapIntervalEXT glad_wglGetSwapIntervalEXT
288#define wglSwapIntervalEXT glad_wglSwapIntervalEXT
289
290
291
292
293
294GLAD_API_CALL int gladLoadWGLUserPtr(HDC hdc, GLADuserptrloadfunc load, void *userptr);
295GLAD_API_CALL int gladLoadWGL(HDC hdc, GLADloadfunc load);
296
297
298#ifdef __cplusplus
299}
300#endif
301#endif
#define FLOAT(id)
#define BOOL(id)
Definition: wgl.h:222
DWORD Flags
Definition: wgl.h:226
CHAR DeviceName[32]
Definition: wgl.h:224
RECT rcVirtualScreen
Definition: wgl.h:227
DWORD cb
Definition: wgl.h:223
CHAR DeviceString[128]
Definition: wgl.h:225
GLADapiproc(* GLADuserptrloadfunc)(void *userptr, const char *name)
Definition: wgl.h:150
BOOL(GLAD_API_PTR * PFNWGLUSEFONTBITMAPSPROC)(HDC hDC, DWORD first, DWORD count, DWORD listBase)
Definition: wgl.h:274
BOOL(GLAD_API_PTR * PFNSWAPBUFFERSPROC)(HDC hdc)
Definition: wgl.h:255
BOOL(GLAD_API_PTR * PFNWGLSHARELISTSPROC)(HGLRC hrcSrvShare, HGLRC hrcSrvSource)
Definition: wgl.h:271
BOOL(GLAD_API_PTR * PFNWGLUSEFONTBITMAPSAPROC)(HDC hDC, DWORD first, DWORD count, DWORD listBase)
Definition: wgl.h:275
GLAD_API_CALL int GLAD_WGL_EXT_swap_control
Definition: wgl.h:247
BOOL(GLAD_API_PTR * PFNWGLREALIZELAYERPALETTEPROC)(HDC hdc, int iLayerPlane, BOOL bRealize)
Definition: wgl.h:269
DECLARE_HANDLE(HPBUFFERARB)
BOOL(GLAD_API_PTR * PFNWGLCOPYCONTEXTPROC)(HGLRC hglrcSrc, HGLRC hglrcDst, UINT mask)
Definition: wgl.h:256
const char *(GLAD_API_PTR * PFNWGLGETEXTENSIONSSTRINGARBPROC)(HDC hdc)
Definition: wgl.h:263
BOOL(GLAD_API_PTR * PFNWGLUSEFONTOUTLINESWPROC)(HDC hDC, DWORD first, DWORD count, DWORD listBase, FLOAT deviation, FLOAT extrusion, int format, LPGLYPHMETRICSFLOAT lpgmf)
Definition: wgl.h:279
UINT(GLAD_API_PTR * PFNGETENHMETAFILEPIXELFORMATPROC)(HENHMETAFILE hemf, UINT cbBuffer, PIXELFORMATDESCRIPTOR *ppfd)
Definition: wgl.h:252
void(* GLADpostcallback)(void *ret, const char *name, GLADapiproc apiproc, int len_args,...)
Definition: wgl.h:153
void(* GLADapiproc)(void)
Definition: wgl.h:147
int(GLAD_API_PTR * PFNCHOOSEPIXELFORMATPROC)(HDC hDc, const PIXELFORMATDESCRIPTOR *pPfd)
Definition: wgl.h:250
GLAD_API_CALL int gladLoadWGLUserPtr(HDC hdc, GLADuserptrloadfunc load, void *userptr)
Definition: wgl.cpp:105
BOOL(GLAD_API_PTR * PFNWGLUSEFONTBITMAPSWPROC)(HDC hDC, DWORD first, DWORD count, DWORD listBase)
Definition: wgl.h:276
BOOL(GLAD_API_PTR * PFNWGLUSEFONTOUTLINESAPROC)(HDC hDC, DWORD first, DWORD count, DWORD listBase, FLOAT deviation, FLOAT extrusion, int format, LPGLYPHMETRICSFLOAT lpgmf)
Definition: wgl.h:278
int(GLAD_API_PTR * PFNWGLGETLAYERPALETTEENTRIESPROC)(HDC hdc, int iLayerPlane, int iStart, int cEntries, COLORREF *pcr)
Definition: wgl.h:265
GLAD_API_CALL int GLAD_WGL_EXT_extensions_string
Definition: wgl.h:245
HDC(GLAD_API_PTR * PFNWGLGETCURRENTDCPROC)(void)
Definition: wgl.h:262
BOOL(GLAD_API_PTR * PFNSETPIXELFORMATPROC)(HDC hdc, int ipfd, const PIXELFORMATDESCRIPTOR *ppfd)
Definition: wgl.h:254
GLAD_API_CALL PFNWGLGETSWAPINTERVALEXTPROC glad_wglGetSwapIntervalEXT
Definition: wgl.h:285
HGLRC(GLAD_API_PTR * PFNWGLGETCURRENTCONTEXTPROC)(void)
Definition: wgl.h:261
HGLRC(GLAD_API_PTR * PFNWGLCREATELAYERCONTEXTPROC)(HDC hDc, int level)
Definition: wgl.h:258
GLAD_API_CALL PFNWGLGETEXTENSIONSSTRINGARBPROC glad_wglGetExtensionsStringARB
Definition: wgl.h:281
int(GLAD_API_PTR * PFNDESCRIBEPIXELFORMATPROC)(HDC hdc, int ipfd, UINT cjpfd, PIXELFORMATDESCRIPTOR *ppfd)
Definition: wgl.h:251
BOOL(GLAD_API_PTR * PFNWGLDESCRIBELAYERPLANEPROC)(HDC hDc, int pixelFormat, int layerPlane, UINT nBytes, LAYERPLANEDESCRIPTOR *plpd)
Definition: wgl.h:260
#define GLAD_API_CALL
Definition: wgl.h:121
GLAD_API_CALL int gladLoadWGL(HDC hdc, GLADloadfunc load)
Definition: wgl.cpp:122
BOOL(GLAD_API_PTR * PFNWGLUSEFONTOUTLINESPROC)(HDC hDC, DWORD first, DWORD count, DWORD listBase, FLOAT deviation, FLOAT extrusion, int format, LPGLYPHMETRICSFLOAT lpgmf)
Definition: wgl.h:277
int(GLAD_API_PTR * PFNWGLSETLAYERPALETTEENTRIESPROC)(HDC hdc, int iLayerPlane, int iStart, int cEntries, const COLORREF *pcr)
Definition: wgl.h:270
GLAD_API_CALL PFNWGLGETEXTENSIONSSTRINGEXTPROC glad_wglGetExtensionsStringEXT
Definition: wgl.h:283
BOOL(GLAD_API_PTR * PFNWGLMAKECURRENTPROC)(HDC hDc, HGLRC newContext)
Definition: wgl.h:268
HGLRC(GLAD_API_PTR * PFNWGLCREATECONTEXTPROC)(HDC hDc)
Definition: wgl.h:257
BOOL(GLAD_API_PTR * PFNWGLSWAPLAYERBUFFERSPROC)(HDC hdc, UINT fuFlags)
Definition: wgl.h:273
GLAD_API_CALL PFNWGLSWAPINTERVALEXTPROC glad_wglSwapIntervalEXT
Definition: wgl.h:287
GLAD_API_CALL int GLAD_WGL_ARB_extensions_string
Definition: wgl.h:243
PROC(GLAD_API_PTR * PFNWGLGETPROCADDRESSPROC)(LPCSTR lpszProc)
Definition: wgl.h:266
void(* GLADprecallback)(const char *name, GLADapiproc apiproc, int len_args,...)
Definition: wgl.h:152
int(GLAD_API_PTR * PFNGETPIXELFORMATPROC)(HDC hdc)
Definition: wgl.h:253
GLADapiproc(* GLADloadfunc)(const char *name)
Definition: wgl.h:149
const char *(GLAD_API_PTR * PFNWGLGETEXTENSIONSSTRINGEXTPROC)(void)
Definition: wgl.h:264
GLAD_API_CALL int GLAD_WGL_VERSION_1_0
Definition: wgl.h:241
#define GLAD_API_PTR
Definition: wgl.h:130
BOOL(GLAD_API_PTR * PFNWGLSWAPINTERVALEXTPROC)(int interval)
Definition: wgl.h:272
int(GLAD_API_PTR * PFNWGLGETSWAPINTERVALEXTPROC)(void)
Definition: wgl.h:267
BOOL(GLAD_API_PTR * PFNWGLDELETECONTEXTPROC)(HGLRC oldContext)
Definition: wgl.h:259
struct _GPU_DEVICE * PGPU_DEVICE
Definition: wgl.h:237