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