Subversion Repositories eduke32

Rev

Rev 6948 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
6656 pogokeen 1
/*
2
 
7752 pogokeen 3
    WGL loader generated by glad 0.1.30 on Thu Jul  4 02:04:37 2019.
6656 pogokeen 4
 
5
    Language/Generator: C/C++
6
    Specification: wgl
7
    APIs: wgl=1.0
8
    Profile: -
9
    Extensions:
10
        WGL_ARB_create_context,
11
        WGL_ARB_create_context_profile,
12
        WGL_ARB_extensions_string,
13
        WGL_ARB_pixel_format,
14
        WGL_EXT_extensions_string,
15
        WGL_EXT_swap_control
16
    Loader: True
17
    Local files: False
18
    Omit khrplatform: False
7752 pogokeen 19
    Reproducible: False
6656 pogokeen 20
 
21
    Commandline:
22
        --api="wgl=1.0" --generator="c" --spec="wgl" --extensions="WGL_ARB_create_context,WGL_ARB_create_context_profile,WGL_ARB_extensions_string,WGL_ARB_pixel_format,WGL_EXT_extensions_string,WGL_EXT_swap_control"
23
    Online:
7752 pogokeen 24
        https://glad.dav1d.de/#language=c&specification=wgl&loader=on&api=wgl%3D1.0&extensions=WGL_ARB_create_context&extensions=WGL_ARB_create_context_profile&extensions=WGL_ARB_extensions_string&extensions=WGL_ARB_pixel_format&extensions=WGL_EXT_extensions_string&extensions=WGL_EXT_swap_control
6656 pogokeen 25
*/
26
 
27
 
28
#ifndef WINAPI
29
#ifndef WIN32_LEAN_AND_MEAN
30
#define WIN32_LEAN_AND_MEAN 1
31
#endif
32
#ifndef NOMINMAX
33
#define NOMINMAX 1
34
#endif
35
#include <windows.h>
36
#endif
37
 
38
#include <glad/glad.h>
39
 
40
#ifndef __glad_wglext_h_
41
 
42
#ifdef __wglext_h_
43
#error WGL header already included, remove this include, glad already provides it
44
#endif
45
 
46
#define __glad_wglext_h_
47
#define __wglext_h_
48
 
49
#ifndef APIENTRY
50
#define APIENTRY
51
#endif
52
#ifndef APIENTRYP
53
#define APIENTRYP APIENTRY *
54
#endif
55
 
56
#ifdef __cplusplus
57
extern "C" {
58
#endif
59
 
60
typedef void* (* GLADloadproc)(const char *name);
61
 
62
#ifndef GLAPI
63
# if defined(GLAD_GLAPI_EXPORT)
64
#  if defined(_WIN32) || defined(__CYGWIN__)
65
#   if defined(GLAD_GLAPI_EXPORT_BUILD)
66
#    if defined(__GNUC__)
67
#     define GLAPI __attribute__ ((dllexport)) extern
68
#    else
69
#     define GLAPI __declspec(dllexport) extern
70
#    endif
71
#   else
72
#    if defined(__GNUC__)
73
#     define GLAPI __attribute__ ((dllimport)) extern
74
#    else
75
#     define GLAPI __declspec(dllimport) extern
76
#    endif
77
#   endif
78
#  elif defined(__GNUC__) && defined(GLAD_GLAPI_EXPORT_BUILD)
79
#   define GLAPI __attribute__ ((visibility ("default"))) extern
80
#  else
81
#   define GLAPI extern
82
#  endif
83
# else
84
#  define GLAPI extern
85
# endif
86
#endif
87
 
88
GLAPI int gladLoadWGL(HDC hdc);
89
 
90
GLAPI int gladLoadWGLLoader(GLADloadproc, HDC hdc);
91
 
92
struct _GPU_DEVICE {
93
    DWORD  cb;
94
    CHAR   DeviceName[32];
95
    CHAR   DeviceString[128];
96
    DWORD  Flags;
97
    RECT   rcVirtualScreen;
98
};
99
DECLARE_HANDLE(HPBUFFERARB);
100
DECLARE_HANDLE(HPBUFFEREXT);
101
DECLARE_HANDLE(HVIDEOOUTPUTDEVICENV);
102
DECLARE_HANDLE(HPVIDEODEV);
103
DECLARE_HANDLE(HPGPUNV);
104
DECLARE_HANDLE(HGPUNV);
105
DECLARE_HANDLE(HVIDEOINPUTDEVICENV);
106
typedef struct _GPU_DEVICE GPU_DEVICE;
107
typedef struct _GPU_DEVICE *PGPU_DEVICE;
108
#define WGL_CONTEXT_DEBUG_BIT_ARB 0x00000001
109
#define WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x00000002
110
#define WGL_CONTEXT_MAJOR_VERSION_ARB 0x2091
111
#define WGL_CONTEXT_MINOR_VERSION_ARB 0x2092
112
#define WGL_CONTEXT_LAYER_PLANE_ARB 0x2093
113
#define WGL_CONTEXT_FLAGS_ARB 0x2094
114
#define ERROR_INVALID_VERSION_ARB 0x2095
115
#define WGL_CONTEXT_PROFILE_MASK_ARB 0x9126
116
#define WGL_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001
117
#define WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002
118
#define ERROR_INVALID_PROFILE_ARB 0x2096
119
#define WGL_NUMBER_PIXEL_FORMATS_ARB 0x2000
120
#define WGL_DRAW_TO_WINDOW_ARB 0x2001
121
#define WGL_DRAW_TO_BITMAP_ARB 0x2002
122
#define WGL_ACCELERATION_ARB 0x2003
123
#define WGL_NEED_PALETTE_ARB 0x2004
124
#define WGL_NEED_SYSTEM_PALETTE_ARB 0x2005
125
#define WGL_SWAP_LAYER_BUFFERS_ARB 0x2006
126
#define WGL_SWAP_METHOD_ARB 0x2007
127
#define WGL_NUMBER_OVERLAYS_ARB 0x2008
128
#define WGL_NUMBER_UNDERLAYS_ARB 0x2009
129
#define WGL_TRANSPARENT_ARB 0x200A
130
#define WGL_TRANSPARENT_RED_VALUE_ARB 0x2037
131
#define WGL_TRANSPARENT_GREEN_VALUE_ARB 0x2038
132
#define WGL_TRANSPARENT_BLUE_VALUE_ARB 0x2039
133
#define WGL_TRANSPARENT_ALPHA_VALUE_ARB 0x203A
134
#define WGL_TRANSPARENT_INDEX_VALUE_ARB 0x203B
135
#define WGL_SHARE_DEPTH_ARB 0x200C
136
#define WGL_SHARE_STENCIL_ARB 0x200D
137
#define WGL_SHARE_ACCUM_ARB 0x200E
138
#define WGL_SUPPORT_GDI_ARB 0x200F
139
#define WGL_SUPPORT_OPENGL_ARB 0x2010
140
#define WGL_DOUBLE_BUFFER_ARB 0x2011
141
#define WGL_STEREO_ARB 0x2012
142
#define WGL_PIXEL_TYPE_ARB 0x2013
143
#define WGL_COLOR_BITS_ARB 0x2014
144
#define WGL_RED_BITS_ARB 0x2015
145
#define WGL_RED_SHIFT_ARB 0x2016
146
#define WGL_GREEN_BITS_ARB 0x2017
147
#define WGL_GREEN_SHIFT_ARB 0x2018
148
#define WGL_BLUE_BITS_ARB 0x2019
149
#define WGL_BLUE_SHIFT_ARB 0x201A
150
#define WGL_ALPHA_BITS_ARB 0x201B
151
#define WGL_ALPHA_SHIFT_ARB 0x201C
152
#define WGL_ACCUM_BITS_ARB 0x201D
153
#define WGL_ACCUM_RED_BITS_ARB 0x201E
154
#define WGL_ACCUM_GREEN_BITS_ARB 0x201F
155
#define WGL_ACCUM_BLUE_BITS_ARB 0x2020
156
#define WGL_ACCUM_ALPHA_BITS_ARB 0x2021
157
#define WGL_DEPTH_BITS_ARB 0x2022
158
#define WGL_STENCIL_BITS_ARB 0x2023
159
#define WGL_AUX_BUFFERS_ARB 0x2024
160
#define WGL_NO_ACCELERATION_ARB 0x2025
161
#define WGL_GENERIC_ACCELERATION_ARB 0x2026
162
#define WGL_FULL_ACCELERATION_ARB 0x2027
163
#define WGL_SWAP_EXCHANGE_ARB 0x2028
164
#define WGL_SWAP_COPY_ARB 0x2029
165
#define WGL_SWAP_UNDEFINED_ARB 0x202A
166
#define WGL_TYPE_RGBA_ARB 0x202B
167
#define WGL_TYPE_COLORINDEX_ARB 0x202C
168
#ifndef WGL_ARB_create_context
169
#define WGL_ARB_create_context 1
170
GLAPI int GLAD_WGL_ARB_create_context;
171
typedef HGLRC (APIENTRYP PFNWGLCREATECONTEXTATTRIBSARBPROC)(HDC hDC, HGLRC hShareContext, const int *attribList);
172
GLAPI PFNWGLCREATECONTEXTATTRIBSARBPROC glad_wglCreateContextAttribsARB;
173
#define wglCreateContextAttribsARB glad_wglCreateContextAttribsARB
174
#endif
175
#ifndef WGL_ARB_create_context_profile
176
#define WGL_ARB_create_context_profile 1
177
GLAPI int GLAD_WGL_ARB_create_context_profile;
178
#endif
179
#ifndef WGL_ARB_extensions_string
180
#define WGL_ARB_extensions_string 1
181
GLAPI int GLAD_WGL_ARB_extensions_string;
182
typedef const char * (APIENTRYP PFNWGLGETEXTENSIONSSTRINGARBPROC)(HDC hdc);
183
GLAPI PFNWGLGETEXTENSIONSSTRINGARBPROC glad_wglGetExtensionsStringARB;
184
#define wglGetExtensionsStringARB glad_wglGetExtensionsStringARB
185
#endif
186
#ifndef WGL_ARB_pixel_format
187
#define WGL_ARB_pixel_format 1
188
GLAPI int GLAD_WGL_ARB_pixel_format;
189
typedef BOOL (APIENTRYP PFNWGLGETPIXELFORMATATTRIBIVARBPROC)(HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, int *piValues);
190
GLAPI PFNWGLGETPIXELFORMATATTRIBIVARBPROC glad_wglGetPixelFormatAttribivARB;
191
#define wglGetPixelFormatAttribivARB glad_wglGetPixelFormatAttribivARB
192
typedef BOOL (APIENTRYP PFNWGLGETPIXELFORMATATTRIBFVARBPROC)(HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, FLOAT *pfValues);
193
GLAPI PFNWGLGETPIXELFORMATATTRIBFVARBPROC glad_wglGetPixelFormatAttribfvARB;
194
#define wglGetPixelFormatAttribfvARB glad_wglGetPixelFormatAttribfvARB
195
typedef BOOL (APIENTRYP PFNWGLCHOOSEPIXELFORMATARBPROC)(HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
196
GLAPI PFNWGLCHOOSEPIXELFORMATARBPROC glad_wglChoosePixelFormatARB;
197
#define wglChoosePixelFormatARB glad_wglChoosePixelFormatARB
198
#endif
199
#ifndef WGL_EXT_extensions_string
200
#define WGL_EXT_extensions_string 1
201
GLAPI int GLAD_WGL_EXT_extensions_string;
202
typedef const char * (APIENTRYP PFNWGLGETEXTENSIONSSTRINGEXTPROC)(void);
203
GLAPI PFNWGLGETEXTENSIONSSTRINGEXTPROC glad_wglGetExtensionsStringEXT;
204
#define wglGetExtensionsStringEXT glad_wglGetExtensionsStringEXT
205
#endif
206
#ifndef WGL_EXT_swap_control
207
#define WGL_EXT_swap_control 1
208
GLAPI int GLAD_WGL_EXT_swap_control;
209
typedef BOOL (APIENTRYP PFNWGLSWAPINTERVALEXTPROC)(int interval);
210
GLAPI PFNWGLSWAPINTERVALEXTPROC glad_wglSwapIntervalEXT;
211
#define wglSwapIntervalEXT glad_wglSwapIntervalEXT
212
typedef int (APIENTRYP PFNWGLGETSWAPINTERVALEXTPROC)(void);
213
GLAPI PFNWGLGETSWAPINTERVALEXTPROC glad_wglGetSwapIntervalEXT;
214
#define wglGetSwapIntervalEXT glad_wglGetSwapIntervalEXT
215
#endif
216
 
217
#ifdef __cplusplus
218
}
219
#endif
220
 
221
#endif