]> git.cworth.org Git - apitrace/blob - specs/wglapi.py
9f83237afccaab7dd941f7b66449f2a8d6ef9bc9
[apitrace] / specs / wglapi.py
1 ##########################################################################
2 #
3 # Copyright 2008-2010 VMware, Inc.
4 # All Rights Reserved.
5 #
6 # Permission is hereby granted, free of charge, to any person obtaining a copy
7 # of this software and associated documentation files (the "Software"), to deal
8 # in the Software without restriction, including without limitation the rights
9 # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 # copies of the Software, and to permit persons to whom the Software is
11 # furnished to do so, subject to the following conditions:
12 #
13 # The above copyright notice and this permission notice shall be included in
14 # all copies or substantial portions of the Software.
15 #
16 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 # THE SOFTWARE.
23 #
24 ##########################################################################/
25
26
27 """WGL API description"""
28
29
30 from glapi import *
31 from winapi import *
32 from wglenum import *
33
34
35 wglapi = Module("WGL")
36
37
38 HGLRC = Alias("HGLRC", HANDLE)
39 PROC = Opaque("PROC")
40
41 PFD = Flags(DWORD, [
42     "PFD_DOUBLEBUFFER",
43     "PFD_STEREO",
44     "PFD_DRAW_TO_WINDOW",
45     "PFD_DRAW_TO_BITMAP",
46     "PFD_SUPPORT_GDI",
47     "PFD_SUPPORT_OPENGL",
48     "PFD_GENERIC_FORMAT",
49     "PFD_NEED_PALETTE",
50     "PFD_NEED_SYSTEM_PALETTE",
51     "PFD_SWAP_EXCHANGE",
52     "PFD_SWAP_COPY",
53     "PFD_SWAP_LAYER_BUFFERS",
54     "PFD_GENERIC_ACCELERATED",
55     "PFD_SUPPORT_DIRECTDRAW",
56     "PFD_SUPPORT_COMPOSITION",
57     "PFD_DEPTH_DONTCARE",
58     "PFD_DOUBLEBUFFER_DONTCARE",
59     "PFD_STEREO_DONTCARE",
60 ])
61
62 PIXELFORMATDESCRIPTOR = Struct("PIXELFORMATDESCRIPTOR", [
63     (WORD, "nSize"),
64     (WORD, "nVersion"),
65     (PFD, "dwFlags"),
66     (BYTE, "iPixelType"),
67     (BYTE, "cColorBits"),
68     (BYTE, "cRedBits"),
69     (BYTE, "cRedShift"),
70     (BYTE, "cGreenBits"),
71     (BYTE, "cGreenShift"),
72     (BYTE, "cBlueBits"),
73     (BYTE, "cBlueShift"),
74     (BYTE, "cAlphaBits"),
75     (BYTE, "cAlphaShift"),
76     (BYTE, "cAccumBits"),
77     (BYTE, "cAccumRedBits"),
78     (BYTE, "cAccumGreenBits"),
79     (BYTE, "cAccumBlueBits"),
80     (BYTE, "cAccumAlphaBits"),
81     (BYTE, "cDepthBits"),
82     (BYTE, "cStencilBits"),
83     (BYTE, "cAuxBuffers"),
84     (BYTE, "iLayerType"),
85     (BYTE, "bReserved"),
86     (DWORD, "dwLayerMask"),
87     (DWORD, "dwVisibleMask"),
88     (DWORD, "dwDamageMask"),
89 ])
90
91 POINTFLOAT = Struct("POINTFLOAT", [
92     (FLOAT, "x"),
93     (FLOAT, "y"),
94 ])
95
96 GLYPHMETRICSFLOAT = Struct("GLYPHMETRICSFLOAT", [
97     (FLOAT, "gmfBlackBoxX"),
98     (FLOAT, "gmfBlackBoxY"),
99     (POINTFLOAT, "gmfptGlyphOrigin"),
100     (FLOAT, "gmfCellIncX"),
101     (FLOAT, "gmfCellIncY"),
102 ])
103 LPGLYPHMETRICSFLOAT = Pointer(GLYPHMETRICSFLOAT)
104
105 COLORREF = Alias("COLORREF", DWORD)
106
107
108 LAYERPLANEDESCRIPTOR = Struct("LAYERPLANEDESCRIPTOR", [
109     (WORD, "nSize"),
110     (WORD, "nVersion"),
111     (DWORD, "dwFlags"),
112     (BYTE, "iPixelType"),
113     (BYTE, "cColorBits"),
114     (BYTE, "cRedBits"),
115     (BYTE, "cRedShift"),
116     (BYTE, "cGreenBits"),
117     (BYTE, "cGreenShift"),
118     (BYTE, "cBlueBits"),
119     (BYTE, "cBlueShift"),
120     (BYTE, "cAlphaBits"),
121     (BYTE, "cAlphaShift"),
122     (BYTE, "cAccumBits"),
123     (BYTE, "cAccumRedBits"),
124     (BYTE, "cAccumGreenBits"),
125     (BYTE, "cAccumBlueBits"),
126     (BYTE, "cAccumAlphaBits"),
127     (BYTE, "cDepthBits"),
128     (BYTE, "cStencilBits"),
129     (BYTE, "cAuxBuffers"),
130     (BYTE, "iLayerPlane"),
131     (BYTE, "bReserved"),
132     (COLORREF, "crTransparent"),
133 ])
134 LPLAYERPLANEDESCRIPTOR = Pointer(LAYERPLANEDESCRIPTOR)
135
136 WGLSWAP = Struct("WGLSWAP", [
137     (HDC, "hdc"),
138     (UINT, "uiFlags"),
139 ])
140
141 WGLContextAttribs = AttribArray(WGLenum, [
142     ('WGL_CONTEXT_MAJOR_VERSION_ARB', Int),
143     ('WGL_CONTEXT_MINOR_VERSION_ARB', Int),
144     ('WGL_CONTEXT_LAYER_PLANE_ARB', Int),
145     ('WGL_CONTEXT_FLAGS_ARB', Flags(Int, ["WGL_CONTEXT_DEBUG_BIT_ARB", "WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB"])),
146     ('WGL_CONTEXT_PROFILE_MASK_ARB', Flags(Int, ["WGL_CONTEXT_CORE_PROFILE_BIT_ARB", "WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB"]))
147 ])
148
149 #ignoring the float attribs because it's doubtful that anyone uses them
150 WGLPixelFormatARBAttribs = AttribArray(WGLenum, [
151     ('WGL_DRAW_TO_WINDOW_ARB', BOOL),
152     ('WGL_DRAW_TO_BITMAP_ARB', BOOL),
153     ('WGL_ACCELERATION_ARB', FakeEnum(Int, ['WGL_NO_ACCELERATION_ARB', 'WGL_GENERIC_ACCELERATION_ARB', 'WGL_FULL_ACCELERATION_ARB'])),
154     ('WGL_NEED_PALETTE_ARB', BOOL),
155     ('WGL_NEED_SYSTEM_PALETTE_ARB', BOOL),
156     ('WGL_SWAP_LAYER_BUFFERS_ARB', BOOL),
157     ('WGL_SWAP_METHOD_ARB', FakeEnum(Int, ['WGL_SWAP_EXCHANGE_ARB', 'WGL_SWAP_COPY_ARB', 'WGL_SWAP_UNDEFINED_ARB'])),
158     ('WGL_NUMBER_OVERLAYS_ARB', Int),
159     ('WGL_NUMBER_UNDERLAYS_ARB', Int),
160     ('WGL_SHARE_DEPTH_ARB', BOOL),
161     ('WGL_SHARE_STENCIL_ARB', BOOL),
162     ('WGL_SHARE_ACCUM_ARB', BOOL),
163     ('WGL_SUPPORT_GDI_ARB', BOOL),
164     ('WGL_SUPPORT_OPENGL_ARB', BOOL),
165     ('WGL_DOUBLE_BUFFER_ARB', BOOL),
166     ('WGL_STEREO_ARB', BOOL),
167     ('WGL_PIXEL_TYPE_ARB', FakeEnum(Int, ['WGL_TYPE_RGBA_ARB', 'WGL_TYPE_COLORINDEX_ARB'])),
168     ('WGL_COLOR_BITS_ARB', Int),
169     ('WGL_RED_BITS_ARB', Int),
170     ('WGL_GREEN_BITS_ARB', Int),
171     ('WGL_BLUE_BITS_ARB', Int),
172     ('WGL_ALPHA_BITS_ARB', Int),
173     ('WGL_ACCUM_BITS_ARB', Int),
174     ('WGL_ACCUM_RED_BITS_ARB', Int),
175     ('WGL_ACCUM_GREEN_BITS_ARB', Int),
176     ('WGL_ACCUM_BLUE_BITS_ARB', Int),
177     ('WGL_ACCUM_ALPHA_BITS_ARB', Int),
178     ('WGL_DEPTH_BITS_ARB', Int),
179     ('WGL_STENCIL_BITS_ARB', Int),
180     ('WGL_AUX_BUFFERS_ARB', Int)
181 ])
182
183 WGLPixelFormatEXTAttribs = AttribArray(WGLenum, [
184 #    ('WGL_NUMBER_PIXEL_FORMATS_EXT', Int), # not in ...ARB # only allowed in wglGetPixelFormatAttribiv
185     ('WGL_DRAW_TO_WINDOW_ARB', BOOL),
186     ('WGL_DRAW_TO_BITMAP_ARB', BOOL),
187     ('WGL_ACCELERATION_ARB', FakeEnum(Int, ['WGL_NO_ACCELERATION_ARB', 'WGL_GENERIC_ACCELERATION_ARB', 'WGL_FULL_ACCELERATION_ARB'])),
188     ('WGL_NEED_PALETTE_ARB', BOOL),
189     ('WGL_NEED_SYSTEM_PALETTE_ARB', BOOL),
190     ('WGL_SWAP_LAYER_BUFFERS_ARB', BOOL),
191     ('WGL_SWAP_METHOD_ARB', FakeEnum(Int, ['WGL_SWAP_EXCHANGE_ARB', 'WGL_SWAP_COPY_ARB', 'WGL_SWAP_UNDEFINED_ARB'])),
192     ('WGL_NUMBER_OVERLAYS_ARB', Int),
193     ('WGL_NUMBER_UNDERLAYS_ARB', Int),
194     ('WGL_TRANSPARENT_EXT', BOOL), # not in ...ARB
195     ('WGL_TRANSPARENT_VALUE_EXT', Int), # not in ...ARB
196     ('WGL_SHARE_DEPTH_ARB', BOOL),
197     ('WGL_SHARE_STENCIL_ARB', BOOL),
198     ('WGL_SHARE_ACCUM_ARB', BOOL),
199     ('WGL_SUPPORT_GDI_ARB', BOOL),
200     ('WGL_SUPPORT_OPENGL_ARB', BOOL),
201     ('WGL_DOUBLE_BUFFER_ARB', BOOL),
202     ('WGL_STEREO_ARB', BOOL),
203     ('WGL_PIXEL_TYPE_ARB', FakeEnum(Int, ['WGL_TYPE_RGBA_ARB', 'WGL_TYPE_COLORINDEX_ARB'])),
204     ('WGL_COLOR_BITS_ARB', Int),
205     ('WGL_RED_BITS_ARB', Int),
206     ('WGL_RED_SHIFT_EXT', Int), # not in ...ARB
207     ('WGL_GREEN_BITS_ARB', Int),
208     ('WGL_GREEN_SHIFT_EXT', Int), # not in ...ARB
209     ('WGL_BLUE_BITS_ARB', Int),
210     ('WGL_BLUE_SHIFT_EXT', Int), # not in ...ARB
211     ('WGL_ALPHA_BITS_ARB', Int),
212     ('WGL_ALPHA_SHIFT_EXT', Int), # not in ...ARB
213     ('WGL_ACCUM_BITS_ARB', Int),
214     ('WGL_ACCUM_RED_BITS_ARB', Int),
215     ('WGL_ACCUM_GREEN_BITS_ARB', Int),
216     ('WGL_ACCUM_BLUE_BITS_ARB', Int),
217     ('WGL_ACCUM_ALPHA_BITS_ARB', Int),
218     ('WGL_DEPTH_BITS_ARB', Int),
219     ('WGL_STENCIL_BITS_ARB', Int),
220     ('WGL_AUX_BUFFERS_ARB', Int)
221 ])
222
223 WGLCreatePbufferARBAttribs = AttribArray(WGLenum, [
224     ('WGL_PBUFFER_LARGEST_ARB', Int)
225 ])
226
227 CubeFaceEnum = FakeEnum(Int, [
228     'WGL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB',
229     'WGL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB',
230     'WGL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB',
231     'WGL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB',
232     'WGL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB',
233     'WGL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB'
234 ])
235
236 WGLSetPbufferARBAttribs = AttribArray(WGLenum, [
237     ('WGL_MIPMAP_LEVEL_ARB', Int),
238     ('WGL_CUBE_MAP_FACE_ARB', CubeFaceEnum)
239 ])
240
241 HPBUFFERARB = Alias("HPBUFFERARB", HANDLE)
242
243
244 wglapi.addFunctions([
245     # WGL
246     StdFunction(HGLRC, "wglCreateContext", [(HDC, "hdc")]),
247     StdFunction(BOOL, "wglDeleteContext", [(HGLRC, "hglrc")]),
248     StdFunction(HGLRC, "wglGetCurrentContext", [], sideeffects=False),
249     StdFunction(BOOL, "wglMakeCurrent", [(HDC, "hdc"), (HGLRC, "hglrc")]),
250     StdFunction(BOOL, "wglCopyContext", [(HGLRC, "hglrcSrc"), (HGLRC, "hglrcDst"), (UINT, "mask")]),
251     StdFunction(Int, "wglChoosePixelFormat", [(HDC, "hdc"), (Pointer(Const(PIXELFORMATDESCRIPTOR)), "ppfd")]), 
252     StdFunction(Int, "wglDescribePixelFormat", [(HDC, "hdc"), (Int, "iPixelFormat"), (UINT, "nBytes"), Out(Pointer(PIXELFORMATDESCRIPTOR), "ppfd")]),
253     StdFunction(HDC, "wglGetCurrentDC", [], sideeffects=False),
254     StdFunction(PROC, "wglGetDefaultProcAddress", [(LPCSTR, "lpszProc")], sideeffects=False),
255     StdFunction(Int, "wglGetPixelFormat", [(HDC, "hdc")], sideeffects=False),
256     StdFunction(BOOL, "wglSetPixelFormat", [(HDC, "hdc"), (Int, "iPixelFormat"), (Pointer(Const(PIXELFORMATDESCRIPTOR)), "ppfd")]),
257     StdFunction(BOOL, "wglSwapBuffers", [(HDC, "hdc")]),
258     StdFunction(BOOL, "wglShareLists", [(HGLRC, "hglrc1"), (HGLRC, "hglrc2")]),
259     StdFunction(HGLRC, "wglCreateLayerContext", [(HDC, "hdc"), (Int, "iLayerPlane")]),
260     StdFunction(BOOL, "wglDescribeLayerPlane", [(HDC, "hdc"), (Int, "iPixelFormat"), (Int, "iLayerPlane"), (UINT, "nBytes"), Out(Pointer(LAYERPLANEDESCRIPTOR), "plpd")]),
261     StdFunction(Int, "wglSetLayerPaletteEntries", [(HDC, "hdc"), (Int, "iLayerPlane"), (Int, "iStart"), (Int, "cEntries"), (Array(Const(COLORREF), "cEntries"), "pcr")]),
262     StdFunction(Int, "wglGetLayerPaletteEntries", [(HDC, "hdc"), (Int, "iLayerPlane"), (Int, "iStart"), (Int, "cEntries"), Out(Array(COLORREF, "cEntries"), "pcr")], sideeffects=False),
263     StdFunction(BOOL, "wglRealizeLayerPalette", [(HDC, "hdc"), (Int, "iLayerPlane"), (BOOL, "bRealize")]),
264     StdFunction(BOOL, "wglSwapLayerBuffers", [(HDC, "hdc"), (UINT, "fuPlanes")]),
265     StdFunction(BOOL, "wglUseFontBitmapsA", [(HDC, "hdc"), (DWORD, "first"), (DWORD, "count"), (DWORD, "listBase")]),
266     StdFunction(BOOL, "wglUseFontBitmapsW", [(HDC, "hdc"), (DWORD, "first"), (DWORD, "count"), (DWORD, "listBase")]),
267     StdFunction(DWORD, "wglSwapMultipleBuffers", [(UINT, "n"), (Array(Const(WGLSWAP), "n"), "ps")]),
268     StdFunction(BOOL, "wglUseFontOutlinesA", [(HDC, "hdc"), (DWORD, "first"), (DWORD, "count"), (DWORD, "listBase"), (FLOAT, "deviation"), (FLOAT, "extrusion"), (Int, "format"), (LPGLYPHMETRICSFLOAT, "lpgmf")]),
269     StdFunction(BOOL, "wglUseFontOutlinesW", [(HDC, "hdc"), (DWORD, "first"), (DWORD, "count"), (DWORD, "listBase"), (FLOAT, "deviation"), (FLOAT, "extrusion"), (Int, "format"), (LPGLYPHMETRICSFLOAT, "lpgmf")]),
270
271     # WGL_ARB_buffer_region
272     StdFunction(HANDLE, "wglCreateBufferRegionARB", [(HDC, "hDC"), (Int, "iLayerPlane"), (UINT, "uType")]),
273     StdFunction(VOID, "wglDeleteBufferRegionARB", [(HANDLE, "hRegion")]),
274     StdFunction(BOOL, "wglSaveBufferRegionARB", [(HANDLE, "hRegion"), (Int, "x"), (Int, "y"), (Int, "width"), (Int, "height")]),
275     StdFunction(BOOL, "wglRestoreBufferRegionARB", [(HANDLE, "hRegion"), (Int, "x"), (Int, "y"), (Int, "width"), (Int, "height"), (Int, "xSrc"), (Int, "ySrc")]),
276
277     # WGL_ARB_extensions_string
278     StdFunction(ConstCString, "wglGetExtensionsStringARB", [(HDC, "hdc")], sideeffects=False),
279
280     # WGL_ARB_pixel_format
281     StdFunction(BOOL, "wglGetPixelFormatAttribivARB", [(HDC, "hdc"), (Int, "iPixelFormat"), (Int, "iLayerPlane"), (UINT, "nAttributes"), (Array(WGLenum, "nAttributes"), "piAttributes"), Out(Array(Int, "nAttributes"), "piValues")], sideeffects=False),
282     StdFunction(BOOL, "wglGetPixelFormatAttribfvARB", [(HDC, "hdc"), (Int, "iPixelFormat"), (Int, "iLayerPlane"), (UINT, "nAttributes"), (Array(WGLenum, "nAttributes"), "piAttributes"), Out(Array(FLOAT, "nAttributes"), "pfValues")], sideeffects=False),
283     StdFunction(BOOL, "wglChoosePixelFormatARB", [(HDC, "hdc"), (WGLPixelFormatARBAttribs, "piAttribIList"), (Array(Const(FLOAT), "_AttribPairList_size(pfAttribFList)"), "pfAttribFList"), (UINT, "nMaxFormats"), Out(Array(Int, "(*nNumFormats)"), "piFormats"), Out(Pointer(UINT), "nNumFormats")]),
284
285     # WGL_ARB_make_current_read
286     StdFunction(BOOL, "wglMakeContextCurrentARB", [(HDC, "hDrawDC"), (HDC, "hReadDC"), (HGLRC, "hglrc")]),
287     StdFunction(HDC, "wglGetCurrentReadDCARB", [], sideeffects=False),
288
289     # WGL_ARB_pbuffer
290     StdFunction(HPBUFFERARB, "wglCreatePbufferARB", [(HDC, "hDC"), (Int, "iPixelFormat"), (Int, "iWidth"), (Int, "iHeight"), (WGLCreatePbufferARBAttribs, "piAttribList")]),
291     StdFunction(HDC, "wglGetPbufferDCARB", [(HPBUFFERARB, "hPbuffer")]),
292     StdFunction(Int, "wglReleasePbufferDCARB", [(HPBUFFERARB, "hPbuffer"), (HDC, "hDC")]),
293     StdFunction(BOOL, "wglDestroyPbufferARB", [(HPBUFFERARB, "hPbuffer")]),
294     StdFunction(BOOL, "wglQueryPbufferARB", [(HPBUFFERARB, "hPbuffer"), (WGLenum, "iAttribute"), Out(Pointer(Int), "piValue")], sideeffects=False),
295
296     # WGL_ARB_render_texture
297     StdFunction(BOOL, "wglBindTexImageARB", [(HPBUFFERARB, "hPbuffer"), (Int, "iBuffer")]),
298     StdFunction(BOOL, "wglReleaseTexImageARB", [(HPBUFFERARB, "hPbuffer"), (Int, "iBuffer")]),
299     StdFunction(BOOL, "wglSetPbufferAttribARB", [(HPBUFFERARB, "hPbuffer"), (WGLSetPbufferARBAttribs, "piAttribList")]),
300
301     # WGL_ARB_create_context
302     StdFunction(HGLRC, "wglCreateContextAttribsARB", [(HDC, "hDC"), (HGLRC, "hShareContext"), (WGLContextAttribs, "attribList")]),
303
304     # WGL_EXT_extensions_string
305     StdFunction(ConstCString, "wglGetExtensionsStringEXT", [], sideeffects=False),
306
307     # WGL_EXT_make_current_read
308     StdFunction(BOOL, "wglMakeContextCurrentEXT", [(HDC, "hDrawDC"), (HDC, "hReadDC"), (HGLRC, "hglrc")]),
309     StdFunction(HDC, "wglGetCurrentReadDCEXT", [], sideeffects=False),
310
311     # WGL_EXT_pixel_format
312     StdFunction(BOOL, "wglGetPixelFormatAttribivEXT", [(HDC, "hdc"), (Int, "iPixelFormat"), (Int, "iLayerPlane"), (UINT, "nAttributes"), (Array(WGLenum, "nAttributes"), "piAttributes"), Out(Array(Int, "nAttributes"), "piValues")], sideeffects=False),
313     StdFunction(BOOL, "wglGetPixelFormatAttribfvEXT", [(HDC, "hdc"), (Int, "iPixelFormat"), (Int, "iLayerPlane"), (UINT, "nAttributes"), (Array(WGLenum, "nAttributes"), "piAttributes"), Out(Array(FLOAT, "nAttributes"), "pfValues")], sideeffects=False),
314     StdFunction(BOOL, "wglChoosePixelFormatEXT", [(HDC, "hdc"), (WGLPixelFormatEXTAttribs, "piAttribIList"), (Array(Const(FLOAT), "_AttribPairList_size(pfAttribFList)"), "pfAttribFList"), (UINT, "nMaxFormats"), Out(Array(Int, "*nNumFormats"), "piFormats"), Out(Pointer(UINT), "nNumFormats")]),
315
316     # WGL_EXT_swap_control
317     StdFunction(BOOL, "wglSwapIntervalEXT", [(Int, "interval")]),
318     StdFunction(Int, "wglGetSwapIntervalEXT", [], sideeffects=False),
319
320     # WGL_NV_vertex_array_range
321     StdFunction(OpaquePointer(Void), "wglAllocateMemoryNV", [(GLsizei, "size"), (GLfloat, "readfreq"), (GLfloat, "writefreq"), (GLfloat, "priority")]),
322     StdFunction(Void, "wglFreeMemoryNV", [(OpaquePointer(Void), "pointer")]),
323
324     # must be last
325     StdFunction(PROC, "wglGetProcAddress", [(LPCSTR, "lpszProc")]),
326 ])