VirtualBox

source: vbox/trunk/src/VBox/Devices/Graphics/shaderlib/wined3d_gl.h@ 53222

Last change on this file since 53222 was 53222, checked in by vboxsync, 10 years ago

Devices/vmsvga: enabled 3D and a few warning fixes

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 261.8 KB
Line 
1/*
2 * Direct3D wine OpenGL include file
3 *
4 * Copyright 2002-2003 The wine-d3d team
5 * Copyright 2002-2004 Jason Edmeades
6 * Raphael Junqueira
7 * Copyright 2007 Roderick Colenbrander
8 *
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation; either
12 * version 2.1 of the License, or (at your option) any later version.
13 *
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
18 *
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
22 *
23 *
24 * Most OpenGL 1.0/1.1/1.2/1.3 constants/types come from the Mesa-project:
25 * Copyright (C) 1999-2006 Brian Paul
26 *
27 * From the Mesa-license:
28 * Permission is hereby granted, free of charge, to any person obtaining a
29 * copy of this software and associated documentation files (the "Software"),
30 * to deal in the Software without restriction, including without limitation
31 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
32 * and/or sell copies of the Software, and to permit persons to whom the
33 * Software is furnished to do so, subject to the following conditions:
34 *
35 * The above copyright notice and this permission notice shall be included
36 * in all copies or substantial portions of the Software.
37 *
38 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
39 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
40 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
41 * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
42 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
43 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
44 */
45
46/*
47 * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
48 * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
49 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
50 * a choice of LGPL license versions is made available with the language indicating
51 * that LGPLv2 or any later version may be used, or where a choice of which version
52 * of the LGPL is applied is otherwise unspecified.
53 */
54
55#ifndef __WINE_WINED3D_GL_H
56#define __WINE_WINED3D_GL_H
57
58#ifdef USE_WIN32_OPENGL
59#define WINE_GLAPI __stdcall
60#else
61#define WINE_GLAPI
62#endif
63
64/****************************************************
65 * OpenGL 1.0/1.1/1.2/1.3
66 * types, #defines and function pointers
67 ****************************************************/
68
69/* Types */
70typedef unsigned int GLbitfield;
71typedef unsigned char GLboolean;
72typedef signed char GLbyte;
73typedef unsigned char GLubyte;
74typedef short GLshort;
75typedef unsigned short GLushort;
76typedef int GLint;
77typedef unsigned int GLuint;
78typedef unsigned int GLenum;
79typedef float GLfloat;
80typedef int GLsizei;
81typedef float GLclampf;
82typedef double GLdouble;
83typedef double GLclampd;
84typedef void GLvoid;
85typedef ptrdiff_t GLintptr;
86typedef ptrdiff_t GLsizeiptr;
87typedef INT64 GLint64;
88typedef UINT64 GLuint64;
89typedef struct __GLsync *GLsync;
90
91/* Booleans */
92#define GL_FALSE 0x0
93#define GL_TRUE 0x1
94
95/* Data types */
96#define GL_BYTE 0x1400
97#define GL_UNSIGNED_BYTE 0x1401
98#define GL_SHORT 0x1402
99#define GL_UNSIGNED_SHORT 0x1403
100#define GL_INT 0x1404
101#define GL_UNSIGNED_INT 0x1405
102#define GL_FLOAT 0x1406
103#define GL_DOUBLE 0x140A
104#define GL_2_BYTES 0x1407
105#define GL_3_BYTES 0x1408
106#define GL_4_BYTES 0x1409
107
108/* Errors */
109#define GL_NO_ERROR 0x0
110#define GL_INVALID_VALUE 0x0501
111#define GL_INVALID_ENUM 0x0500
112#define GL_INVALID_OPERATION 0x0502
113#define GL_STACK_OVERFLOW 0x0503
114#define GL_STACK_UNDERFLOW 0x0504
115#define GL_OUT_OF_MEMORY 0x0505
116
117/* Utility */
118#define GL_VENDOR 0x1F00
119#define GL_RENDERER 0x1F01
120#define GL_VERSION 0x1F02
121#define GL_EXTENSIONS 0x1F03
122
123/* Accumulation buffer */
124#define GL_ACCUM_RED_BITS 0x0D58
125#define GL_ACCUM_GREEN_BITS 0x0D59
126#define GL_ACCUM_BLUE_BITS 0x0D5A
127#define GL_ACCUM_ALPHA_BITS 0x0D5B
128#define GL_ACCUM_CLEAR_VALUE 0x0B80
129#define GL_ACCUM 0x0100
130#define GL_ADD 0x0104
131#define GL_LOAD 0x0101
132#define GL_MULT 0x0103
133#define GL_RETURN 0x0102
134
135/* Alpha testing */
136#define GL_ALPHA_TEST 0x0BC0
137#define GL_ALPHA_TEST_REF 0x0BC2
138#define GL_ALPHA_TEST_FUNC 0x0BC1
139
140/* Blending */
141#define GL_BLEND 0x0BE2
142#define GL_BLEND_SRC 0x0BE1
143#define GL_BLEND_DST 0x0BE0
144#define GL_ZERO 0x0
145#define GL_ONE 0x1
146#define GL_SRC_COLOR 0x0300
147#define GL_ONE_MINUS_SRC_COLOR 0x0301
148#define GL_SRC_ALPHA 0x0302
149#define GL_ONE_MINUS_SRC_ALPHA 0x0303
150#define GL_DST_ALPHA 0x0304
151#define GL_ONE_MINUS_DST_ALPHA 0x0305
152#define GL_DST_COLOR 0x0306
153#define GL_ONE_MINUS_DST_COLOR 0x0307
154#define GL_SRC_ALPHA_SATURATE 0x0308
155#define GL_CONSTANT_COLOR 0x8001
156#define GL_ONE_MINUS_CONSTANT_COLOR 0x8002
157#define GL_CONSTANT_ALPHA 0x8003
158#define GL_ONE_MINUS_CONSTANT_ALPHA 0x8004
159
160/* Buffers, Pixel Drawing/Reading */
161#define GL_NONE 0x0
162#define GL_FRONT_LEFT 0x0400
163#define GL_FRONT_RIGHT 0x0401
164#define GL_BACK_LEFT 0x0402
165#define GL_BACK_RIGHT 0x0403
166#define GL_FRONT 0x0404
167#define GL_BACK 0x0405
168#define GL_LEFT 0x0406
169#define GL_RIGHT 0x0407
170#define GL_FRONT_AND_BACK 0x0408
171#define GL_AUX0 0x0409
172#define GL_AUX1 0x040A
173#define GL_AUX2 0x040B
174#define GL_AUX3 0x040C
175#define GL_COLOR_INDEX 0x1900
176#define GL_RED 0x1903
177#define GL_GREEN 0x1904
178#define GL_BLUE 0x1905
179#define GL_ALPHA 0x1906
180#define GL_LUMINANCE 0x1909
181#define GL_LUMINANCE_ALPHA 0x190A
182#define GL_ALPHA_BITS 0x0D55
183#define GL_RED_BITS 0x0D52
184#define GL_GREEN_BITS 0x0D53
185#define GL_BLUE_BITS 0x0D54
186#define GL_INDEX_BITS 0x0D51
187#define GL_SUBPIXEL_BITS 0x0D50
188#define GL_AUX_BUFFERS 0x0C00
189#define GL_READ_BUFFER 0x0C02
190#define GL_DRAW_BUFFER 0x0C01
191#define GL_DOUBLEBUFFER 0x0C32
192#define GL_STEREO 0x0C33
193#define GL_BITMAP 0x1A00
194#define GL_COLOR 0x1800
195#define GL_DEPTH 0x1801
196#define GL_STENCIL 0x1802
197#define GL_DITHER 0x0BD0
198#define GL_RGB 0x1907
199#define GL_RGBA 0x1908
200
201/* Clipping */
202#define GL_CLIP_PLANE0 0x3000
203#define GL_CLIP_PLANE1 0x3001
204#define GL_CLIP_PLANE2 0x3002
205#define GL_CLIP_PLANE3 0x3003
206#define GL_CLIP_PLANE4 0x3004
207#define GL_CLIP_PLANE5 0x3005
208
209/* Depth buffer */
210#define GL_NEVER 0x0200
211#define GL_LESS 0x0201
212#define GL_EQUAL 0x0202
213#define GL_LEQUAL 0x0203
214#define GL_GREATER 0x0204
215#define GL_NOTEQUAL 0x0205
216#define GL_GEQUAL 0x0206
217#define GL_ALWAYS 0x0207
218#define GL_DEPTH_TEST 0x0B71
219#define GL_DEPTH_BITS 0x0D56
220#define GL_DEPTH_CLEAR_VALUE 0x0B73
221#define GL_DEPTH_FUNC 0x0B74
222#define GL_DEPTH_RANGE 0x0B70
223#define GL_DEPTH_WRITEMASK 0x0B72
224#define GL_DEPTH_COMPONENT 0x1902
225
226/* Evaluators */
227#define GL_AUTO_NORMAL 0x0D80
228#define GL_MAP1_COLOR_4 0x0D90
229#define GL_MAP1_GRID_DOMAIN 0x0DD0
230#define GL_MAP1_GRID_SEGMENTS 0x0DD1
231#define GL_MAP1_INDEX 0x0D91
232#define GL_MAP1_NORMAL 0x0D92
233#define GL_MAP1_TEXTURE_COORD_1 0x0D93
234#define GL_MAP1_TEXTURE_COORD_2 0x0D94
235#define GL_MAP1_TEXTURE_COORD_3 0x0D95
236#define GL_MAP1_TEXTURE_COORD_4 0x0D96
237#define GL_MAP1_VERTEX_3 0x0D97
238#define GL_MAP1_VERTEX_4 0x0D98
239#define GL_MAP2_COLOR_4 0x0DB0
240#define GL_MAP2_GRID_DOMAIN 0x0DD2
241#define GL_MAP2_GRID_SEGMENTS 0x0DD3
242#define GL_MAP2_INDEX 0x0DB1
243#define GL_MAP2_NORMAL 0x0DB2
244#define GL_MAP2_TEXTURE_COORD_1 0x0DB3
245#define GL_MAP2_TEXTURE_COORD_2 0x0DB4
246#define GL_MAP2_TEXTURE_COORD_3 0x0DB5
247#define GL_MAP2_TEXTURE_COORD_4 0x0DB6
248#define GL_MAP2_VERTEX_3 0x0DB7
249#define GL_MAP2_VERTEX_4 0x0DB8
250#define GL_COEFF 0x0A00
251#define GL_DOMAIN 0x0A02
252#define GL_ORDER 0x0A01
253
254/* Feedback */
255#define GL_2D 0x0600
256#define GL_3D 0x0601
257#define GL_3D_COLOR 0x0602
258#define GL_3D_COLOR_TEXTURE 0x0603
259#define GL_4D_COLOR_TEXTURE 0x0604
260#define GL_POINT_TOKEN 0x0701
261#define GL_LINE_TOKEN 0x0702
262#define GL_LINE_RESET_TOKEN 0x0707
263#define GL_POLYGON_TOKEN 0x0703
264#define GL_BITMAP_TOKEN 0x0704
265#define GL_DRAW_PIXEL_TOKEN 0x0705
266#define GL_COPY_PIXEL_TOKEN 0x0706
267#define GL_PASS_THROUGH_TOKEN 0x0700
268#define GL_FEEDBACK_BUFFER_POINTER 0x0DF0
269#define GL_FEEDBACK_BUFFER_SIZE 0x0DF1
270#define GL_FEEDBACK_BUFFER_TYPE 0x0DF2
271
272/* Fog */
273#define GL_FOG 0x0B60
274#define GL_FOG_MODE 0x0B65
275#define GL_FOG_DENSITY 0x0B62
276#define GL_FOG_COLOR 0x0B66
277#define GL_FOG_INDEX 0x0B61
278#define GL_FOG_START 0x0B63
279#define GL_FOG_END 0x0B64
280#define GL_LINEAR 0x2601
281#define GL_EXP 0x0800
282#define GL_EXP2 0x0801
283
284/* Gets */
285#define GL_ATTRIB_STACK_DEPTH 0x0BB0
286#define GL_CLIENT_ATTRIB_STACK_DEPTH 0x0BB1
287#define GL_COLOR_CLEAR_VALUE 0x0C22
288#define GL_COLOR_WRITEMASK 0x0C23
289#define GL_CURRENT_INDEX 0x0B01
290#define GL_CURRENT_COLOR 0x0B00
291#define GL_CURRENT_NORMAL 0x0B02
292#define GL_CURRENT_RASTER_COLOR 0x0B04
293#define GL_CURRENT_RASTER_DISTANCE 0x0B09
294#define GL_CURRENT_RASTER_INDEX 0x0B05
295#define GL_CURRENT_RASTER_POSITION 0x0B07
296#define GL_CURRENT_RASTER_TEXTURE_COORDS 0x0B06
297#define GL_CURRENT_RASTER_POSITION_VALID 0x0B08
298#define GL_CURRENT_TEXTURE_COORDS 0x0B03
299#define GL_INDEX_CLEAR_VALUE 0x0C20
300#define GL_INDEX_MODE 0x0C30
301#define GL_INDEX_WRITEMASK 0x0C21
302#define GL_MODELVIEW_MATRIX 0x0BA6
303#define GL_MODELVIEW_STACK_DEPTH 0x0BA3
304#define GL_NAME_STACK_DEPTH 0x0D70
305#define GL_PROJECTION_MATRIX 0x0BA7
306#define GL_PROJECTION_STACK_DEPTH 0x0BA4
307#define GL_RENDER_MODE 0x0C40
308#define GL_RGBA_MODE 0x0C31
309#define GL_TEXTURE_MATRIX 0x0BA8
310#define GL_TEXTURE_STACK_DEPTH 0x0BA5
311#define GL_VIEWPORT 0x0BA2
312
313/* Hints */
314#define GL_FOG_HINT 0x0C54
315#define GL_LINE_SMOOTH_HINT 0x0C52
316#define GL_PERSPECTIVE_CORRECTION_HINT 0x0C50
317#define GL_POINT_SMOOTH_HINT 0x0C51
318#define GL_POLYGON_SMOOTH_HINT 0x0C53
319#define GL_DONT_CARE 0x1100
320#define GL_FASTEST 0x1101
321#define GL_NICEST 0x1102
322
323/* Implementation limits */
324#define GL_MAX_LIST_NESTING 0x0B31
325#define GL_MAX_ATTRIB_STACK_DEPTH 0x0D35
326#define GL_MAX_MODELVIEW_STACK_DEPTH 0x0D36
327#define GL_MAX_NAME_STACK_DEPTH 0x0D37
328#define GL_MAX_PROJECTION_STACK_DEPTH 0x0D38
329#define GL_MAX_TEXTURE_STACK_DEPTH 0x0D39
330#define GL_MAX_EVAL_ORDER 0x0D30
331#define GL_MAX_LIGHTS 0x0D31
332#define GL_MAX_CLIP_PLANES 0x0D32
333#define GL_MAX_TEXTURE_SIZE 0x0D33
334#define GL_MAX_PIXEL_MAP_TABLE 0x0D34
335#define GL_MAX_VIEWPORT_DIMS 0x0D3A
336#define GL_MAX_CLIENT_ATTRIB_STACK_DEPTH 0x0D3B
337
338/* Lighting */
339#define GL_LIGHTING 0x0B50
340#define GL_LIGHT0 0x4000
341#define GL_LIGHT1 0x4001
342#define GL_LIGHT2 0x4002
343#define GL_LIGHT3 0x4003
344#define GL_LIGHT4 0x4004
345#define GL_LIGHT5 0x4005
346#define GL_LIGHT6 0x4006
347#define GL_LIGHT7 0x4007
348#define GL_SPOT_EXPONENT 0x1205
349#define GL_SPOT_CUTOFF 0x1206
350#define GL_CONSTANT_ATTENUATION 0x1207
351#define GL_LINEAR_ATTENUATION 0x1208
352#define GL_QUADRATIC_ATTENUATION 0x1209
353#define GL_AMBIENT 0x1200
354#define GL_DIFFUSE 0x1201
355#define GL_SPECULAR 0x1202
356#define GL_SHININESS 0x1601
357#define GL_EMISSION 0x1600
358#define GL_POSITION 0x1203
359#define GL_SPOT_DIRECTION 0x1204
360#define GL_AMBIENT_AND_DIFFUSE 0x1602
361#define GL_COLOR_INDEXES 0x1603
362#define GL_LIGHT_MODEL_TWO_SIDE 0x0B52
363#define GL_LIGHT_MODEL_LOCAL_VIEWER 0x0B51
364#define GL_LIGHT_MODEL_AMBIENT 0x0B53
365#define GL_FRONT_AND_BACK 0x0408
366#define GL_SHADE_MODEL 0x0B54
367#define GL_FLAT 0x1D00
368#define GL_SMOOTH 0x1D01
369#define GL_COLOR_MATERIAL 0x0B57
370#define GL_COLOR_MATERIAL_FACE 0x0B55
371#define GL_COLOR_MATERIAL_PARAMETER 0x0B56
372#define GL_NORMALIZE 0x0BA1
373
374/* Lines */
375#define GL_LINE_SMOOTH 0x0B20
376#define GL_LINE_STIPPLE 0x0B24
377#define GL_LINE_STIPPLE_PATTERN 0x0B25
378#define GL_LINE_STIPPLE_REPEAT 0x0B26
379#define GL_LINE_WIDTH 0x0B21
380#define GL_LINE_WIDTH_GRANULARITY 0x0B23
381#define GL_LINE_WIDTH_RANGE 0x0B22
382
383/* Logic Ops */
384#define GL_LOGIC_OP 0x0BF1
385#define GL_INDEX_LOGIC_OP 0x0BF1
386#define GL_COLOR_LOGIC_OP 0x0BF2
387#define GL_LOGIC_OP_MODE 0x0BF0
388#define GL_CLEAR 0x1500
389#define GL_SET 0x150F
390#define GL_COPY 0x1503
391#define GL_COPY_INVERTED 0x150C
392#define GL_NOOP 0x1505
393#define GL_INVERT 0x150A
394#define GL_AND 0x1501
395#define GL_NAND 0x150E
396#define GL_OR 0x1507
397#define GL_NOR 0x1508
398#define GL_XOR 0x1506
399#define GL_EQUIV 0x1509
400#define GL_AND_REVERSE 0x1502
401#define GL_AND_INVERTED 0x1504
402#define GL_OR_REVERSE 0x150B
403#define GL_OR_INVERTED 0x150D
404
405/* Matrix Mode */
406#define GL_MATRIX_MODE 0x0BA0
407#define GL_MODELVIEW 0x1700
408#define GL_PROJECTION 0x1701
409#define GL_TEXTURE 0x1702
410
411/* Pixel Mode / Transfer */
412#define GL_MAP_COLOR 0x0D10
413#define GL_MAP_STENCIL 0x0D11
414#define GL_INDEX_SHIFT 0x0D12
415#define GL_INDEX_OFFSET 0x0D13
416#define GL_RED_SCALE 0x0D14
417#define GL_RED_BIAS 0x0D15
418#define GL_GREEN_SCALE 0x0D18
419#define GL_GREEN_BIAS 0x0D19
420#define GL_BLUE_SCALE 0x0D1A
421#define GL_BLUE_BIAS 0x0D1B
422#define GL_ALPHA_SCALE 0x0D1C
423#define GL_ALPHA_BIAS 0x0D1D
424#define GL_DEPTH_SCALE 0x0D1E
425#define GL_DEPTH_BIAS 0x0D1F
426#define GL_PIXEL_MAP_S_TO_S_SIZE 0x0CB1
427#define GL_PIXEL_MAP_I_TO_I_SIZE 0x0CB0
428#define GL_PIXEL_MAP_I_TO_R_SIZE 0x0CB2
429#define GL_PIXEL_MAP_I_TO_G_SIZE 0x0CB3
430#define GL_PIXEL_MAP_I_TO_B_SIZE 0x0CB4
431#define GL_PIXEL_MAP_I_TO_A_SIZE 0x0CB5
432#define GL_PIXEL_MAP_R_TO_R_SIZE 0x0CB6
433#define GL_PIXEL_MAP_G_TO_G_SIZE 0x0CB7
434#define GL_PIXEL_MAP_B_TO_B_SIZE 0x0CB8
435#define GL_PIXEL_MAP_A_TO_A_SIZE 0x0CB9
436#define GL_PIXEL_MAP_S_TO_S 0x0C71
437#define GL_PIXEL_MAP_I_TO_I 0x0C70
438#define GL_PIXEL_MAP_I_TO_R 0x0C72
439#define GL_PIXEL_MAP_I_TO_G 0x0C73
440#define GL_PIXEL_MAP_I_TO_B 0x0C74
441#define GL_PIXEL_MAP_I_TO_A 0x0C75
442#define GL_PIXEL_MAP_R_TO_R 0x0C76
443#define GL_PIXEL_MAP_G_TO_G 0x0C77
444#define GL_PIXEL_MAP_B_TO_B 0x0C78
445#define GL_PIXEL_MAP_A_TO_A 0x0C79
446#define GL_PACK_ALIGNMENT 0x0D05
447#define GL_PACK_LSB_FIRST 0x0D01
448#define GL_PACK_ROW_LENGTH 0x0D02
449#define GL_PACK_SKIP_PIXELS 0x0D04
450#define GL_PACK_SKIP_ROWS 0x0D03
451#define GL_PACK_SWAP_BYTES 0x0D00
452#define GL_UNPACK_ALIGNMENT 0x0CF5
453#define GL_UNPACK_LSB_FIRST 0x0CF1
454#define GL_UNPACK_ROW_LENGTH 0x0CF2
455#define GL_UNPACK_SKIP_PIXELS 0x0CF4
456#define GL_UNPACK_SKIP_ROWS 0x0CF3
457#define GL_UNPACK_SWAP_BYTES 0x0CF0
458#define GL_ZOOM_X 0x0D16
459#define GL_ZOOM_Y 0x0D17
460
461/* Points */
462#define GL_POINT_SMOOTH 0x0B10
463#define GL_POINT_SIZE 0x0B11
464#define GL_POINT_SIZE_GRANULARITY 0x0B13
465#define GL_POINT_SIZE_RANGE 0x0B12
466
467/* Polygons */
468#define GL_POINT 0x1B00
469#define GL_LINE 0x1B01
470#define GL_FILL 0x1B02
471#define GL_CW 0x0900
472#define GL_CCW 0x0901
473#define GL_FRONT 0x0404
474#define GL_BACK 0x0405
475#define GL_POLYGON_MODE 0x0B40
476#define GL_POLYGON_SMOOTH 0x0B41
477#define GL_POLYGON_STIPPLE 0x0B42
478#define GL_EDGE_FLAG 0x0B43
479#define GL_CULL_FACE 0x0B44
480#define GL_CULL_FACE_MODE 0x0B45
481#define GL_FRONT_FACE 0x0B46
482#define GL_POLYGON_OFFSET_FACTOR 0x8038
483#define GL_POLYGON_OFFSET_UNITS 0x2A00
484#define GL_POLYGON_OFFSET_POINT 0x2A01
485#define GL_POLYGON_OFFSET_LINE 0x2A02
486#define GL_POLYGON_OFFSET_FILL 0x8037
487
488/* Primitives */
489#define GL_POINTS 0x0000
490#define GL_LINES 0x0001
491#define GL_LINE_LOOP 0x0002
492#define GL_LINE_STRIP 0x0003
493#define GL_TRIANGLES 0x0004
494#define GL_TRIANGLE_STRIP 0x0005
495#define GL_TRIANGLE_FAN 0x0006
496#define GL_QUADS 0x0007
497#define GL_QUAD_STRIP 0x0008
498#define GL_POLYGON 0x0009
499
500/* Push/Pop bits */
501#define GL_CURRENT_BIT 0x00000001
502#define GL_POINT_BIT 0x00000002
503#define GL_LINE_BIT 0x00000004
504#define GL_POLYGON_BIT 0x00000008
505#define GL_POLYGON_STIPPLE_BIT 0x00000010
506#define GL_PIXEL_MODE_BIT 0x00000020
507#define GL_LIGHTING_BIT 0x00000040
508#define GL_FOG_BIT 0x00000080
509#define GL_DEPTH_BUFFER_BIT 0x00000100
510#define GL_ACCUM_BUFFER_BIT 0x00000200
511#define GL_STENCIL_BUFFER_BIT 0x00000400
512#define GL_VIEWPORT_BIT 0x00000800
513#define GL_TRANSFORM_BIT 0x00001000
514#define GL_ENABLE_BIT 0x00002000
515#define GL_COLOR_BUFFER_BIT 0x00004000
516#define GL_HINT_BIT 0x00008000
517#define GL_EVAL_BIT 0x00010000
518#define GL_LIST_BIT 0x00020000
519#define GL_TEXTURE_BIT 0x00040000
520#define GL_SCISSOR_BIT 0x00080000
521#define GL_ALL_ATTRIB_BITS 0x000FFFFF
522
523/* Render Mode */
524#define GL_FEEDBACK 0x1C01
525#define GL_RENDER 0x1C00
526#define GL_SELECT 0x1C02
527
528/* Scissor box */
529#define GL_SCISSOR_TEST 0x0C11
530#define GL_SCISSOR_BOX 0x0C10
531
532/* Stencil */
533#define GL_STENCIL_TEST 0x0B90
534#define GL_STENCIL_WRITEMASK 0x0B98
535#define GL_STENCIL_BITS 0x0D57
536#define GL_STENCIL_FUNC 0x0B92
537#define GL_STENCIL_VALUE_MASK 0x0B93
538#define GL_STENCIL_REF 0x0B97
539#define GL_STENCIL_FAIL 0x0B94
540#define GL_STENCIL_PASS_DEPTH_PASS 0x0B96
541#define GL_STENCIL_PASS_DEPTH_FAIL 0x0B95
542#define GL_STENCIL_CLEAR_VALUE 0x0B91
543#define GL_STENCIL_INDEX 0x1901
544#define GL_KEEP 0x1E00
545#define GL_REPLACE 0x1E01
546#define GL_INCR 0x1E02
547#define GL_DECR 0x1E03
548
549/* Texture mapping */
550#define GL_TEXTURE_ENV 0x2300
551#define GL_TEXTURE_ENV_MODE 0x2200
552#define GL_TEXTURE_1D 0x0DE0
553#define GL_TEXTURE_2D 0x0DE1
554#define GL_TEXTURE_WRAP_S 0x2802
555#define GL_TEXTURE_WRAP_T 0x2803
556#define GL_TEXTURE_MAG_FILTER 0x2800
557#define GL_TEXTURE_MIN_FILTER 0x2801
558#define GL_TEXTURE_ENV_COLOR 0x2201
559#define GL_TEXTURE_GEN_S 0x0C60
560#define GL_TEXTURE_GEN_T 0x0C61
561#define GL_TEXTURE_GEN_MODE 0x2500
562#define GL_TEXTURE_BORDER_COLOR 0x1004
563#define GL_TEXTURE_WIDTH 0x1000
564#define GL_TEXTURE_HEIGHT 0x1001
565#define GL_TEXTURE_BORDER 0x1005
566#define GL_TEXTURE_COMPONENTS 0x1003
567#define GL_TEXTURE_RED_SIZE 0x805C
568#define GL_TEXTURE_GREEN_SIZE 0x805D
569#define GL_TEXTURE_BLUE_SIZE 0x805E
570#define GL_TEXTURE_ALPHA_SIZE 0x805F
571#define GL_TEXTURE_LUMINANCE_SIZE 0x8060
572#define GL_TEXTURE_INTENSITY_SIZE 0x8061
573#define GL_NEAREST_MIPMAP_NEAREST 0x2700
574#define GL_NEAREST_MIPMAP_LINEAR 0x2702
575#define GL_LINEAR_MIPMAP_NEAREST 0x2701
576#define GL_LINEAR_MIPMAP_LINEAR 0x2703
577#define GL_OBJECT_LINEAR 0x2401
578#define GL_OBJECT_PLANE 0x2501
579#define GL_EYE_LINEAR 0x2400
580#define GL_EYE_PLANE 0x2502
581#define GL_SPHERE_MAP 0x2402
582#define GL_DECAL 0x2101
583#define GL_MODULATE 0x2100
584#define GL_NEAREST 0x2600
585#define GL_REPEAT 0x2901
586#define GL_CLAMP 0x2900
587#define GL_S 0x2000
588#define GL_T 0x2001
589#define GL_R 0x2002
590#define GL_Q 0x2003
591#define GL_TEXTURE_GEN_R 0x0C62
592#define GL_TEXTURE_GEN_Q 0x0C63
593
594/* Vertex Arrays */
595#define GL_VERTEX_ARRAY 0x8074
596#define GL_NORMAL_ARRAY 0x8075
597#define GL_COLOR_ARRAY 0x8076
598#define GL_INDEX_ARRAY 0x8077
599#define GL_TEXTURE_COORD_ARRAY 0x8078
600#define GL_EDGE_FLAG_ARRAY 0x8079
601#define GL_VERTEX_ARRAY_SIZE 0x807A
602#define GL_VERTEX_ARRAY_TYPE 0x807B
603#define GL_VERTEX_ARRAY_STRIDE 0x807C
604#define GL_NORMAL_ARRAY_TYPE 0x807E
605#define GL_NORMAL_ARRAY_STRIDE 0x807F
606#define GL_COLOR_ARRAY_SIZE 0x8081
607#define GL_COLOR_ARRAY_TYPE 0x8082
608#define GL_COLOR_ARRAY_STRIDE 0x8083
609#define GL_INDEX_ARRAY_TYPE 0x8085
610#define GL_INDEX_ARRAY_STRIDE 0x8086
611#define GL_TEXTURE_COORD_ARRAY_SIZE 0x8088
612#define GL_TEXTURE_COORD_ARRAY_TYPE 0x8089
613#define GL_TEXTURE_COORD_ARRAY_STRIDE 0x808A
614#define GL_EDGE_FLAG_ARRAY_STRIDE 0x808C
615#define GL_VERTEX_ARRAY_POINTER 0x808E
616#define GL_NORMAL_ARRAY_POINTER 0x808F
617#define GL_COLOR_ARRAY_POINTER 0x8090
618#define GL_INDEX_ARRAY_POINTER 0x8091
619#define GL_TEXTURE_COORD_ARRAY_POINTER 0x8092
620#define GL_EDGE_FLAG_ARRAY_POINTER 0x8093
621#define GL_V2F 0x2A20
622#define GL_V3F 0x2A21
623#define GL_C4UB_V2F 0x2A22
624#define GL_C4UB_V3F 0x2A23
625#define GL_C3F_V3F 0x2A24
626#define GL_N3F_V3F 0x2A25
627#define GL_C4F_N3F_V3F 0x2A26
628#define GL_T2F_V3F 0x2A27
629#define GL_T4F_V4F 0x2A28
630#define GL_T2F_C4UB_V3F 0x2A29
631#define GL_T2F_C3F_V3F 0x2A2A
632#define GL_T2F_N3F_V3F 0x2A2B
633#define GL_T2F_C4F_N3F_V3F 0x2A2C
634#define GL_T4F_C4F_N3F_V4F 0x2A2D
635
636/* OpenGL 1.1 */
637#define GL_PROXY_TEXTURE_1D 0x8063
638#define GL_PROXY_TEXTURE_2D 0x8064
639#define GL_TEXTURE_PRIORITY 0x8066
640#define GL_TEXTURE_RESIDENT 0x8067
641#define GL_TEXTURE_BINDING_1D 0x8068
642#define GL_TEXTURE_BINDING_2D 0x8069
643#define GL_TEXTURE_INTERNAL_FORMAT 0x1003
644#define GL_ALPHA4 0x803B
645#define GL_ALPHA8 0x803C
646#define GL_ALPHA12 0x803D
647#define GL_ALPHA16 0x803E
648#define GL_LUMINANCE4 0x803F
649#define GL_LUMINANCE8 0x8040
650#define GL_LUMINANCE12 0x8041
651#define GL_LUMINANCE16 0x8042
652#define GL_LUMINANCE4_ALPHA4 0x8043
653#define GL_LUMINANCE6_ALPHA2 0x8044
654#define GL_LUMINANCE8_ALPHA8 0x8045
655#define GL_LUMINANCE12_ALPHA4 0x8046
656#define GL_LUMINANCE12_ALPHA12 0x8047
657#define GL_LUMINANCE16_ALPHA16 0x8048
658#define GL_INTENSITY 0x8049
659#define GL_INTENSITY4 0x804A
660#define GL_INTENSITY8 0x804B
661#define GL_INTENSITY12 0x804C
662#define GL_INTENSITY16 0x804D
663#define GL_R3_G3_B2 0x2A10
664#define GL_RGB4 0x804F
665#define GL_RGB5 0x8050
666#define GL_RGB8 0x8051
667#define GL_RGB10 0x8052
668#define GL_RGB12 0x8053
669#define GL_RGB16 0x8054
670#define GL_RGBA2 0x8055
671#define GL_RGBA4 0x8056
672#define GL_RGB5_A1 0x8057
673#define GL_RGBA8 0x8058
674#define GL_RGB10_A2 0x8059
675#define GL_RGBA12 0x805A
676#define GL_RGBA16 0x805B
677#define GL_CLIENT_PIXEL_STORE_BIT 0x00000001
678#define GL_CLIENT_VERTEX_ARRAY_BIT 0x00000002
679#define GL_ALL_CLIENT_ATTRIB_BITS 0xFFFFFFFF
680#define GL_CLIENT_ALL_ATTRIB_BITS 0xFFFFFFFF
681
682/* OpenGL 1.2 constants */
683#define GL_PACK_SKIP_IMAGES 0x806B
684#define GL_PACK_IMAGE_HEIGHT 0x806C
685#define GL_UNPACK_SKIP_IMAGES 0x806D
686#define GL_UNPACK_IMAGE_HEIGHT 0x806E
687#define GL_TEXTURE_3D 0x806F
688#define GL_PROXY_TEXTURE_3D 0x8070
689#define GL_TEXTURE_DEPTH 0x8071
690#define GL_TEXTURE_WRAP_R 0x8072
691#define GL_MAX_3D_TEXTURE_SIZE 0x8073
692#define GL_BGR 0x80E0
693#define GL_BGRA 0x80E1
694#define GL_UNSIGNED_BYTE_3_3_2 0x8032
695#define GL_UNSIGNED_BYTE_2_3_3_REV 0x8362
696#define GL_UNSIGNED_SHORT_5_6_5 0x8363
697#define GL_UNSIGNED_SHORT_5_6_5_REV 0x8364
698#define GL_UNSIGNED_SHORT_4_4_4_4 0x8033
699#define GL_UNSIGNED_SHORT_4_4_4_4_REV 0x8365
700#define GL_UNSIGNED_SHORT_5_5_5_1 0x8034
701#define GL_UNSIGNED_SHORT_1_5_5_5_REV 0x8366
702#define GL_UNSIGNED_INT_8_8_8_8 0x8035
703#define GL_UNSIGNED_INT_8_8_8_8_REV 0x8367
704#define GL_UNSIGNED_INT_10_10_10_2 0x8036
705#define GL_UNSIGNED_INT_2_10_10_10_REV 0x8368
706#define GL_RESCALE_NORMAL 0x803A
707#define GL_TEXTURE_BINDING_3D 0x806A
708#define GL_LIGHT_MODEL_COLOR_CONTROL 0x81F8
709#define GL_SINGLE_COLOR 0x81F9
710#define GL_SEPARATE_SPECULAR_COLOR 0x81FA
711#define GL_CLAMP_TO_EDGE 0x812F
712#define GL_TEXTURE_MIN_LOD 0x813A
713#define GL_TEXTURE_MAX_LOD 0x813B
714#define GL_TEXTURE_BASE_LEVEL 0x813C
715#define GL_TEXTURE_MAX_LEVEL 0x813D
716#define GL_MAX_ELEMENTS_VERTICES 0x80E8
717#define GL_MAX_ELEMENTS_INDICES 0x80E9
718#define GL_ALIASED_POINT_SIZE_RANGE 0x846D
719#define GL_ALIASED_LINE_WIDTH_RANGE 0x846E
720
721/* OpenGL 1.3 constants */
722#define GL_ACTIVE_TEXTURE 0x84E0
723#define GL_CLIENT_ACTIVE_TEXTURE 0x84E1
724#define GL_MAX_TEXTURE_UNITS 0x84E2
725#define GL_TEXTURE0 0x84C0
726#define GL_TEXTURE1 0x84C1
727#define GL_TEXTURE2 0x84C2
728#define GL_TEXTURE3 0x84C3
729#define GL_TEXTURE4 0x84C4
730#define GL_TEXTURE5 0x84C5
731#define GL_TEXTURE6 0x84C6
732#define GL_TEXTURE7 0x84C7
733#define GL_TEXTURE8 0x84C8
734#define GL_TEXTURE9 0x84C9
735#define GL_TEXTURE10 0x84CA
736#define GL_TEXTURE11 0x84CB
737#define GL_TEXTURE12 0x84CC
738#define GL_TEXTURE13 0x84CD
739#define GL_TEXTURE14 0x84CE
740#define GL_TEXTURE15 0x84CF
741#define GL_TEXTURE16 0x84D0
742#define GL_TEXTURE17 0x84D1
743#define GL_TEXTURE18 0x84D2
744#define GL_TEXTURE19 0x84D3
745#define GL_TEXTURE20 0x84D4
746#define GL_TEXTURE21 0x84D5
747#define GL_TEXTURE22 0x84D6
748#define GL_TEXTURE23 0x84D7
749#define GL_TEXTURE24 0x84D8
750#define GL_TEXTURE25 0x84D9
751#define GL_TEXTURE26 0x84DA
752#define GL_TEXTURE27 0x84DB
753#define GL_TEXTURE28 0x84DC
754#define GL_TEXTURE29 0x84DD
755#define GL_TEXTURE30 0x84DE
756#define GL_TEXTURE31 0x84DF
757#define GL_NORMAL_MAP 0x8511
758#define GL_REFLECTION_MAP 0x8512
759#define GL_TEXTURE_CUBE_MAP 0x8513
760#define GL_TEXTURE_BINDING_CUBE_MAP 0x8514
761#define GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x8515
762#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x8516
763#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x8517
764#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x8518
765#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x8519
766#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x851A
767#define GL_PROXY_TEXTURE_CUBE_MAP 0x851B
768#define GL_MAX_CUBE_MAP_TEXTURE_SIZE 0x851C
769#define GL_COMBINE 0x8570
770#define GL_COMBINE_RGB 0x8571
771#define GL_COMBINE_ALPHA 0x8572
772#define GL_RGB_SCALE 0x8573
773#define GL_ADD_SIGNED 0x8574
774#define GL_INTERPOLATE 0x8575
775#define GL_CONSTANT 0x8576
776#define GL_PRIMARY_COLOR 0x8577
777#define GL_PREVIOUS 0x8578
778#define GL_SOURCE0_RGB 0x8580
779#define GL_SOURCE1_RGB 0x8581
780#define GL_SOURCE2_RGB 0x8582
781#define GL_SOURCE0_ALPHA 0x8588
782#define GL_SOURCE1_ALPHA 0x8589
783#define GL_SOURCE2_ALPHA 0x858A
784#define GL_OPERAND0_RGB 0x8590
785#define GL_OPERAND1_RGB 0x8591
786#define GL_OPERAND2_RGB 0x8592
787#define GL_OPERAND0_ALPHA 0x8598
788#define GL_OPERAND1_ALPHA 0x8599
789#define GL_OPERAND2_ALPHA 0x859A
790#define GL_SUBTRACT 0x84E7
791#define GL_TRANSPOSE_MODELVIEW_MATRIX 0x84E3
792#define GL_TRANSPOSE_PROJECTION_MATRIX 0x84E4
793#define GL_TRANSPOSE_TEXTURE_MATRIX 0x84E5
794#define GL_TRANSPOSE_COLOR_MATRIX 0x84E6
795#define GL_COMPRESSED_ALPHA 0x84E9
796#define GL_COMPRESSED_LUMINANCE 0x84EA
797#define GL_COMPRESSED_LUMINANCE_ALPHA 0x84EB
798#define GL_COMPRESSED_INTENSITY 0x84EC
799#define GL_COMPRESSED_RGB 0x84ED
800#define GL_COMPRESSED_RGBA 0x84EE
801#define GL_TEXTURE_COMPRESSION_HINT 0x84EF
802#define GL_TEXTURE_COMPRESSED_IMAGE_SIZE 0x86A0
803#define GL_TEXTURE_COMPRESSED 0x86A1
804#define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2
805#define GL_COMPRESSED_TEXTURE_FORMATS 0x86A3
806#define GL_DOT3_RGB 0x86AE
807#define GL_DOT3_RGBA 0x86AF
808#define GL_CLAMP_TO_BORDER 0x812D
809#define GL_MULTISAMPLE 0x809D
810#define GL_SAMPLE_ALPHA_TO_COVERAGE 0x809E
811#define GL_SAMPLE_ALPHA_TO_ONE 0x809F
812#define GL_SAMPLE_COVERAGE 0x80A0
813#define GL_SAMPLE_BUFFERS 0x80A8
814#define GL_SAMPLES 0x80A9
815#define GL_SAMPLE_COVERAGE_VALUE 0x80AA
816#define GL_SAMPLE_COVERAGE_INVERT 0x80AB
817#define GL_MULTISAMPLE_BIT 0x20000000
818
819/* GL_VERSION_2_0 */
820#ifndef GL_VERSION_2_0
821#define GL_VERSION_2_0 1
822#define GL_BLEND_EQUATION_RGB GL_BLEND_EQUATION
823#define GL_VERTEX_ATTRIB_ARRAY_ENABLED 0x8622
824#define GL_VERTEX_ATTRIB_ARRAY_SIZE 0x8623
825#define GL_VERTEX_ATTRIB_ARRAY_STRIDE 0x8624
826#define GL_VERTEX_ATTRIB_ARRAY_TYPE 0x8625
827#define GL_CURRENT_VERTEX_ATTRIB 0x8626
828#define GL_VERTEX_PROGRAM_POINT_SIZE 0x8642
829#define GL_VERTEX_PROGRAM_TWO_SIDE 0x8643
830#define GL_VERTEX_ATTRIB_ARRAY_POINTER 0x8645
831#define GL_STENCIL_BACK_FUNC 0x8800
832#define GL_STENCIL_BACK_FAIL 0x8801
833#define GL_STENCIL_BACK_PASS_DEPTH_FAIL 0x8802
834#define GL_STENCIL_BACK_PASS_DEPTH_PASS 0x8803
835#define GL_MAX_DRAW_BUFFERS 0x8824
836#define GL_DRAW_BUFFER0 0x8825
837#define GL_DRAW_BUFFER1 0x8826
838#define GL_DRAW_BUFFER2 0x8827
839#define GL_DRAW_BUFFER3 0x8828
840#define GL_DRAW_BUFFER4 0x8829
841#define GL_DRAW_BUFFER5 0x882a
842#define GL_DRAW_BUFFER6 0x882b
843#define GL_DRAW_BUFFER7 0x882c
844#define GL_DRAW_BUFFER8 0x882d
845#define GL_DRAW_BUFFER9 0x882e
846#define GL_DRAW_BUFFER10 0x882f
847#define GL_DRAW_BUFFER11 0x8830
848#define GL_DRAW_BUFFER12 0x8831
849#define GL_DRAW_BUFFER13 0x8832
850#define GL_DRAW_BUFFER14 0x8833
851#define GL_DRAW_BUFFER15 0x8834
852#define GL_BLEND_EQUATION_ALPHA 0x883d
853#define GL_POINT_SPRITE 0x8861
854#define GL_COORD_REPLACE 0x8862
855#define GL_MAX_VERTEX_ATTRIBS 0x8869
856#define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886a
857#define GL_MAX_TEXTURE_COORDS 0x8871
858#define GL_MAX_TEXTURE_IMAGE_UNITS 0x8872
859#define GL_FRAGMENT_SHADER 0x8b30
860#define GL_VERTEX_SHADER 0x8b31
861#define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS 0x8b49
862#define GL_MAX_VERTEX_UNIFORM_COMPONENTS 0x8b4a
863#define GL_MAX_VARYING_FLOATS 0x8b4b
864#define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8b4c
865#define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8b4d
866#define GL_SHADER_TYPE 0x8b4f
867#define GL_FLOAT_VEC2 0x8b50
868#define GL_FLOAT_VEC3 0x8b51
869#define GL_FLOAT_VEC4 0x8b52
870#define GL_INT_VEC2 0x8b53
871#define GL_INT_VEC3 0x8b54
872#define GL_INT_VEC4 0x8b55
873#define GL_BOOL 0x8b56
874#define GL_BOOL_VEC2 0x8b57
875#define GL_BOOL_VEC3 0x8b58
876#define GL_BOOL_VEC4 0x8b59
877#define GL_FLOAT_MAT2 0x8b5a
878#define GL_FLOAT_MAT3 0x8b5b
879#define GL_FLOAT_MAT4 0x8b5c
880#define GL_SAMPLER_1D 0x8b5d
881#define GL_SAMPLER_2D 0x8b5e
882#define GL_SAMPLER_3D 0x8b5f
883#define GL_SAMPLER_CUBE 0x8b60
884#define GL_SAMPLER_1D_SHADOW 0x8b61
885#define GL_SAMPLER_2D_SHADOW 0x8b62
886#define GL_DELETE_STATUS 0x8b80
887#define GL_COMPILE_STATUS 0x8b81
888#define GL_LINK_STATUS 0x8b82
889#define GL_VALIDATE_STATUS 0x8b83
890#define GL_INFO_LOG_LENGTH 0x8b84
891#define GL_ATTACHED_SHADERS 0x8b85
892#define GL_ACTIVE_UNIFORMS 0x8b86
893#define GL_ACTIVE_UNIFORM_MAX_LENGTH 0x8b87
894#define GL_SHADER_SOURCE_LENGTH 0x8b88
895#define GL_ACTIVE_ATTRIBUTES 0x8b89
896#define GL_ACTIVE_ATTRIBUTE_MAX_LENGTH 0x8b8a
897#define GL_FRAGMENT_SHADER_DERIVATIVE_HINT 0x8b8b
898#define GL_SHADING_LANGUAGE_VERSION 0x8b8c
899#define GL_CURRENT_PROGRAM 0x8b8d
900#define GL_POINT_SPRITE_COORD_ORIGIN 0x8ca0
901#define GL_LOWER_LEFT 0x8ca1
902#define GL_UPPER_LEFT 0x8ca2
903#define GL_STENCIL_BACK_REF 0x8ca3
904#define GL_STENCIL_BACK_VALUE_MASK 0x8ca4
905#define GL_STENCIL_BACK_WRITEMASK 0x8ca5
906typedef char GLchar;
907#endif
908typedef void (WINE_GLAPI *PGLFNBLENDEQUATIONSEPARATEPROC)(GLenum modeRGB, GLenum modeAlpha);
909typedef void (WINE_GLAPI *PGLFNDRAWBUFFERSPROC)(GLsizei n, const GLenum *bufs);
910typedef void (WINE_GLAPI *PGLFNSTENCILOPSEPARATEPROC)(GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
911typedef void (WINE_GLAPI *PGLFNSTENCILFUNCSEPARATEPROC)(GLenum frontfunc, GLenum backfunc, GLint ref, GLuint mask);
912typedef void (WINE_GLAPI *PGLFNSTENCILMASKSEPARATEPROC)(GLenum face, GLuint mask);
913typedef void (WINE_GLAPI *PGLFNATTACHSHADERPROC)(GLuint program, GLuint shader);
914typedef void (WINE_GLAPI *PGLFNBINDATTRIBLOCATIONPROC)(GLuint program, GLuint index, const GLchar *name);
915typedef void (WINE_GLAPI *PGLFNCOMPILESHADERPROC)(GLuint shader);
916typedef GLuint (WINE_GLAPI *PGLFNCREATEPROGRAMPROC)(void);
917typedef GLuint (WINE_GLAPI *PGLFNCREATESHADERPROC)(GLenum type);
918typedef void (WINE_GLAPI *PGLFNDELETEPROGRAMPROC)(GLuint program);
919typedef void (WINE_GLAPI *PGLFNDELETESHADERPROC)(GLuint shader);
920typedef void (WINE_GLAPI *PGLFNDETACHSHADERPROC)(GLuint program, GLuint shader);
921typedef void (WINE_GLAPI *PGLFNDISABLEVERTEXATTRIBARRAYPROC)(GLuint index);
922typedef void (WINE_GLAPI *PGLFNENABLEVERTEXATTRIBARRAYPROC)(GLuint index);
923typedef void (WINE_GLAPI *PGLFNGETACTIVEATTRIBPROC)(GLuint program,
924 GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
925typedef void (WINE_GLAPI *PGLFNGETACTIVEUNIFORMPROC)(GLuint program,
926 GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
927typedef void (WINE_GLAPI *PGLFNGETATTACHEDSHADERSPROC)(GLuint program, GLsizei maxCount, GLsizei *count, GLuint *obj);
928typedef GLint (WINE_GLAPI *PGLFNGETATTRIBLOCATIONPROC)(GLuint program, const GLchar *name);
929typedef void (WINE_GLAPI *PGLFNGETPROGRAMIVPROC)(GLuint program, GLenum pname, GLint *params);
930typedef void (WINE_GLAPI *PGLFNGETPROGRAMINFOLOGPROC)(GLuint program,
931 GLsizei bufSize, GLsizei *length, GLchar *infoLog);
932typedef void (WINE_GLAPI *PGLFNGETSHADERIVPROC)(GLuint shader, GLenum pname, GLint *params);
933typedef void (WINE_GLAPI *PGLFNGETSHADERINFOLOGPROC)(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
934typedef void (WINE_GLAPI *PGLFNGETSHADERSOURCEPROC)(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source);
935typedef GLint (WINE_GLAPI *PGLFNGETUNIFORMLOCATIONPROC)(GLuint program, const GLchar *name);
936typedef void (WINE_GLAPI *PGLFNGETUNIFORMFVPROC)(GLuint program, GLint location, GLfloat *params);
937typedef void (WINE_GLAPI *PGLFNGETUNIFORMIVPROC)(GLuint program, GLint location, GLint *params);
938typedef void (WINE_GLAPI *PGLFNGETVERTEXATTRIBDVPROC)(GLuint index, GLenum pname, GLdouble *params);
939typedef void (WINE_GLAPI *PGLFNGETVERTEXATTRIBFVPROC)(GLuint index, GLenum pname, GLfloat *params);
940typedef void (WINE_GLAPI *PGLFNGETVERTEXATTRIBIVPROC)(GLuint index, GLenum pname, GLint *params);
941typedef void (WINE_GLAPI *PGLFNGETVERTEXATTRIBPOINTERVPROC)(GLuint index, GLenum pname, GLvoid* *pointer);
942typedef GLboolean (WINE_GLAPI *PGLFNISPROGRAMPROC)(GLuint program);
943typedef GLboolean (WINE_GLAPI *PGLFNISSHADERPROC)(GLuint shader);
944typedef void (WINE_GLAPI *PGLFNLINKPROGRAMPROC)(GLuint program);
945typedef void (WINE_GLAPI *PGLFNSHADERSOURCEPROC)(GLuint shader,
946 GLsizei count, const GLchar* *string, const GLint *length);
947typedef void (WINE_GLAPI *PGLFNUSEPROGRAMPROC)(GLuint program);
948typedef void (WINE_GLAPI *PGLFNUNIFORM1FPROC)(GLint location, GLfloat v0);
949typedef void (WINE_GLAPI *PGLFNUNIFORM2FPROC)(GLint location, GLfloat v0, GLfloat v1);
950typedef void (WINE_GLAPI *PGLFNUNIFORM3FPROC)(GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
951typedef void (WINE_GLAPI *PGLFNUNIFORM4FPROC)(GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
952typedef void (WINE_GLAPI *PGLFNUNIFORM1IPROC)(GLint location, GLint v0);
953typedef void (WINE_GLAPI *PGLFNUNIFORM2IPROC)(GLint location, GLint v0, GLint v1);
954typedef void (WINE_GLAPI *PGLFNUNIFORM3IPROC)(GLint location, GLint v0, GLint v1, GLint v2);
955typedef void (WINE_GLAPI *PGLFNUNIFORM4IPROC)(GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
956typedef void (WINE_GLAPI *PGLFNUNIFORM1FVPROC)(GLint location, GLsizei count, const GLfloat *value);
957typedef void (WINE_GLAPI *PGLFNUNIFORM2FVPROC)(GLint location, GLsizei count, const GLfloat *value);
958typedef void (WINE_GLAPI *PGLFNUNIFORM3FVPROC)(GLint location, GLsizei count, const GLfloat *value);
959typedef void (WINE_GLAPI *PGLFNUNIFORM4FVPROC)(GLint location, GLsizei count, const GLfloat *value);
960typedef void (WINE_GLAPI *PGLFNUNIFORM1IVPROC)(GLint location, GLsizei count, const GLint *value);
961typedef void (WINE_GLAPI *PGLFNUNIFORM2IVPROC)(GLint location, GLsizei count, const GLint *value);
962typedef void (WINE_GLAPI *PGLFNUNIFORM3IVPROC)(GLint location, GLsizei count, const GLint *value);
963typedef void (WINE_GLAPI *PGLFNUNIFORM4IVPROC)(GLint location, GLsizei count, const GLint *value);
964typedef void (WINE_GLAPI *PGLFNUNIFORMMATRIX2FVPROC)(GLint location,
965 GLsizei count, GLboolean transpose, const GLfloat *value);
966typedef void (WINE_GLAPI *PGLFNUNIFORMMATRIX3FVPROC)(GLint location,
967 GLsizei count, GLboolean transpose, const GLfloat *value);
968typedef void (WINE_GLAPI *PGLFNUNIFORMMATRIX4FVPROC)(GLint location,
969 GLsizei count, GLboolean transpose, const GLfloat *value);
970typedef void (WINE_GLAPI *PGLFNVALIDATEPROGRAMPROC)(GLuint program);
971typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB1DPROC)(GLuint index, GLdouble x);
972typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB1DVPROC)(GLuint index, const GLdouble *v);
973typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB1FPROC)(GLuint index, GLfloat x);
974typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB1FVPROC)(GLuint index, const GLfloat *v);
975typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB1SPROC)(GLuint index, GLshort x);
976typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB1SVPROC)(GLuint index, const GLshort *v);
977typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB2DPROC)(GLuint index, GLdouble x, GLdouble y);
978typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB2DVPROC)(GLuint index, const GLdouble *v);
979typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB2FPROC)(GLuint index, GLfloat x, GLfloat y);
980typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB2FVPROC)(GLuint index, const GLfloat *v);
981typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB2SPROC)(GLuint index, GLshort x, GLshort y);
982typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB2SVPROC)(GLuint index, const GLshort *v);
983typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB3DPROC)(GLuint index, GLdouble x, GLdouble y, GLdouble z);
984typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB3DVPROC)(GLuint index, const GLdouble *v);
985typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB3FPROC)(GLuint index, GLfloat x, GLfloat y, GLfloat z);
986typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB3FVPROC)(GLuint index, const GLfloat *v);
987typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB3SPROC)(GLuint index, GLshort x, GLshort y, GLshort z);
988typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB3SVPROC)(GLuint index, const GLshort *v);
989typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB4NBVPROC)(GLuint index, const GLbyte *v);
990typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB4NIVPROC)(GLuint index, const GLint *v);
991typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB4NSVPROC)(GLuint index, const GLshort *v);
992typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB4NUBPROC)(GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
993typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB4NUBVPROC)(GLuint index, const GLubyte *v);
994typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB4NUIVPROC)(GLuint index, const GLuint *v);
995typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB4NUSVPROC)(GLuint index, const GLushort *v);
996typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB4BVPROC)(GLuint index, const GLbyte *v);
997typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB4DPROC)(GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
998typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB4DVPROC)(GLuint index, const GLdouble *v);
999typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB4FPROC)(GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
1000typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB4FVPROC)(GLuint index, const GLfloat *v);
1001typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB4IVPROC)(GLuint index, const GLint *v);
1002typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB4SPROC)(GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
1003typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB4SVPROC)(GLuint index, const GLshort *v);
1004typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB4UBVPROC)(GLuint index, const GLubyte *v);
1005typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB4UIVPROC)(GLuint index, const GLuint *v);
1006typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB4USVPROC)(GLuint index, const GLushort *v);
1007typedef void (WINE_GLAPI *PGLFNVERTEXATTRIBPOINTERPROC)(GLuint index,
1008 GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer);
1009
1010void (WINE_GLAPI *glAccum)(GLenum op, GLfloat value) DECLSPEC_HIDDEN;
1011void (WINE_GLAPI *glAlphaFunc)(GLenum func, GLclampf ref) DECLSPEC_HIDDEN;
1012GLboolean (WINE_GLAPI *glAreTexturesResident)(GLsizei n, const GLuint *textures, GLboolean *residences) DECLSPEC_HIDDEN;
1013void (WINE_GLAPI *glArrayElement)(GLint i) DECLSPEC_HIDDEN;
1014void (WINE_GLAPI *glBegin)(GLenum mode) DECLSPEC_HIDDEN;
1015void (WINE_GLAPI *glBindTexture)(GLenum target, GLuint texture) DECLSPEC_HIDDEN;
1016void (WINE_GLAPI *glBitmap)(GLsizei width, GLsizei height, GLfloat xorig,
1017 GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap) DECLSPEC_HIDDEN;
1018void (WINE_GLAPI *glBlendFunc)(GLenum sfactor, GLenum dfactor) DECLSPEC_HIDDEN;
1019void (WINE_GLAPI *glCallList)(GLuint list) DECLSPEC_HIDDEN;
1020void (WINE_GLAPI *glCallLists)(GLsizei n, GLenum type, const GLvoid *lists) DECLSPEC_HIDDEN;
1021void (WINE_GLAPI *glClear)(GLbitfield mask) DECLSPEC_HIDDEN;
1022void (WINE_GLAPI *glClearAccum)(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha) DECLSPEC_HIDDEN;
1023void (WINE_GLAPI *glClearColor)(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) DECLSPEC_HIDDEN;
1024void (WINE_GLAPI *glClearDepth)(GLclampd depth) DECLSPEC_HIDDEN;
1025void (WINE_GLAPI *glClearIndex)(GLfloat c) DECLSPEC_HIDDEN;
1026void (WINE_GLAPI *glClearStencil)(GLint s) DECLSPEC_HIDDEN;
1027void (WINE_GLAPI *glClipPlane)(GLenum plane, const GLdouble *equation) DECLSPEC_HIDDEN;
1028void (WINE_GLAPI *glColor3b)(GLbyte red, GLbyte green, GLbyte blue) DECLSPEC_HIDDEN;
1029void (WINE_GLAPI *glColor3bv)(const GLbyte *v) DECLSPEC_HIDDEN;
1030void (WINE_GLAPI *glColor3d)(GLdouble red, GLdouble green, GLdouble blue) DECLSPEC_HIDDEN;
1031void (WINE_GLAPI *glColor3dv)(const GLdouble *v) DECLSPEC_HIDDEN;
1032void (WINE_GLAPI *glColor3f)(GLfloat red, GLfloat green, GLfloat blue) DECLSPEC_HIDDEN;
1033void (WINE_GLAPI *glColor3fv)(const GLfloat *v) DECLSPEC_HIDDEN;
1034void (WINE_GLAPI *glColor3i)(GLint red, GLint green, GLint blue) DECLSPEC_HIDDEN;
1035void (WINE_GLAPI *glColor3iv)(const GLint *v) DECLSPEC_HIDDEN;
1036void (WINE_GLAPI *glColor3s)(GLshort red, GLshort green, GLshort blue) DECLSPEC_HIDDEN;
1037void (WINE_GLAPI *glColor3sv)(const GLshort *v) DECLSPEC_HIDDEN;
1038void (WINE_GLAPI *glColor3ub)(GLubyte red, GLubyte green, GLubyte blue) DECLSPEC_HIDDEN;
1039void (WINE_GLAPI *glColor3ubv)(const GLubyte *v) DECLSPEC_HIDDEN;
1040void (WINE_GLAPI *glColor3ui)(GLuint red, GLuint green, GLuint blue) DECLSPEC_HIDDEN;
1041void (WINE_GLAPI *glColor3uiv)(const GLuint *v) DECLSPEC_HIDDEN;
1042void (WINE_GLAPI *glColor3us)(GLushort red, GLushort green, GLushort blue) DECLSPEC_HIDDEN;
1043void (WINE_GLAPI *glColor3usv)(const GLushort *v) DECLSPEC_HIDDEN;
1044void (WINE_GLAPI *glColor4b)(GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha) DECLSPEC_HIDDEN;
1045void (WINE_GLAPI *glColor4bv)(const GLbyte *v) DECLSPEC_HIDDEN;
1046void (WINE_GLAPI *glColor4d)(GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha) DECLSPEC_HIDDEN;
1047void (WINE_GLAPI *glColor4dv)(const GLdouble *v) DECLSPEC_HIDDEN;
1048void (WINE_GLAPI *glColor4f)(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha) DECLSPEC_HIDDEN;
1049void (WINE_GLAPI *glColor4fv)(const GLfloat *v) DECLSPEC_HIDDEN;
1050void (WINE_GLAPI *glColor4i)(GLint red, GLint green, GLint blue, GLint alpha) DECLSPEC_HIDDEN;
1051void (WINE_GLAPI *glColor4iv)(const GLint *v) DECLSPEC_HIDDEN;
1052void (WINE_GLAPI *glColor4s)(GLshort red, GLshort green, GLshort blue, GLshort alpha) DECLSPEC_HIDDEN;
1053void (WINE_GLAPI *glColor4sv)(const GLshort *v) DECLSPEC_HIDDEN;
1054void (WINE_GLAPI *glColor4ub)(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha) DECLSPEC_HIDDEN;
1055void (WINE_GLAPI *glColor4ubv)(const GLubyte *v) DECLSPEC_HIDDEN;
1056void (WINE_GLAPI *glColor4ui)(GLuint red, GLuint green, GLuint blue, GLuint alpha) DECLSPEC_HIDDEN;
1057void (WINE_GLAPI *glColor4uiv)(const GLuint *v) DECLSPEC_HIDDEN;
1058void (WINE_GLAPI *glColor4us)(GLushort red, GLushort green, GLushort blue, GLushort alpha) DECLSPEC_HIDDEN;
1059void (WINE_GLAPI *glColor4usv)(const GLushort *v) DECLSPEC_HIDDEN;
1060void (WINE_GLAPI *glColorMask)(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) DECLSPEC_HIDDEN;
1061void (WINE_GLAPI *glColorMaterial)(GLenum face, GLenum mode) DECLSPEC_HIDDEN;
1062void (WINE_GLAPI *glColorPointer)(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer) DECLSPEC_HIDDEN;
1063void (WINE_GLAPI *glCopyPixels)(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type) DECLSPEC_HIDDEN;
1064void (WINE_GLAPI *glCopyTexImage1D)(GLenum target, GLint level,
1065 GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border) DECLSPEC_HIDDEN;
1066void (WINE_GLAPI *glCopyTexImage2D)(GLenum target, GLint level,
1067 GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border) DECLSPEC_HIDDEN;
1068void (WINE_GLAPI *glCopyTexSubImage1D)(GLenum target, GLint level,
1069 GLint xoffset, GLint x, GLint y, GLsizei width) DECLSPEC_HIDDEN;
1070void (WINE_GLAPI *glCopyTexSubImage2D)(GLenum target, GLint level,
1071 GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height) DECLSPEC_HIDDEN;
1072void (WINE_GLAPI *glCullFace)(GLenum mode) DECLSPEC_HIDDEN;
1073void (WINE_GLAPI *glDeleteLists)(GLuint list, GLsizei range) DECLSPEC_HIDDEN;
1074void (WINE_GLAPI *glDeleteTextures)(GLsizei n, const GLuint *textures) DECLSPEC_HIDDEN;
1075void (WINE_GLAPI *glDepthFunc)(GLenum func) DECLSPEC_HIDDEN;
1076void (WINE_GLAPI *glDepthMask)(GLboolean flag) DECLSPEC_HIDDEN;
1077void (WINE_GLAPI *glDepthRange)(GLclampd nearParam, GLclampd farParam) DECLSPEC_HIDDEN;
1078void (WINE_GLAPI *glDisable)(GLenum cap) DECLSPEC_HIDDEN;
1079void (WINE_GLAPI *glDisableWINE)(GLenum cap) DECLSPEC_HIDDEN;
1080void (WINE_GLAPI *glDisableClientState)(GLenum array) DECLSPEC_HIDDEN;
1081void (WINE_GLAPI *glDrawArrays)(GLenum mode, GLint first, GLsizei count) DECLSPEC_HIDDEN;
1082void (WINE_GLAPI *glDrawBuffer)(GLenum mode) DECLSPEC_HIDDEN;
1083void (WINE_GLAPI *glDrawElements)(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices) DECLSPEC_HIDDEN;
1084void (WINE_GLAPI *glDrawPixels)(GLsizei width, GLsizei height, GLenum format,
1085 GLenum type, const GLvoid *pixels) DECLSPEC_HIDDEN;
1086void (WINE_GLAPI *glEdgeFlag)(GLboolean flag) DECLSPEC_HIDDEN;
1087void (WINE_GLAPI *glEdgeFlagPointer)(GLsizei stride, const GLvoid *pointer) DECLSPEC_HIDDEN;
1088void (WINE_GLAPI *glEdgeFlagv)(const GLboolean *flag) DECLSPEC_HIDDEN;
1089void (WINE_GLAPI *glEnable)(GLenum cap) DECLSPEC_HIDDEN;
1090void (WINE_GLAPI *glEnableWINE)(GLenum cap) DECLSPEC_HIDDEN;
1091void (WINE_GLAPI *glEnableClientState)(GLenum array) DECLSPEC_HIDDEN;
1092void (WINE_GLAPI *glEnd)(void) DECLSPEC_HIDDEN;
1093void (WINE_GLAPI *glEndList)(void) DECLSPEC_HIDDEN;
1094void (WINE_GLAPI *glEvalCoord1d)(GLdouble u) DECLSPEC_HIDDEN;
1095void (WINE_GLAPI *glEvalCoord1dv)(const GLdouble *u) DECLSPEC_HIDDEN;
1096void (WINE_GLAPI *glEvalCoord1f)(GLfloat u) DECLSPEC_HIDDEN;
1097void (WINE_GLAPI *glEvalCoord1fv)(const GLfloat *u) DECLSPEC_HIDDEN;
1098void (WINE_GLAPI *glEvalCoord2d)(GLdouble u, GLdouble v) DECLSPEC_HIDDEN;
1099void (WINE_GLAPI *glEvalCoord2dv)(const GLdouble *u) DECLSPEC_HIDDEN;
1100void (WINE_GLAPI *glEvalCoord2f)(GLfloat u, GLfloat v) DECLSPEC_HIDDEN;
1101void (WINE_GLAPI *glEvalCoord2fv)(const GLfloat *u) DECLSPEC_HIDDEN;
1102void (WINE_GLAPI *glEvalMesh1)(GLenum mode, GLint i1, GLint i2) DECLSPEC_HIDDEN;
1103void (WINE_GLAPI *glEvalMesh2)(GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2) DECLSPEC_HIDDEN;
1104void (WINE_GLAPI *glEvalPoint1)(GLint i) DECLSPEC_HIDDEN;
1105void (WINE_GLAPI *glEvalPoint2)(GLint i, GLint j) DECLSPEC_HIDDEN;
1106void (WINE_GLAPI *glFeedbackBuffer)(GLsizei size, GLenum type, GLfloat *buffer) DECLSPEC_HIDDEN;
1107void (WINE_GLAPI *glFogf)(GLenum pname, GLfloat param) DECLSPEC_HIDDEN;
1108void (WINE_GLAPI *glFogfv)(GLenum pname, const GLfloat *params) DECLSPEC_HIDDEN;
1109void (WINE_GLAPI *glFogi)(GLenum pname, GLint param) DECLSPEC_HIDDEN;
1110void (WINE_GLAPI *glFogiv)(GLenum pname, const GLint *params) DECLSPEC_HIDDEN;
1111void (WINE_GLAPI *glFrontFace)(GLenum mode) DECLSPEC_HIDDEN;
1112void (WINE_GLAPI *glFrustum)(GLdouble left, GLdouble right, GLdouble bottom,
1113 GLdouble top, GLdouble zNear, GLdouble zFar) DECLSPEC_HIDDEN;
1114GLuint (WINE_GLAPI *glGenLists)(GLsizei range) DECLSPEC_HIDDEN;
1115void (WINE_GLAPI *glGenTextures)(GLsizei n, GLuint *textures) DECLSPEC_HIDDEN;
1116void (WINE_GLAPI *glGetBooleanv)(GLenum pname, GLboolean *params) DECLSPEC_HIDDEN;
1117void (WINE_GLAPI *glGetClipPlane)(GLenum plane, GLdouble *equation) DECLSPEC_HIDDEN;
1118void (WINE_GLAPI *glGetDoublev)(GLenum pname, GLdouble *params) DECLSPEC_HIDDEN;
1119GLenum (WINE_GLAPI *glGetError)(void) DECLSPEC_HIDDEN;
1120void (WINE_GLAPI *glGetFloatv)(GLenum pname, GLfloat *params) DECLSPEC_HIDDEN;
1121void (WINE_GLAPI *glGetIntegerv)(GLenum pname, GLint *params) DECLSPEC_HIDDEN;
1122void (WINE_GLAPI *glGetLightfv)(GLenum light, GLenum pname, GLfloat *params) DECLSPEC_HIDDEN;
1123void (WINE_GLAPI *glGetLightiv)(GLenum light, GLenum pname, GLint *params) DECLSPEC_HIDDEN;
1124void (WINE_GLAPI *glGetMapdv)(GLenum target, GLenum query, GLdouble *v) DECLSPEC_HIDDEN;
1125void (WINE_GLAPI *glGetMapfv)(GLenum target, GLenum query, GLfloat *v) DECLSPEC_HIDDEN;
1126void (WINE_GLAPI *glGetMapiv)(GLenum target, GLenum query, GLint *v) DECLSPEC_HIDDEN;
1127void (WINE_GLAPI *glGetMaterialfv)(GLenum face, GLenum pname, GLfloat *params) DECLSPEC_HIDDEN;
1128void (WINE_GLAPI *glGetMaterialiv)(GLenum face, GLenum pname, GLint *params) DECLSPEC_HIDDEN;
1129void (WINE_GLAPI *glGetPixelMapfv)(GLenum map, GLfloat *values) DECLSPEC_HIDDEN;
1130void (WINE_GLAPI *glGetPixelMapuiv)(GLenum map, GLuint *values) DECLSPEC_HIDDEN;
1131void (WINE_GLAPI *glGetPixelMapusv)(GLenum map, GLushort *values) DECLSPEC_HIDDEN;
1132void (WINE_GLAPI *glGetPointerv)(GLenum pname, GLvoid **params) DECLSPEC_HIDDEN;
1133void (WINE_GLAPI *glGetPolygonStipple)(GLubyte *mask) DECLSPEC_HIDDEN;
1134const GLubyte * (WINE_GLAPI *glGetString)(GLenum name) DECLSPEC_HIDDEN;
1135void (WINE_GLAPI *glGetTexEnvfv)(GLenum target, GLenum pname, GLfloat *params) DECLSPEC_HIDDEN;
1136void (WINE_GLAPI *glGetTexEnviv)(GLenum target, GLenum pname, GLint *params) DECLSPEC_HIDDEN;
1137void (WINE_GLAPI *glGetTexGendv)(GLenum coord, GLenum pname, GLdouble *params) DECLSPEC_HIDDEN;
1138void (WINE_GLAPI *glGetTexGenfv)(GLenum coord, GLenum pname, GLfloat *params) DECLSPEC_HIDDEN;
1139void (WINE_GLAPI *glGetTexGeniv)(GLenum coord, GLenum pname, GLint *params) DECLSPEC_HIDDEN;
1140void (WINE_GLAPI *glGetTexImage)(GLenum target, GLint level, GLenum format,
1141 GLenum type, GLvoid *pixels) DECLSPEC_HIDDEN;
1142void (WINE_GLAPI *glGetTexLevelParameterfv)(GLenum target, GLint level, GLenum pname, GLfloat *params) DECLSPEC_HIDDEN;
1143void (WINE_GLAPI *glGetTexLevelParameteriv)(GLenum target, GLint level, GLenum pname, GLint *params) DECLSPEC_HIDDEN;
1144void (WINE_GLAPI *glGetTexParameterfv)(GLenum target, GLenum pname, GLfloat *params) DECLSPEC_HIDDEN;
1145void (WINE_GLAPI *glGetTexParameteriv)(GLenum target, GLenum pname, GLint *params) DECLSPEC_HIDDEN;
1146void (WINE_GLAPI *glHint)(GLenum target, GLenum mode) DECLSPEC_HIDDEN;
1147void (WINE_GLAPI *glIndexMask)(GLuint mask) DECLSPEC_HIDDEN;
1148void (WINE_GLAPI *glIndexPointer)(GLenum type, GLsizei stride, const GLvoid *pointer) DECLSPEC_HIDDEN;
1149void (WINE_GLAPI *glIndexd)(GLdouble c) DECLSPEC_HIDDEN;
1150void (WINE_GLAPI *glIndexdv)(const GLdouble *c) DECLSPEC_HIDDEN;
1151void (WINE_GLAPI *glIndexf)(GLfloat c) DECLSPEC_HIDDEN;
1152void (WINE_GLAPI *glIndexfv)(const GLfloat *c) DECLSPEC_HIDDEN;
1153void (WINE_GLAPI *glIndexi)(GLint c) DECLSPEC_HIDDEN;
1154void (WINE_GLAPI *glIndexiv)(const GLint *c) DECLSPEC_HIDDEN;
1155void (WINE_GLAPI *glIndexs)(GLshort c) DECLSPEC_HIDDEN;
1156void (WINE_GLAPI *glIndexsv)(const GLshort *c) DECLSPEC_HIDDEN;
1157void (WINE_GLAPI *glIndexub)(GLubyte c) DECLSPEC_HIDDEN;
1158void (WINE_GLAPI *glIndexubv)(const GLubyte *c) DECLSPEC_HIDDEN;
1159void (WINE_GLAPI *glInitNames)(void) DECLSPEC_HIDDEN;
1160void (WINE_GLAPI *glInterleavedArrays)(GLenum format, GLsizei stride, const GLvoid *pointer) DECLSPEC_HIDDEN;
1161GLboolean (WINE_GLAPI *glIsEnabled)(GLenum cap) DECLSPEC_HIDDEN;
1162GLboolean (WINE_GLAPI *glIsList)(GLuint list) DECLSPEC_HIDDEN;
1163GLboolean (WINE_GLAPI *glIsTexture)(GLuint texture) DECLSPEC_HIDDEN;
1164void (WINE_GLAPI *glLightModelf)(GLenum pname, GLfloat param) DECLSPEC_HIDDEN;
1165void (WINE_GLAPI *glLightModelfv)(GLenum pname, const GLfloat *params) DECLSPEC_HIDDEN;
1166void (WINE_GLAPI *glLightModeli)(GLenum pname, GLint param) DECLSPEC_HIDDEN;
1167void (WINE_GLAPI *glLightModeliv)(GLenum pname, const GLint *params) DECLSPEC_HIDDEN;
1168void (WINE_GLAPI *glLightf)(GLenum light, GLenum pname, GLfloat param) DECLSPEC_HIDDEN;
1169void (WINE_GLAPI *glLightfv)(GLenum light, GLenum pname, const GLfloat *params) DECLSPEC_HIDDEN;
1170void (WINE_GLAPI *glLighti)(GLenum light, GLenum pname, GLint param) DECLSPEC_HIDDEN;
1171void (WINE_GLAPI *glLightiv)(GLenum light, GLenum pname, const GLint *params) DECLSPEC_HIDDEN;
1172void (WINE_GLAPI *glLineStipple)(GLint factor, GLushort pattern) DECLSPEC_HIDDEN;
1173void (WINE_GLAPI *glLineWidth)(GLfloat width) DECLSPEC_HIDDEN;
1174void (WINE_GLAPI *glListBase)(GLuint base) DECLSPEC_HIDDEN;
1175void (WINE_GLAPI *glLoadIdentity)(void) DECLSPEC_HIDDEN;
1176void (WINE_GLAPI *glLoadMatrixd)(const GLdouble *m) DECLSPEC_HIDDEN;
1177void (WINE_GLAPI *glLoadMatrixf)(const GLfloat *m) DECLSPEC_HIDDEN;
1178void (WINE_GLAPI *glLoadName)(GLuint name) DECLSPEC_HIDDEN;
1179void (WINE_GLAPI *glLogicOp)(GLenum opcode) DECLSPEC_HIDDEN;
1180void (WINE_GLAPI *glMap1d)(GLenum target, GLdouble u1, GLdouble u2,
1181 GLint stride, GLint order, const GLdouble *points) DECLSPEC_HIDDEN;
1182void (WINE_GLAPI *glMap1f)(GLenum target, GLfloat u1, GLfloat u2, GLint stride,
1183 GLint order, const GLfloat *points) DECLSPEC_HIDDEN;
1184void (WINE_GLAPI *glMap2d)(GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder,
1185 GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points) DECLSPEC_HIDDEN;
1186void (WINE_GLAPI *glMap2f)(GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder,
1187 GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points) DECLSPEC_HIDDEN;
1188void (WINE_GLAPI *glMapGrid1d)(GLint un, GLdouble u1, GLdouble u2) DECLSPEC_HIDDEN;
1189void (WINE_GLAPI *glMapGrid1f)(GLint un, GLfloat u1, GLfloat u2) DECLSPEC_HIDDEN;
1190void (WINE_GLAPI *glMapGrid2d)(GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2) DECLSPEC_HIDDEN;
1191void (WINE_GLAPI *glMapGrid2f)(GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2) DECLSPEC_HIDDEN;
1192void (WINE_GLAPI *glMaterialf)(GLenum face, GLenum pname, GLfloat param) DECLSPEC_HIDDEN;
1193void (WINE_GLAPI *glMaterialfv)(GLenum face, GLenum pname, const GLfloat *params) DECLSPEC_HIDDEN;
1194void (WINE_GLAPI *glMateriali)(GLenum face, GLenum pname, GLint param) DECLSPEC_HIDDEN;
1195void (WINE_GLAPI *glMaterialiv)(GLenum face, GLenum pname, const GLint *params) DECLSPEC_HIDDEN;
1196void (WINE_GLAPI *glMatrixMode)(GLenum mode) DECLSPEC_HIDDEN;
1197void (WINE_GLAPI *glMultMatrixd)(const GLdouble *m) DECLSPEC_HIDDEN;
1198void (WINE_GLAPI *glMultMatrixf)(const GLfloat *m) DECLSPEC_HIDDEN;
1199void (WINE_GLAPI *glNewList)(GLuint list, GLenum mode) DECLSPEC_HIDDEN;
1200void (WINE_GLAPI *glNormal3b)(GLbyte nx, GLbyte ny, GLbyte nz) DECLSPEC_HIDDEN;
1201void (WINE_GLAPI *glNormal3bv)(const GLbyte *v) DECLSPEC_HIDDEN;
1202void (WINE_GLAPI *glNormal3d)(GLdouble nx, GLdouble ny, GLdouble nz) DECLSPEC_HIDDEN;
1203void (WINE_GLAPI *glNormal3dv)(const GLdouble *v) DECLSPEC_HIDDEN;
1204void (WINE_GLAPI *glNormal3f)(GLfloat nx, GLfloat ny, GLfloat nz) DECLSPEC_HIDDEN;
1205void (WINE_GLAPI *glNormal3fv)(const GLfloat *v) DECLSPEC_HIDDEN;
1206void (WINE_GLAPI *glNormal3i)(GLint nx, GLint ny, GLint nz) DECLSPEC_HIDDEN;
1207void (WINE_GLAPI *glNormal3iv)(const GLint *v) DECLSPEC_HIDDEN;
1208void (WINE_GLAPI *glNormal3s)(GLshort nx, GLshort ny, GLshort nz) DECLSPEC_HIDDEN;
1209void (WINE_GLAPI *glNormal3sv)(const GLshort *v) DECLSPEC_HIDDEN;
1210void (WINE_GLAPI *glNormalPointer)(GLenum type, GLsizei stride, const GLvoid *pointer) DECLSPEC_HIDDEN;
1211void (WINE_GLAPI *glOrtho)(GLdouble left, GLdouble right, GLdouble bottom,
1212 GLdouble top, GLdouble zNear, GLdouble zFar) DECLSPEC_HIDDEN;
1213void (WINE_GLAPI *glPassThrough)(GLfloat token) DECLSPEC_HIDDEN;
1214void (WINE_GLAPI *glPixelMapfv)(GLenum map, GLint mapsize, const GLfloat *values) DECLSPEC_HIDDEN;
1215void (WINE_GLAPI *glPixelMapuiv)(GLenum map, GLint mapsize, const GLuint *values) DECLSPEC_HIDDEN;
1216void (WINE_GLAPI *glPixelMapusv)(GLenum map, GLint mapsize, const GLushort *values) DECLSPEC_HIDDEN;
1217void (WINE_GLAPI *glPixelStoref)(GLenum pname, GLfloat param) DECLSPEC_HIDDEN;
1218void (WINE_GLAPI *glPixelStorei)(GLenum pname, GLint param) DECLSPEC_HIDDEN;
1219void (WINE_GLAPI *glPixelTransferf)(GLenum pname, GLfloat param) DECLSPEC_HIDDEN;
1220void (WINE_GLAPI *glPixelTransferi)(GLenum pname, GLint param) DECLSPEC_HIDDEN;
1221void (WINE_GLAPI *glPixelZoom)(GLfloat xfactor, GLfloat yfactor) DECLSPEC_HIDDEN;
1222void (WINE_GLAPI *glPointSize)(GLfloat size) DECLSPEC_HIDDEN;
1223void (WINE_GLAPI *glPolygonMode)(GLenum face, GLenum mode) DECLSPEC_HIDDEN;
1224void (WINE_GLAPI *glPolygonOffset)(GLfloat factor, GLfloat units) DECLSPEC_HIDDEN;
1225void (WINE_GLAPI *glPolygonStipple)(const GLubyte *mask) DECLSPEC_HIDDEN;
1226void (WINE_GLAPI *glPopAttrib)(void) DECLSPEC_HIDDEN;
1227void (WINE_GLAPI *glPopClientAttrib)(void) DECLSPEC_HIDDEN;
1228void (WINE_GLAPI *glPopMatrix)(void) DECLSPEC_HIDDEN;
1229void (WINE_GLAPI *glPopName)(void) DECLSPEC_HIDDEN;
1230void (WINE_GLAPI *glPrioritizeTextures)(GLsizei n, const GLuint *textures, const GLclampf *priorities) DECLSPEC_HIDDEN;
1231void (WINE_GLAPI *glPushAttrib)(GLbitfield mask) DECLSPEC_HIDDEN;
1232void (WINE_GLAPI *glPushClientAttrib)(GLbitfield mask) DECLSPEC_HIDDEN;
1233void (WINE_GLAPI *glPushMatrix)(void) DECLSPEC_HIDDEN;
1234void (WINE_GLAPI *glPushName)(GLuint name) DECLSPEC_HIDDEN;
1235void (WINE_GLAPI *glRasterPos2d)(GLdouble x, GLdouble y) DECLSPEC_HIDDEN;
1236void (WINE_GLAPI *glRasterPos2dv)(const GLdouble *v) DECLSPEC_HIDDEN;
1237void (WINE_GLAPI *glRasterPos2f)(GLfloat x, GLfloat y) DECLSPEC_HIDDEN;
1238void (WINE_GLAPI *glRasterPos2fv)(const GLfloat *v) DECLSPEC_HIDDEN;
1239void (WINE_GLAPI *glRasterPos2i)(GLint x, GLint y) DECLSPEC_HIDDEN;
1240void (WINE_GLAPI *glRasterPos2iv)(const GLint *v) DECLSPEC_HIDDEN;
1241void (WINE_GLAPI *glRasterPos2s)(GLshort x, GLshort y) DECLSPEC_HIDDEN;
1242void (WINE_GLAPI *glRasterPos2sv)(const GLshort *v) DECLSPEC_HIDDEN;
1243void (WINE_GLAPI *glRasterPos3d)(GLdouble x, GLdouble y, GLdouble z) DECLSPEC_HIDDEN;
1244void (WINE_GLAPI *glRasterPos3dv)(const GLdouble *v) DECLSPEC_HIDDEN;
1245void (WINE_GLAPI *glRasterPos3f)(GLfloat x, GLfloat y, GLfloat z) DECLSPEC_HIDDEN;
1246void (WINE_GLAPI *glRasterPos3fv)(const GLfloat *v) DECLSPEC_HIDDEN;
1247void (WINE_GLAPI *glRasterPos3i)(GLint x, GLint y, GLint z) DECLSPEC_HIDDEN;
1248void (WINE_GLAPI *glRasterPos3iv)(const GLint *v) DECLSPEC_HIDDEN;
1249void (WINE_GLAPI *glRasterPos3s)(GLshort x, GLshort y, GLshort z) DECLSPEC_HIDDEN;
1250void (WINE_GLAPI *glRasterPos3sv)(const GLshort *v) DECLSPEC_HIDDEN;
1251void (WINE_GLAPI *glRasterPos4d)(GLdouble x, GLdouble y, GLdouble z, GLdouble w) DECLSPEC_HIDDEN;
1252void (WINE_GLAPI *glRasterPos4dv)(const GLdouble *v) DECLSPEC_HIDDEN;
1253void (WINE_GLAPI *glRasterPos4f)(GLfloat x, GLfloat y, GLfloat z, GLfloat w) DECLSPEC_HIDDEN;
1254void (WINE_GLAPI *glRasterPos4fv)(const GLfloat *v) DECLSPEC_HIDDEN;
1255void (WINE_GLAPI *glRasterPos4i)(GLint x, GLint y, GLint z, GLint w) DECLSPEC_HIDDEN;
1256void (WINE_GLAPI *glRasterPos4iv)(const GLint *v) DECLSPEC_HIDDEN;
1257void (WINE_GLAPI *glRasterPos4s)(GLshort x, GLshort y, GLshort z, GLshort w) DECLSPEC_HIDDEN;
1258void (WINE_GLAPI *glRasterPos4sv)(const GLshort *v) DECLSPEC_HIDDEN;
1259void (WINE_GLAPI *glReadBuffer)(GLenum mode) DECLSPEC_HIDDEN;
1260void (WINE_GLAPI *glReadPixels)(GLint x, GLint y, GLsizei width, GLsizei height,
1261 GLenum format, GLenum type, GLvoid *pixels) DECLSPEC_HIDDEN;
1262void (WINE_GLAPI *glRectd)(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2) DECLSPEC_HIDDEN;
1263void (WINE_GLAPI *glRectdv)(const GLdouble *v1, const GLdouble *v2) DECLSPEC_HIDDEN;
1264void (WINE_GLAPI *glRectf)(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2) DECLSPEC_HIDDEN;
1265void (WINE_GLAPI *glRectfv)(const GLfloat *v1, const GLfloat *v2) DECLSPEC_HIDDEN;
1266void (WINE_GLAPI *glRecti)(GLint x1, GLint y1, GLint x2, GLint y2) DECLSPEC_HIDDEN;
1267void (WINE_GLAPI *glRectiv)(const GLint *v1, const GLint *v2) DECLSPEC_HIDDEN;
1268void (WINE_GLAPI *glRects)(GLshort x1, GLshort y1, GLshort x2, GLshort y2) DECLSPEC_HIDDEN;
1269void (WINE_GLAPI *glRectsv)(const GLshort *v1, const GLshort *v2) DECLSPEC_HIDDEN;
1270GLint (WINE_GLAPI *glRenderMode)(GLenum mode) DECLSPEC_HIDDEN;
1271void (WINE_GLAPI *glRotated)(GLdouble angle, GLdouble x, GLdouble y, GLdouble z) DECLSPEC_HIDDEN;
1272void (WINE_GLAPI *glRotatef)(GLfloat angle, GLfloat x, GLfloat y, GLfloat z) DECLSPEC_HIDDEN;
1273void (WINE_GLAPI *glScaled)(GLdouble x, GLdouble y, GLdouble z) DECLSPEC_HIDDEN;
1274void (WINE_GLAPI *glScalef)(GLfloat x, GLfloat y, GLfloat z) DECLSPEC_HIDDEN;
1275void (WINE_GLAPI *glScissor)(GLint x, GLint y, GLsizei width, GLsizei height) DECLSPEC_HIDDEN;
1276void (WINE_GLAPI *glSelectBuffer)(GLsizei size, GLuint *buffer) DECLSPEC_HIDDEN;
1277void (WINE_GLAPI *glShadeModel)(GLenum mode) DECLSPEC_HIDDEN;
1278void (WINE_GLAPI *glStencilFunc)(GLenum func, GLint ref, GLuint mask) DECLSPEC_HIDDEN;
1279void (WINE_GLAPI *glStencilMask)(GLuint mask) DECLSPEC_HIDDEN;
1280void (WINE_GLAPI *glStencilOp)(GLenum fail, GLenum zfail, GLenum zpass) DECLSPEC_HIDDEN;
1281void (WINE_GLAPI *glTexCoord1d)(GLdouble s) DECLSPEC_HIDDEN;
1282void (WINE_GLAPI *glTexCoord1dv)(const GLdouble *v) DECLSPEC_HIDDEN;
1283void (WINE_GLAPI *glTexCoord1f)(GLfloat s) DECLSPEC_HIDDEN;
1284void (WINE_GLAPI *glTexCoord1fv)(const GLfloat *v) DECLSPEC_HIDDEN;
1285void (WINE_GLAPI *glTexCoord1i)(GLint s) DECLSPEC_HIDDEN;
1286void (WINE_GLAPI *glTexCoord1iv)(const GLint *v) DECLSPEC_HIDDEN;
1287void (WINE_GLAPI *glTexCoord1s)(GLshort s) DECLSPEC_HIDDEN;
1288void (WINE_GLAPI *glTexCoord1sv)(const GLshort *v) DECLSPEC_HIDDEN;
1289void (WINE_GLAPI *glTexCoord2d)(GLdouble s, GLdouble t) DECLSPEC_HIDDEN;
1290void (WINE_GLAPI *glTexCoord2dv)(const GLdouble *v) DECLSPEC_HIDDEN;
1291void (WINE_GLAPI *glTexCoord2f)(GLfloat s, GLfloat t) DECLSPEC_HIDDEN;
1292void (WINE_GLAPI *glTexCoord2fv)(const GLfloat *v) DECLSPEC_HIDDEN;
1293void (WINE_GLAPI *glTexCoord2i)(GLint s, GLint t) DECLSPEC_HIDDEN;
1294void (WINE_GLAPI *glTexCoord2iv)(const GLint *v) DECLSPEC_HIDDEN;
1295void (WINE_GLAPI *glTexCoord2s)(GLshort s, GLshort t) DECLSPEC_HIDDEN;
1296void (WINE_GLAPI *glTexCoord2sv)(const GLshort *v) DECLSPEC_HIDDEN;
1297void (WINE_GLAPI *glTexCoord3d)(GLdouble s, GLdouble t, GLdouble r) DECLSPEC_HIDDEN;
1298void (WINE_GLAPI *glTexCoord3dv)(const GLdouble *v) DECLSPEC_HIDDEN;
1299void (WINE_GLAPI *glTexCoord3f)(GLfloat s, GLfloat t, GLfloat r) DECLSPEC_HIDDEN;
1300void (WINE_GLAPI *glTexCoord3fv)(const GLfloat *v) DECLSPEC_HIDDEN;
1301void (WINE_GLAPI *glTexCoord3i)(GLint s, GLint t, GLint r) DECLSPEC_HIDDEN;
1302void (WINE_GLAPI *glTexCoord3iv)(const GLint *v) DECLSPEC_HIDDEN;
1303void (WINE_GLAPI *glTexCoord3s)(GLshort s, GLshort t, GLshort r) DECLSPEC_HIDDEN;
1304void (WINE_GLAPI *glTexCoord3sv)(const GLshort *v) DECLSPEC_HIDDEN;
1305void (WINE_GLAPI *glTexCoord4d)(GLdouble s, GLdouble t, GLdouble r, GLdouble q) DECLSPEC_HIDDEN;
1306void (WINE_GLAPI *glTexCoord4dv)(const GLdouble *v) DECLSPEC_HIDDEN;
1307void (WINE_GLAPI *glTexCoord4f)(GLfloat s, GLfloat t, GLfloat r, GLfloat q) DECLSPEC_HIDDEN;
1308void (WINE_GLAPI *glTexCoord4fv)(const GLfloat *v) DECLSPEC_HIDDEN;
1309void (WINE_GLAPI *glTexCoord4i)(GLint s, GLint t, GLint r, GLint q) DECLSPEC_HIDDEN;
1310void (WINE_GLAPI *glTexCoord4iv)(const GLint *v) DECLSPEC_HIDDEN;
1311void (WINE_GLAPI *glTexCoord4s)(GLshort s, GLshort t, GLshort r, GLshort q) DECLSPEC_HIDDEN;
1312void (WINE_GLAPI *glTexCoord4sv)(const GLshort *v) DECLSPEC_HIDDEN;
1313void (WINE_GLAPI *glTexCoordPointer)(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer) DECLSPEC_HIDDEN;
1314void (WINE_GLAPI *glTexEnvf)(GLenum target, GLenum pname, GLfloat param) DECLSPEC_HIDDEN;
1315void (WINE_GLAPI *glTexEnvfv)(GLenum target, GLenum pname, const GLfloat *params) DECLSPEC_HIDDEN;
1316void (WINE_GLAPI *glTexEnvi)(GLenum target, GLenum pname, GLint param) DECLSPEC_HIDDEN;
1317void (WINE_GLAPI *glTexEnviv)(GLenum target, GLenum pname, const GLint *params) DECLSPEC_HIDDEN;
1318void (WINE_GLAPI *glTexGend)(GLenum coord, GLenum pname, GLdouble param) DECLSPEC_HIDDEN;
1319void (WINE_GLAPI *glTexGendv)(GLenum coord, GLenum pname, const GLdouble *params) DECLSPEC_HIDDEN;
1320void (WINE_GLAPI *glTexGenf)(GLenum coord, GLenum pname, GLfloat param) DECLSPEC_HIDDEN;
1321void (WINE_GLAPI *glTexGenfv)(GLenum coord, GLenum pname, const GLfloat *params) DECLSPEC_HIDDEN;
1322void (WINE_GLAPI *glTexGeni)(GLenum coord, GLenum pname, GLint param) DECLSPEC_HIDDEN;
1323void (WINE_GLAPI *glTexGeniv)(GLenum coord, GLenum pname, const GLint *params) DECLSPEC_HIDDEN;
1324void (WINE_GLAPI *glTexImage1D)(GLenum target, GLint level, GLint internalformat, GLsizei width,
1325 GLint border, GLenum format, GLenum type, const GLvoid *pixels) DECLSPEC_HIDDEN;
1326void (WINE_GLAPI *glTexImage2D)(GLenum target, GLint level, GLint internalformat, GLsizei width,
1327 GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels) DECLSPEC_HIDDEN;
1328void (WINE_GLAPI *glTexParameterf)(GLenum target, GLenum pname, GLfloat param) DECLSPEC_HIDDEN;
1329void (WINE_GLAPI *glTexParameterfv)(GLenum target, GLenum pname, const GLfloat *params) DECLSPEC_HIDDEN;
1330void (WINE_GLAPI *glTexParameteri)(GLenum target, GLenum pname, GLint param) DECLSPEC_HIDDEN;
1331void (WINE_GLAPI *glTexParameteriv)(GLenum target, GLenum pname, const GLint *params) DECLSPEC_HIDDEN;
1332void (WINE_GLAPI *glTexSubImage1D)(GLenum target, GLint level, GLint xoffset,
1333 GLsizei width, GLenum format, GLenum type, const GLvoid *pixels) DECLSPEC_HIDDEN;
1334void (WINE_GLAPI *glTexSubImage2D)(GLenum target, GLint level, GLint xoffset, GLint yoffset,
1335 GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels) DECLSPEC_HIDDEN;
1336void (WINE_GLAPI *glTranslated)(GLdouble x, GLdouble y, GLdouble z) DECLSPEC_HIDDEN;
1337void (WINE_GLAPI *glTranslatef)(GLfloat x, GLfloat y, GLfloat z) DECLSPEC_HIDDEN;
1338void (WINE_GLAPI *glVertex2d)(GLdouble x, GLdouble y) DECLSPEC_HIDDEN;
1339void (WINE_GLAPI *glVertex2dv)(const GLdouble *v) DECLSPEC_HIDDEN;
1340void (WINE_GLAPI *glVertex2f)(GLfloat x, GLfloat y) DECLSPEC_HIDDEN;
1341void (WINE_GLAPI *glVertex2fv)(const GLfloat *v) DECLSPEC_HIDDEN;
1342void (WINE_GLAPI *glVertex2i)(GLint x, GLint y) DECLSPEC_HIDDEN;
1343void (WINE_GLAPI *glVertex2iv)(const GLint *v) DECLSPEC_HIDDEN;
1344void (WINE_GLAPI *glVertex2s)(GLshort x, GLshort y) DECLSPEC_HIDDEN;
1345void (WINE_GLAPI *glVertex2sv)(const GLshort *v) DECLSPEC_HIDDEN;
1346void (WINE_GLAPI *glVertex3d)(GLdouble x, GLdouble y, GLdouble z) DECLSPEC_HIDDEN;
1347void (WINE_GLAPI *glVertex3dv)(const GLdouble *v) DECLSPEC_HIDDEN;
1348void (WINE_GLAPI *glVertex3f)(GLfloat x, GLfloat y, GLfloat z) DECLSPEC_HIDDEN;
1349void (WINE_GLAPI *glVertex3fv)(const GLfloat *v) DECLSPEC_HIDDEN;
1350void (WINE_GLAPI *glVertex3i)(GLint x, GLint y, GLint z) DECLSPEC_HIDDEN;
1351void (WINE_GLAPI *glVertex3iv)(const GLint *v) DECLSPEC_HIDDEN;
1352void (WINE_GLAPI *glVertex3s)(GLshort x, GLshort y, GLshort z) DECLSPEC_HIDDEN;
1353void (WINE_GLAPI *glVertex3sv)(const GLshort *v) DECLSPEC_HIDDEN;
1354void (WINE_GLAPI *glVertex4d)(GLdouble x, GLdouble y, GLdouble z, GLdouble w) DECLSPEC_HIDDEN;
1355void (WINE_GLAPI *glVertex4dv)(const GLdouble *v) DECLSPEC_HIDDEN;
1356void (WINE_GLAPI *glVertex4f)(GLfloat x, GLfloat y, GLfloat z, GLfloat w) DECLSPEC_HIDDEN;
1357void (WINE_GLAPI *glVertex4fv)(const GLfloat *v) DECLSPEC_HIDDEN;
1358void (WINE_GLAPI *glVertex4i)(GLint x, GLint y, GLint z, GLint w) DECLSPEC_HIDDEN;
1359void (WINE_GLAPI *glVertex4iv)(const GLint *v) DECLSPEC_HIDDEN;
1360void (WINE_GLAPI *glVertex4s)(GLshort x, GLshort y, GLshort z, GLshort w) DECLSPEC_HIDDEN;
1361void (WINE_GLAPI *glVertex4sv)(const GLshort *v) DECLSPEC_HIDDEN;
1362void (WINE_GLAPI *glVertexPointer)(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer) DECLSPEC_HIDDEN;
1363void (WINE_GLAPI *glViewport)(GLint x, GLint y, GLsizei width, GLsizei height) DECLSPEC_HIDDEN;
1364void (WINE_GLAPI *glPointParameterfv)(GLenum pname, const GLfloat *params) DECLSPEC_HIDDEN;
1365
1366/* glFinish and glFlush are always loaded from opengl32.dll, thus they always have
1367 * __stdcall calling convention.
1368 *
1369 * They are wgl functions and must not be called inside the gl lock, give them a
1370 * name that makes this clear
1371 */
1372void (__stdcall *wglFinish)(void) DECLSPEC_HIDDEN;
1373void (__stdcall *wglFlush)(void) DECLSPEC_HIDDEN;
1374
1375/* WGL functions */
1376BOOL (WINAPI *pwglDeleteContext)(HGLRC) DECLSPEC_HIDDEN;
1377HGLRC (WINAPI *pwglGetCurrentContext)(void) DECLSPEC_HIDDEN;
1378HDC (WINAPI *pwglGetCurrentDC)(void) DECLSPEC_HIDDEN;
1379PROC (WINAPI *pwglGetProcAddress)(LPCSTR) DECLSPEC_HIDDEN;
1380BOOL (WINAPI *pwglMakeCurrent)(HDC, HGLRC) DECLSPEC_HIDDEN;
1381BOOL (WINAPI *pwglSwapLayerBuffers)(HDC, UINT) DECLSPEC_HIDDEN;
1382BOOL (WINAPI *pwglShareLists)(HGLRC, HGLRC) DECLSPEC_HIDDEN;
1383BOOL (WINAPI *pwglChoosePixelFormat)(HDC, const PIXELFORMATDESCRIPTOR *) DECLSPEC_HIDDEN;
1384int (WINAPI *pwglDescribePixelFormat)(HDC, int, UINT, LPPIXELFORMATDESCRIPTOR) DECLSPEC_HIDDEN;
1385int (WINAPI *pwglGetPixelFormat)(HDC) DECLSPEC_HIDDEN;
1386BOOL (WINAPI *pwglSetPixelFormat)(HDC, int, const PIXELFORMATDESCRIPTOR *) DECLSPEC_HIDDEN;
1387
1388struct VBOXUHGSMI;
1389HGLRC (WINAPI *pVBoxCreateContext)(HDC, struct VBOXUHGSMI*) DECLSPEC_HIDDEN;
1390void (WINAPI *pVBoxFlushToHost)(HGLRC) DECLSPEC_HIDDEN;
1391
1392#if defined(VBOX_WITH_WDDM) || defined(VBOX_WINE_WITH_SINGLE_SWAPCHAIN_CONTEXT)
1393# define VBOX_WINE_WITH_DIRECT_VBOXOGL
1394#endif
1395
1396#ifdef VBOX_WINE_WITH_DIRECT_VBOXOGL
1397/* make sure we used stuff from VBoxOGL
1398 * we do it this way to avoid extra modifications to Wine code */
1399
1400/* We're directly using wglMakeCurrent calls skipping GDI layer, which causes GDI SwapBuffers to fail trying to
1401 * call glFinish, which doesn't have any context set. So we use wglSwapLayerBuffers directly as well.
1402 */
1403# define SwapBuffers(_hdc) pwglSwapLayerBuffers((_hdc), WGL_SWAP_MAIN_PLANE)
1404
1405/* we avoid using GDI32!*PixelFormat API and use VBoxOGL stuff directly
1406 * because SetPixelFormat may eventually lead to opengl32 setting its own window proc via SetWindowLongPtr
1407 * thus wined3d_[un]register_window stuff will become screwed up leading to infinite recursion or other misbehave */
1408# define ChoosePixelFormat pwglChoosePixelFormat
1409# define DescribePixelFormat pwglDescribePixelFormat
1410# define GetPixelFormat pwglGetPixelFormat
1411# define SetPixelFormat pwglSetPixelFormat
1412#endif
1413
1414#define GL_FUNCS_GEN \
1415 USE_GL_FUNC(glAccum) \
1416 USE_GL_FUNC(glAlphaFunc) \
1417 USE_GL_FUNC(glAreTexturesResident) \
1418 USE_GL_FUNC(glArrayElement) \
1419 USE_GL_FUNC(glBegin) \
1420 USE_GL_FUNC(glBindTexture) \
1421 USE_GL_FUNC(glBitmap) \
1422 USE_GL_FUNC(glBlendFunc) \
1423 USE_GL_FUNC(glCallList) \
1424 USE_GL_FUNC(glCallLists) \
1425 USE_GL_FUNC(glClear) \
1426 USE_GL_FUNC(glClearAccum) \
1427 USE_GL_FUNC(glClearColor) \
1428 USE_GL_FUNC(glClearDepth) \
1429 USE_GL_FUNC(glClearIndex) \
1430 USE_GL_FUNC(glClearStencil) \
1431 USE_GL_FUNC(glClipPlane) \
1432 USE_GL_FUNC(glColor3b) \
1433 USE_GL_FUNC(glColor3bv) \
1434 USE_GL_FUNC(glColor3d) \
1435 USE_GL_FUNC(glColor3dv) \
1436 USE_GL_FUNC(glColor3f) \
1437 USE_GL_FUNC(glColor3fv) \
1438 USE_GL_FUNC(glColor3i) \
1439 USE_GL_FUNC(glColor3iv) \
1440 USE_GL_FUNC(glColor3s) \
1441 USE_GL_FUNC(glColor3sv) \
1442 USE_GL_FUNC(glColor3ub) \
1443 USE_GL_FUNC(glColor3ubv) \
1444 USE_GL_FUNC(glColor3ui) \
1445 USE_GL_FUNC(glColor3uiv) \
1446 USE_GL_FUNC(glColor3us) \
1447 USE_GL_FUNC(glColor3usv) \
1448 USE_GL_FUNC(glColor4b) \
1449 USE_GL_FUNC(glColor4bv) \
1450 USE_GL_FUNC(glColor4d) \
1451 USE_GL_FUNC(glColor4dv) \
1452 USE_GL_FUNC(glColor4f) \
1453 USE_GL_FUNC(glColor4fv) \
1454 USE_GL_FUNC(glColor4i) \
1455 USE_GL_FUNC(glColor4iv) \
1456 USE_GL_FUNC(glColor4s) \
1457 USE_GL_FUNC(glColor4sv) \
1458 USE_GL_FUNC(glColor4ub) \
1459 USE_GL_FUNC(glColor4ubv) \
1460 USE_GL_FUNC(glColor4ui) \
1461 USE_GL_FUNC(glColor4uiv) \
1462 USE_GL_FUNC(glColor4us) \
1463 USE_GL_FUNC(glColor4usv) \
1464 USE_GL_FUNC(glColorMask) \
1465 USE_GL_FUNC(glColorMaterial) \
1466 USE_GL_FUNC(glColorPointer) \
1467 USE_GL_FUNC(glCopyPixels) \
1468 USE_GL_FUNC(glCopyTexImage1D) \
1469 USE_GL_FUNC(glCopyTexImage2D) \
1470 USE_GL_FUNC(glCopyTexSubImage1D) \
1471 USE_GL_FUNC(glCopyTexSubImage2D) \
1472 USE_GL_FUNC(glCullFace) \
1473 USE_GL_FUNC(glDeleteLists) \
1474 USE_GL_FUNC(glDeleteTextures) \
1475 USE_GL_FUNC(glDepthFunc) \
1476 USE_GL_FUNC(glDepthMask) \
1477 USE_GL_FUNC(glDepthRange) \
1478 USE_GL_FUNC(glDisable) \
1479 USE_GL_FUNC(glDisableClientState) \
1480 USE_GL_FUNC(glDrawArrays) \
1481 USE_GL_FUNC(glDrawBuffer) \
1482 USE_GL_FUNC(glDrawElements) \
1483 USE_GL_FUNC(glDrawPixels) \
1484 USE_GL_FUNC(glEdgeFlag) \
1485 USE_GL_FUNC(glEdgeFlagPointer) \
1486 USE_GL_FUNC(glEdgeFlagv) \
1487 USE_GL_FUNC(glEnable) \
1488 USE_GL_FUNC(glEnableClientState) \
1489 USE_GL_FUNC(glEnd) \
1490 USE_GL_FUNC(glEndList) \
1491 USE_GL_FUNC(glEvalCoord1d) \
1492 USE_GL_FUNC(glEvalCoord1dv) \
1493 USE_GL_FUNC(glEvalCoord1f) \
1494 USE_GL_FUNC(glEvalCoord1fv) \
1495 USE_GL_FUNC(glEvalCoord2d) \
1496 USE_GL_FUNC(glEvalCoord2dv) \
1497 USE_GL_FUNC(glEvalCoord2f) \
1498 USE_GL_FUNC(glEvalCoord2fv) \
1499 USE_GL_FUNC(glEvalMesh1) \
1500 USE_GL_FUNC(glEvalMesh2) \
1501 USE_GL_FUNC(glEvalPoint1) \
1502 USE_GL_FUNC(glEvalPoint2) \
1503 USE_GL_FUNC(glFeedbackBuffer) \
1504 USE_GL_FUNC(glFogf) \
1505 USE_GL_FUNC(glFogfv) \
1506 USE_GL_FUNC(glFogi) \
1507 USE_GL_FUNC(glFogiv) \
1508 USE_GL_FUNC(glFrontFace) \
1509 USE_GL_FUNC(glFrustum) \
1510 USE_GL_FUNC(glGenLists) \
1511 USE_GL_FUNC(glGenTextures) \
1512 USE_GL_FUNC(glGetBooleanv) \
1513 USE_GL_FUNC(glGetClipPlane) \
1514 USE_GL_FUNC(glGetDoublev) \
1515 USE_GL_FUNC(glGetError) \
1516 USE_GL_FUNC(glGetFloatv) \
1517 USE_GL_FUNC(glGetIntegerv) \
1518 USE_GL_FUNC(glGetLightfv) \
1519 USE_GL_FUNC(glGetLightiv) \
1520 USE_GL_FUNC(glGetMapdv) \
1521 USE_GL_FUNC(glGetMapfv) \
1522 USE_GL_FUNC(glGetMapiv) \
1523 USE_GL_FUNC(glGetMaterialfv) \
1524 USE_GL_FUNC(glGetMaterialiv) \
1525 USE_GL_FUNC(glGetPixelMapfv) \
1526 USE_GL_FUNC(glGetPixelMapuiv) \
1527 USE_GL_FUNC(glGetPixelMapusv) \
1528 USE_GL_FUNC(glGetPointerv) \
1529 USE_GL_FUNC(glGetPolygonStipple) \
1530 USE_GL_FUNC(glGetString) \
1531 USE_GL_FUNC(glGetTexEnvfv) \
1532 USE_GL_FUNC(glGetTexEnviv) \
1533 USE_GL_FUNC(glGetTexGendv) \
1534 USE_GL_FUNC(glGetTexGenfv) \
1535 USE_GL_FUNC(glGetTexGeniv) \
1536 USE_GL_FUNC(glGetTexImage) \
1537 USE_GL_FUNC(glGetTexLevelParameterfv) \
1538 USE_GL_FUNC(glGetTexLevelParameteriv) \
1539 USE_GL_FUNC(glGetTexParameterfv) \
1540 USE_GL_FUNC(glGetTexParameteriv) \
1541 USE_GL_FUNC(glHint) \
1542 USE_GL_FUNC(glIndexMask) \
1543 USE_GL_FUNC(glIndexPointer) \
1544 USE_GL_FUNC(glIndexd) \
1545 USE_GL_FUNC(glIndexdv) \
1546 USE_GL_FUNC(glIndexf) \
1547 USE_GL_FUNC(glIndexfv) \
1548 USE_GL_FUNC(glIndexi) \
1549 USE_GL_FUNC(glIndexiv) \
1550 USE_GL_FUNC(glIndexs) \
1551 USE_GL_FUNC(glIndexsv) \
1552 USE_GL_FUNC(glIndexub) \
1553 USE_GL_FUNC(glIndexubv) \
1554 USE_GL_FUNC(glInitNames) \
1555 USE_GL_FUNC(glInterleavedArrays) \
1556 USE_GL_FUNC(glIsEnabled) \
1557 USE_GL_FUNC(glIsList) \
1558 USE_GL_FUNC(glIsTexture) \
1559 USE_GL_FUNC(glLightModelf) \
1560 USE_GL_FUNC(glLightModelfv) \
1561 USE_GL_FUNC(glLightModeli) \
1562 USE_GL_FUNC(glLightModeliv) \
1563 USE_GL_FUNC(glLightf) \
1564 USE_GL_FUNC(glLightfv) \
1565 USE_GL_FUNC(glLighti) \
1566 USE_GL_FUNC(glLightiv) \
1567 USE_GL_FUNC(glLineStipple) \
1568 USE_GL_FUNC(glLineWidth) \
1569 USE_GL_FUNC(glListBase) \
1570 USE_GL_FUNC(glLoadIdentity) \
1571 USE_GL_FUNC(glLoadMatrixd) \
1572 USE_GL_FUNC(glLoadMatrixf) \
1573 USE_GL_FUNC(glLoadName) \
1574 USE_GL_FUNC(glLogicOp) \
1575 USE_GL_FUNC(glMap1d) \
1576 USE_GL_FUNC(glMap1f) \
1577 USE_GL_FUNC(glMap2d) \
1578 USE_GL_FUNC(glMap2f) \
1579 USE_GL_FUNC(glMapGrid1d) \
1580 USE_GL_FUNC(glMapGrid1f) \
1581 USE_GL_FUNC(glMapGrid2d) \
1582 USE_GL_FUNC(glMapGrid2f) \
1583 USE_GL_FUNC(glMaterialf) \
1584 USE_GL_FUNC(glMaterialfv) \
1585 USE_GL_FUNC(glMateriali) \
1586 USE_GL_FUNC(glMaterialiv) \
1587 USE_GL_FUNC(glMatrixMode) \
1588 USE_GL_FUNC(glMultMatrixd) \
1589 USE_GL_FUNC(glMultMatrixf) \
1590 USE_GL_FUNC(glNewList) \
1591 USE_GL_FUNC(glNormal3b) \
1592 USE_GL_FUNC(glNormal3bv) \
1593 USE_GL_FUNC(glNormal3d) \
1594 USE_GL_FUNC(glNormal3dv) \
1595 USE_GL_FUNC(glNormal3f) \
1596 USE_GL_FUNC(glNormal3fv) \
1597 USE_GL_FUNC(glNormal3i) \
1598 USE_GL_FUNC(glNormal3iv) \
1599 USE_GL_FUNC(glNormal3s) \
1600 USE_GL_FUNC(glNormal3sv) \
1601 USE_GL_FUNC(glNormalPointer) \
1602 USE_GL_FUNC(glOrtho) \
1603 USE_GL_FUNC(glPassThrough) \
1604 USE_GL_FUNC(glPixelMapfv) \
1605 USE_GL_FUNC(glPixelMapuiv) \
1606 USE_GL_FUNC(glPixelMapusv) \
1607 USE_GL_FUNC(glPixelStoref) \
1608 USE_GL_FUNC(glPixelStorei) \
1609 USE_GL_FUNC(glPixelTransferf) \
1610 USE_GL_FUNC(glPixelTransferi) \
1611 USE_GL_FUNC(glPixelZoom) \
1612 USE_GL_FUNC(glPointSize) \
1613 USE_GL_FUNC(glPolygonMode) \
1614 USE_GL_FUNC(glPolygonOffset) \
1615 USE_GL_FUNC(glPolygonStipple) \
1616 USE_GL_FUNC(glPopAttrib) \
1617 USE_GL_FUNC(glPopClientAttrib) \
1618 USE_GL_FUNC(glPopMatrix) \
1619 USE_GL_FUNC(glPopName) \
1620 USE_GL_FUNC(glPrioritizeTextures) \
1621 USE_GL_FUNC(glPushAttrib) \
1622 USE_GL_FUNC(glPushClientAttrib) \
1623 USE_GL_FUNC(glPushMatrix) \
1624 USE_GL_FUNC(glPushName) \
1625 USE_GL_FUNC(glRasterPos2d) \
1626 USE_GL_FUNC(glRasterPos2dv) \
1627 USE_GL_FUNC(glRasterPos2f) \
1628 USE_GL_FUNC(glRasterPos2fv) \
1629 USE_GL_FUNC(glRasterPos2i) \
1630 USE_GL_FUNC(glRasterPos2iv) \
1631 USE_GL_FUNC(glRasterPos2s) \
1632 USE_GL_FUNC(glRasterPos2sv) \
1633 USE_GL_FUNC(glRasterPos3d) \
1634 USE_GL_FUNC(glRasterPos3dv) \
1635 USE_GL_FUNC(glRasterPos3f) \
1636 USE_GL_FUNC(glRasterPos3fv) \
1637 USE_GL_FUNC(glRasterPos3i) \
1638 USE_GL_FUNC(glRasterPos3iv) \
1639 USE_GL_FUNC(glRasterPos3s) \
1640 USE_GL_FUNC(glRasterPos3sv) \
1641 USE_GL_FUNC(glRasterPos4d) \
1642 USE_GL_FUNC(glRasterPos4dv) \
1643 USE_GL_FUNC(glRasterPos4f) \
1644 USE_GL_FUNC(glRasterPos4fv) \
1645 USE_GL_FUNC(glRasterPos4i) \
1646 USE_GL_FUNC(glRasterPos4iv) \
1647 USE_GL_FUNC(glRasterPos4s) \
1648 USE_GL_FUNC(glRasterPos4sv) \
1649 USE_GL_FUNC(glReadBuffer) \
1650 USE_GL_FUNC(glReadPixels) \
1651 USE_GL_FUNC(glRectd) \
1652 USE_GL_FUNC(glRectdv) \
1653 USE_GL_FUNC(glRectf) \
1654 USE_GL_FUNC(glRectfv) \
1655 USE_GL_FUNC(glRecti) \
1656 USE_GL_FUNC(glRectiv) \
1657 USE_GL_FUNC(glRects) \
1658 USE_GL_FUNC(glRectsv) \
1659 USE_GL_FUNC(glRenderMode) \
1660 USE_GL_FUNC(glRotated) \
1661 USE_GL_FUNC(glRotatef) \
1662 USE_GL_FUNC(glScaled) \
1663 USE_GL_FUNC(glScalef) \
1664 USE_GL_FUNC(glScissor) \
1665 USE_GL_FUNC(glSelectBuffer) \
1666 USE_GL_FUNC(glShadeModel) \
1667 USE_GL_FUNC(glStencilFunc) \
1668 USE_GL_FUNC(glStencilMask) \
1669 USE_GL_FUNC(glStencilOp) \
1670 USE_GL_FUNC(glTexCoord1d) \
1671 USE_GL_FUNC(glTexCoord1dv) \
1672 USE_GL_FUNC(glTexCoord1f) \
1673 USE_GL_FUNC(glTexCoord1fv) \
1674 USE_GL_FUNC(glTexCoord1i) \
1675 USE_GL_FUNC(glTexCoord1iv) \
1676 USE_GL_FUNC(glTexCoord1s) \
1677 USE_GL_FUNC(glTexCoord1sv) \
1678 USE_GL_FUNC(glTexCoord2d) \
1679 USE_GL_FUNC(glTexCoord2dv) \
1680 USE_GL_FUNC(glTexCoord2f) \
1681 USE_GL_FUNC(glTexCoord2fv) \
1682 USE_GL_FUNC(glTexCoord2i) \
1683 USE_GL_FUNC(glTexCoord2iv) \
1684 USE_GL_FUNC(glTexCoord2s) \
1685 USE_GL_FUNC(glTexCoord2sv) \
1686 USE_GL_FUNC(glTexCoord3d) \
1687 USE_GL_FUNC(glTexCoord3dv) \
1688 USE_GL_FUNC(glTexCoord3f) \
1689 USE_GL_FUNC(glTexCoord3fv) \
1690 USE_GL_FUNC(glTexCoord3i) \
1691 USE_GL_FUNC(glTexCoord3iv) \
1692 USE_GL_FUNC(glTexCoord3s) \
1693 USE_GL_FUNC(glTexCoord3sv) \
1694 USE_GL_FUNC(glTexCoord4d) \
1695 USE_GL_FUNC(glTexCoord4dv) \
1696 USE_GL_FUNC(glTexCoord4f) \
1697 USE_GL_FUNC(glTexCoord4fv) \
1698 USE_GL_FUNC(glTexCoord4i) \
1699 USE_GL_FUNC(glTexCoord4iv) \
1700 USE_GL_FUNC(glTexCoord4s) \
1701 USE_GL_FUNC(glTexCoord4sv) \
1702 USE_GL_FUNC(glTexCoordPointer) \
1703 USE_GL_FUNC(glTexEnvf) \
1704 USE_GL_FUNC(glTexEnvfv) \
1705 USE_GL_FUNC(glTexEnvi) \
1706 USE_GL_FUNC(glTexEnviv) \
1707 USE_GL_FUNC(glTexGend) \
1708 USE_GL_FUNC(glTexGendv) \
1709 USE_GL_FUNC(glTexGenf) \
1710 USE_GL_FUNC(glTexGenfv) \
1711 USE_GL_FUNC(glTexGeni) \
1712 USE_GL_FUNC(glTexGeniv) \
1713 USE_GL_FUNC(glTexImage1D) \
1714 USE_GL_FUNC(glTexImage2D) \
1715 USE_GL_FUNC(glTexParameterf) \
1716 USE_GL_FUNC(glTexParameterfv) \
1717 USE_GL_FUNC(glTexParameteri) \
1718 USE_GL_FUNC(glTexParameteriv) \
1719 USE_GL_FUNC(glTexSubImage1D) \
1720 USE_GL_FUNC(glTexSubImage2D) \
1721 USE_GL_FUNC(glTranslated) \
1722 USE_GL_FUNC(glTranslatef) \
1723 USE_GL_FUNC(glVertex2d) \
1724 USE_GL_FUNC(glVertex2dv) \
1725 USE_GL_FUNC(glVertex2f) \
1726 USE_GL_FUNC(glVertex2fv) \
1727 USE_GL_FUNC(glVertex2i) \
1728 USE_GL_FUNC(glVertex2iv) \
1729 USE_GL_FUNC(glVertex2s) \
1730 USE_GL_FUNC(glVertex2sv) \
1731 USE_GL_FUNC(glVertex3d) \
1732 USE_GL_FUNC(glVertex3dv) \
1733 USE_GL_FUNC(glVertex3f) \
1734 USE_GL_FUNC(glVertex3fv) \
1735 USE_GL_FUNC(glVertex3i) \
1736 USE_GL_FUNC(glVertex3iv) \
1737 USE_GL_FUNC(glVertex3s) \
1738 USE_GL_FUNC(glVertex3sv) \
1739 USE_GL_FUNC(glVertex4d) \
1740 USE_GL_FUNC(glVertex4dv) \
1741 USE_GL_FUNC(glVertex4f) \
1742 USE_GL_FUNC(glVertex4fv) \
1743 USE_GL_FUNC(glVertex4i) \
1744 USE_GL_FUNC(glVertex4iv) \
1745 USE_GL_FUNC(glVertex4s) \
1746 USE_GL_FUNC(glVertex4sv) \
1747 USE_GL_FUNC(glVertexPointer) \
1748 USE_GL_FUNC(glViewport) \
1749 USE_GL_FUNC(glPointParameterfv) \
1750
1751#define WGL_FUNCS_GEN \
1752 USE_WGL_FUNC(wglDeleteContext) \
1753 USE_WGL_FUNC(wglGetCurrentContext) \
1754 USE_WGL_FUNC(wglGetCurrentDC) \
1755 USE_WGL_FUNC(wglGetProcAddress) \
1756 USE_WGL_FUNC(wglMakeCurrent) \
1757 USE_WGL_FUNC(wglShareLists) \
1758 USE_WGL_FUNC(wglSwapLayerBuffers) \
1759 USE_WGL_FUNC(wglChoosePixelFormat) \
1760 USE_WGL_FUNC(wglDescribePixelFormat) \
1761 USE_WGL_FUNC(wglGetPixelFormat) \
1762 USE_WGL_FUNC(wglSetPixelFormat)
1763
1764#define VBOX_FUNCS_GEN \
1765 USE_WGL_FUNC(VBoxCreateContext) \
1766 USE_WGL_FUNC(VBoxFlushToHost)
1767
1768/* OpenGL extensions. */
1769typedef enum wined3d_gl_extension
1770{
1771 WINED3D_GL_EXT_NONE,
1772
1773 /* APPLE */
1774 APPLE_CLIENT_STORAGE,
1775 APPLE_FENCE,
1776 APPLE_FLOAT_PIXELS,
1777 APPLE_FLUSH_BUFFER_RANGE,
1778 APPLE_FLUSH_RENDER,
1779 APPLE_YCBCR_422,
1780 /* ARB */
1781 ARB_COLOR_BUFFER_FLOAT,
1782 ARB_DEPTH_BUFFER_FLOAT,
1783 ARB_DEPTH_CLAMP,
1784 ARB_DEPTH_TEXTURE,
1785 ARB_DRAW_BUFFERS,
1786 ARB_FRAGMENT_PROGRAM,
1787 ARB_FRAGMENT_SHADER,
1788 ARB_FRAMEBUFFER_OBJECT,
1789 ARB_GEOMETRY_SHADER4,
1790 ARB_HALF_FLOAT_PIXEL,
1791 ARB_HALF_FLOAT_VERTEX,
1792 ARB_IMAGING,
1793 ARB_MAP_BUFFER_RANGE,
1794 ARB_MULTISAMPLE,
1795 ARB_MULTITEXTURE,
1796 ARB_OCCLUSION_QUERY,
1797 ARB_PIXEL_BUFFER_OBJECT,
1798 ARB_POINT_PARAMETERS,
1799 ARB_POINT_SPRITE,
1800 ARB_PROVOKING_VERTEX,
1801 ARB_SHADER_OBJECTS,
1802 ARB_SHADER_TEXTURE_LOD,
1803 ARB_SHADING_LANGUAGE_100,
1804 ARB_SYNC,
1805 ARB_TEXTURE_BORDER_CLAMP,
1806 ARB_TEXTURE_COMPRESSION,
1807 ARB_TEXTURE_CUBE_MAP,
1808 ARB_TEXTURE_ENV_ADD,
1809 ARB_TEXTURE_ENV_COMBINE,
1810 ARB_TEXTURE_ENV_DOT3,
1811 ARB_TEXTURE_FLOAT,
1812 ARB_TEXTURE_MIRRORED_REPEAT,
1813 ARB_TEXTURE_NON_POWER_OF_TWO,
1814 ARB_TEXTURE_RECTANGLE,
1815 ARB_TEXTURE_RG,
1816 ARB_VERTEX_ARRAY_BGRA,
1817 ARB_VERTEX_BLEND,
1818 ARB_VERTEX_BUFFER_OBJECT,
1819 ARB_VERTEX_PROGRAM,
1820 ARB_VERTEX_SHADER,
1821 /* ATI */
1822 ATI_FRAGMENT_SHADER,
1823 ATI_SEPARATE_STENCIL,
1824 ATI_TEXTURE_COMPRESSION_3DC,
1825 ATI_TEXTURE_ENV_COMBINE3,
1826 ATI_TEXTURE_MIRROR_ONCE,
1827 /* EXT */
1828 EXT_BLEND_COLOR,
1829 EXT_BLEND_EQUATION_SEPARATE,
1830 EXT_BLEND_FUNC_SEPARATE,
1831 EXT_BLEND_MINMAX,
1832 EXT_DRAW_BUFFERS2,
1833 EXT_FOG_COORD,
1834 EXT_FRAMEBUFFER_BLIT,
1835 EXT_FRAMEBUFFER_MULTISAMPLE,
1836 EXT_FRAMEBUFFER_OBJECT,
1837 EXT_GPU_PROGRAM_PARAMETERS,
1838 EXT_GPU_SHADER4,
1839 EXT_PACKED_DEPTH_STENCIL,
1840 EXT_PALETTED_TEXTURE,
1841 EXT_POINT_PARAMETERS,
1842 EXT_PROVOKING_VERTEX,
1843 EXT_SECONDARY_COLOR,
1844 EXT_STENCIL_TWO_SIDE,
1845 EXT_STENCIL_WRAP,
1846 EXT_TEXTURE3D,
1847 EXT_TEXTURE_COMPRESSION_RGTC,
1848 EXT_TEXTURE_COMPRESSION_S3TC,
1849 EXT_TEXTURE_ENV_ADD,
1850 EXT_TEXTURE_ENV_COMBINE,
1851 EXT_TEXTURE_ENV_DOT3,
1852 EXT_TEXTURE_FILTER_ANISOTROPIC,
1853 EXT_TEXTURE_LOD_BIAS,
1854 EXT_TEXTURE_SRGB,
1855 EXT_VERTEX_ARRAY_BGRA,
1856 /* NVIDIA */
1857 NV_DEPTH_CLAMP,
1858 NV_FENCE,
1859 NV_FOG_DISTANCE,
1860 NV_FRAGMENT_PROGRAM,
1861 NV_FRAGMENT_PROGRAM2,
1862 NV_FRAGMENT_PROGRAM_OPTION,
1863 NV_HALF_FLOAT,
1864 NV_LIGHT_MAX_EXPONENT,
1865 NV_REGISTER_COMBINERS,
1866 NV_REGISTER_COMBINERS2,
1867 NV_TEXGEN_REFLECTION,
1868 NV_TEXTURE_ENV_COMBINE4,
1869 NV_TEXTURE_SHADER,
1870 NV_TEXTURE_SHADER2,
1871 NV_VERTEX_PROGRAM,
1872 NV_VERTEX_PROGRAM1_1,
1873 NV_VERTEX_PROGRAM2,
1874 NV_VERTEX_PROGRAM2_OPTION,
1875 NV_VERTEX_PROGRAM3,
1876 /* SGI */
1877 SGIS_GENERATE_MIPMAP,
1878 SGI_VIDEO_SYNC,
1879 /* WGL extensions */
1880 WGL_ARB_PIXEL_FORMAT,
1881 WGL_WINE_PIXEL_FORMAT_PASSTHROUGH,
1882
1883 VBOX_SHARED_CONTEXTS,
1884
1885 /* Internally used */
1886 WINE_NORMALIZED_TEXRECT,
1887
1888 WINED3D_GL_EXT_COUNT,
1889} GL_SupportedExt;
1890
1891/* GL_APPLE_client_storage */
1892#ifndef GL_APPLE_client_storage
1893#define GL_APPLE_client_storage 1
1894#define GL_UNPACK_CLIENT_STORAGE_APPLE 0x85b2
1895#endif
1896
1897/* GL_APPLE_fence */
1898#ifndef GL_APPLE_fence
1899#define GL_APPLE_fence 1
1900#define GL_DRAW_PIXELS_APPLE 0x8a0a
1901#define GL_FENCE_APPLE 0x8a0b
1902#endif
1903typedef void (WINE_GLAPI *PGLFNGENFENCESAPPLEPROC)(GLsizei, GLuint *);
1904typedef void (WINE_GLAPI *PGLFNDELETEFENCESAPPLEPROC)(GLuint, const GLuint *);
1905typedef void (WINE_GLAPI *PGLFNSETFENCEAPPLEPROC)(GLuint);
1906typedef GLboolean (WINE_GLAPI *PGLFNTESTFENCEAPPLEPROC)(GLuint);
1907typedef void (WINE_GLAPI *PGLFNFINISHFENCEAPPLEPROC)(GLuint);
1908typedef GLboolean (WINE_GLAPI *PGLFNISFENCEAPPLEPROC)(GLuint);
1909typedef GLboolean (WINE_GLAPI *PGLFNTESTOBJECTAPPLEPROC)(GLenum, GLuint);
1910typedef void (WINE_GLAPI *PGLFNFINISHOBJECTAPPLEPROC)(GLenum, GLuint);
1911
1912/* GL_APPLE_float_pixels */
1913#ifndef GL_APPLE_float_pixels
1914#define GL_APPLE_float_pixels 1
1915#define GL_HALF_APPLE 0x140b
1916#define GL_COLOR_FLOAT_APPLE 0x8a0f
1917#define GL_RGBA_FLOAT32_APPLE 0x8814
1918#define GL_RGB_FLOAT32_APPLE 0x8815
1919#define GL_ALPHA_FLOAT32_APPLE 0x8816
1920#define GL_INTENSITY_FLOAT32_APPLE 0x8817
1921#define GL_LUMINANCE_FLOAT32_APPLE 0x8818
1922#define GL_LUMINANCE_ALPHA_FLOAT32_APPLE 0x8819
1923#define GL_RGBA_FLOAT16_APPLE 0x881a
1924#define GL_RGB_FLOAT16_APPLE 0x881b
1925#define GL_ALPHA_FLOAT16_APPLE 0x881c
1926#define GL_INTENSITY_FLOAT16_APPLE 0x881d
1927#define GL_LUMINANCE_FLOAT16_APPLE 0x881e
1928#define GL_LUMINANCE_ALPHA_FLOAT16_APPLE 0x881f
1929#endif
1930
1931/* GL_APPLE_flush_buffer_range */
1932#ifndef GL_APPLE_flush_buffer_range
1933#define GL_APPLE_flush_buffer_range 1
1934#define GL_BUFFER_SERIALIZED_MODIFY_APPLE 0x8a12
1935#define GL_BUFFER_FLUSHING_UNMAP_APPLE 0x8a13
1936typedef void (WINE_GLAPI *PGLFNBUFFERPARAMETERIAPPLE)(GLenum target, GLenum pname, GLint param);
1937typedef void (WINE_GLAPI *PGLFNFLUSHMAPPEDBUFFERRANGEAPPLE)(GLenum target, GLintptr offset, GLsizeiptr size);
1938#endif
1939
1940/* GL_APPLE_flush_render */
1941typedef void (WINE_GLAPI *PGLFNFLUSHRENDERAPPLEPROC)(void);
1942typedef void (WINE_GLAPI *PGLFNFINISHRENDERAPPLEPROC)(void);
1943
1944/* GL_APPLE_ycbcr_422 */
1945#ifndef GL_APPLE_ycbcr_422
1946#define GL_APPLE_ycbcr_422 1
1947#define GL_YCBCR_422_APPLE 0x85b9
1948#define UNSIGNED_SHORT_8_8_APPLE 0x85ba
1949#define UNSIGNED_SHORT_8_8_REV_APPLE 0x85bb
1950#endif
1951
1952/* GL_ARB_color_buffer_float */
1953#ifndef GL_ARB_color_buffer_float
1954#define GL_ARB_color_buffer_float 1
1955#define GL_RGBA_FLOAT_MODE_ARB 0x8820
1956#define GL_CLAMP_VERTEX_COLOR_ARB 0x891a
1957#define GL_CLAMP_FRAGMENT_COLOR_ARB 0x891b
1958#define GL_CLAMP_READ_COLOR_ARB 0x891c
1959#define GL_FIXED_ONLY_ARB 0x891d
1960#endif
1961typedef void (WINE_GLAPI *PGLFNCLAMPCOLORARBPROC)(GLenum target, GLenum clamp);
1962
1963/* GL_ARB_depth_buffer_float */
1964#ifndef GL_ARB_depth_buffer_float
1965#define GL_ARB_depth_buffer_float 1
1966#define GL_DEPTH_COMPONENT32F 0x8cac
1967#define GL_DEPTH32F_STENCIL8 0x8cad
1968#define GL_FLOAT_32_UNSIGNED_INT_24_8_REV 0x8dad
1969#endif
1970
1971/* GL_ARB_depth_clamp */
1972#ifndef GL_ARB_depth_clamp
1973#define GL_ARB_depth_clamp 1
1974#define GL_DEPTH_CLAMP 0x864f
1975#endif
1976
1977/* GL_ARB_depth_texture */
1978#ifndef GL_ARB_depth_texture
1979#define GL_ARB_depth_texture 1
1980#define GL_DEPTH_COMPONENT16_ARB 0x81a5
1981#define GL_DEPTH_COMPONENT24_ARB 0x81a6
1982#define GL_DEPTH_COMPONENT32_ARB 0x81a7
1983#define GL_TEXTURE_DEPTH_SIZE_ARB 0x884a
1984#define GL_DEPTH_TEXTURE_MODE_ARB 0x884b
1985#endif
1986
1987/* GL_ARB_draw_buffers */
1988#ifndef GL_ARB_draw_buffers
1989#define GL_ARB_draw_buffers 1
1990#define GL_MAX_DRAW_BUFFERS_ARB 0x8824
1991#define GL_DRAW_BUFFER0_ARB 0x8825
1992#define GL_DRAW_BUFFER1_ARB 0x8826
1993#define GL_DRAW_BUFFER2_ARB 0x8827
1994#define GL_DRAW_BUFFER3_ARB 0x8828
1995#define GL_DRAW_BUFFER4_ARB 0x8829
1996#define GL_DRAW_BUFFER5_ARB 0x882a
1997#define GL_DRAW_BUFFER6_ARB 0x882b
1998#define GL_DRAW_BUFFER7_ARB 0x882c
1999#define GL_DRAW_BUFFER8_ARB 0x882d
2000#define GL_DRAW_BUFFER9_ARB 0x882e
2001#define GL_DRAW_BUFFER10_ARB 0x882f
2002#define GL_DRAW_BUFFER11_ARB 0x8830
2003#define GL_DRAW_BUFFER12_ARB 0x8831
2004#define GL_DRAW_BUFFER13_ARB 0x8832
2005#define GL_DRAW_BUFFER14_ARB 0x8833
2006#define GL_DRAW_BUFFER15_ARB 0x8834
2007#endif
2008typedef void (WINE_GLAPI *PGLFNDRAWBUFFERSARBPROC)(GLsizei n, const GLenum *bufs);
2009
2010/* GL_ARB_fragment_program */
2011#ifndef GL_ARB_fragment_program
2012#define GL_ARB_fragment_program 1
2013#define GL_FRAGMENT_PROGRAM_ARB 0x8804
2014#define GL_PROGRAM_ALU_INSTRUCTIONS_ARB 0x8805
2015#define GL_PROGRAM_TEX_INSTRUCTIONS_ARB 0x8806
2016#define GL_PROGRAM_TEX_INDIRECTIONS_ARB 0x8807
2017#define GL_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB 0x8808
2018#define GL_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB 0x8809
2019#define GL_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB 0x880a
2020#define GL_MAX_PROGRAM_ALU_INSTRUCTIONS_ARB 0x880b
2021#define GL_MAX_PROGRAM_TEX_INSTRUCTIONS_ARB 0x880c
2022#define GL_MAX_PROGRAM_TEX_INDIRECTIONS_ARB 0x880d
2023#define GL_MAX_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB 0x880e
2024#define GL_MAX_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB 0x880f
2025#define GL_MAX_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB 0x8810
2026#define GL_MAX_TEXTURE_COORDS_ARB 0x8871
2027#define GL_MAX_TEXTURE_IMAGE_UNITS_ARB 0x8872
2028/* All ARB_fragment_program entry points are shared with ARB_vertex_program. */
2029#endif
2030
2031/* GL_ARB_fragment_shader */
2032#ifndef GL_ARB_fragment_shader
2033#define GL_ARB_fragment_shader 1
2034#define GL_FRAGMENT_SHADER_ARB 0x8b30
2035#define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB 0x8b49
2036#define GL_FRAGMENT_SHADER_DERIVATIVE_HINT_ARB 0x8b8b
2037#endif
2038
2039/* GL_ARB_framebuffer_object */
2040#ifndef GL_ARB_framebuffer_object
2041#define GL_ARB_framebuffer_object 1
2042#define GL_FRAMEBUFFER 0x8d40
2043#define GL_READ_FRAMEBUFFER 0x8ca8
2044#define GL_DRAW_FRAMEBUFFER 0x8ca9
2045#define GL_RENDERBUFFER 0x8d41
2046#define GL_STENCIL_INDEX1 0x8d46
2047#define GL_STENCIL_INDEX4 0x8d47
2048#define GL_STENCIL_INDEX8 0x8d48
2049#define GL_STENCIL_INDEX16 0x8d49
2050#define GL_RENDERBUFFER_WIDTH 0x8d42
2051#define GL_RENDERBUFFER_HEIGHT 0x8d43
2052#define GL_RENDERBUFFER_INTERNAL_FORMAT 0x8d44
2053#define GL_RENDERBUFFER_RED_SIZE 0x8d50
2054#define GL_RENDERBUFFER_GREEN_SIZE 0x8d51
2055#define GL_RENDERBUFFER_BLUE_SIZE 0x8d52
2056#define GL_RENDERBUFFER_ALPHA_SIZE 0x8d53
2057#define GL_RENDERBUFFER_DEPTH_SIZE 0x8d54
2058#define GL_RENDERBUFFER_STENCIL_SIZE 0x8d55
2059#define GL_RENDERBUFFER_SAMPLES 0x8cab
2060#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE 0x8cd0
2061#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME 0x8cd1
2062#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL 0x8cd2
2063#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE 0x8cd3
2064#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER 0x8cd4
2065#define GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING 0x8210
2066#define GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE 0x8211
2067#define GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE 0x8212
2068#define GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE 0x8213
2069#define GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE 0x8214
2070#define GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE 0x8215
2071#define GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE 0x8216
2072#define GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE 0x8217
2073#define GL_SRGB 0x8c40
2074#define GL_UNSIGNED_NORMALIZED 0x8c17
2075#define GL_FRAMEBUFFER_DEFAULT 0x8218
2076#define GL_INDEX 0x8222
2077#define GL_COLOR_ATTACHMENT0 0x8ce0
2078#define GL_COLOR_ATTACHMENT1 0x8ce1
2079#define GL_COLOR_ATTACHMENT2 0x8ce2
2080#define GL_COLOR_ATTACHMENT3 0x8ce3
2081#define GL_COLOR_ATTACHMENT4 0x8ce4
2082#define GL_COLOR_ATTACHMENT5 0x8ce5
2083#define GL_COLOR_ATTACHMENT6 0x8ce6
2084#define GL_COLOR_ATTACHMENT7 0x8ce7
2085#define GL_COLOR_ATTACHMENT8 0x8ce8
2086#define GL_COLOR_ATTACHMENT9 0x8ce9
2087#define GL_COLOR_ATTACHMENT10 0x8cea
2088#define GL_COLOR_ATTACHMENT11 0x8ceb
2089#define GL_COLOR_ATTACHMENT12 0x8cec
2090#define GL_COLOR_ATTACHMENT13 0x8ced
2091#define GL_COLOR_ATTACHMENT14 0x8cee
2092#define GL_COLOR_ATTACHMENT15 0x8cef
2093#define GL_DEPTH_ATTACHMENT 0x8d00
2094#define GL_STENCIL_ATTACHMENT 0x8d20
2095#define GL_DEPTH_STENCIL_ATTACHMENT 0x821a
2096#define GL_MAX_SAMPLES 0x8d57
2097#define GL_FRAMEBUFFER_COMPLETE 0x8cd5
2098#define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT 0x8cd6
2099#define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT 0x8cd7
2100#define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER 0x8cdb
2101#define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER 0x8cdc
2102#define GL_FRAMEBUFFER_UNSUPPORTED 0x8cdd
2103#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE 0x8d56
2104#define GL_FRAMEBUFFER_UNDEFINED 0x8219
2105#define GL_FRAMEBUFFER_BINDING 0x8ca6
2106#define GL_DRAW_FRAMEBUFFER_BINDING 0x8ca6
2107#define GL_READ_FRAMEBUFFER_BINDING 0x8caa
2108#define GL_RENDERBUFFER_BINDING 0x8ca7
2109#define GL_MAX_COLOR_ATTACHMENTS 0x8cdf
2110#define GL_MAX_RENDERBUFFER_SIZE 0x84e8
2111#define GL_INVALID_FRAMEBUFFER_OPERATION 0x0506
2112#define GL_DEPTH_STENCIL 0x84f9
2113#define GL_UNSIGNED_INT_24_8 0x84fa
2114#define GL_DEPTH24_STENCIL8 0x88f0
2115#define GL_TEXTURE_STENCIL_SIZE 0x88f1
2116#endif
2117typedef GLboolean (WINE_GLAPI *PGLFNGLISRENDERBUFFERPROC)(GLuint renderbuffer);
2118typedef void (WINE_GLAPI *PGLFNGLBINDRENDERBUFFERPROC)(GLenum target, GLuint renderbuffer);
2119typedef void (WINE_GLAPI *PGLFNGLDELETERENDERBUFFERSPROC)(GLsizei n, const GLuint *renderbuffers);
2120typedef void (WINE_GLAPI *PGLFNGLGENRENDERBUFFERSPROC)(GLsizei n, GLuint *renderbuffers);
2121typedef void (WINE_GLAPI *PGLFNGLRENDERBUFFERSTORAGEPROC)(GLenum target, GLenum internalformat,
2122 GLsizei width, GLsizei height);
2123typedef void (WINE_GLAPI *PGLFNRENDERBUFFERSTORAGEMULTISAMPLEPROC)(GLenum target, GLsizei samples,
2124 GLenum internalformat, GLsizei width, GLsizei height);
2125typedef void (WINE_GLAPI *PGLFNGLGETRENDERBUFFERPARAMETERIVPROC)(GLenum target, GLenum pname, GLint *params);
2126typedef GLboolean (WINE_GLAPI *PGLFNGLISFRAMEBUFFERPROC)(GLuint framebuffer);
2127typedef void (WINE_GLAPI *PGLFNGLBINDFRAMEBUFFERPROC)(GLenum target, GLuint framebuffer);
2128typedef void (WINE_GLAPI *PGLFNGLDELETEFRAMEBUFFERSPROC)(GLsizei n, const GLuint *framebuffers);
2129typedef void (WINE_GLAPI *PGLFNGLGENFRAMEBUFFERSPROC)(GLsizei n, GLuint *framebuffers);
2130typedef GLenum (WINE_GLAPI *PGLFNGLCHECKFRAMEBUFFERSTATUSPROC)(GLenum target);
2131typedef void (WINE_GLAPI *PGLFNGLFRAMEBUFFERTEXTURE1DPROC)(GLenum target, GLenum attachment,
2132 GLenum textarget, GLuint texture, GLint level);
2133typedef void (WINE_GLAPI *PGLFNGLFRAMEBUFFERTEXTURE2DPROC)(GLenum target, GLenum attachment,
2134 GLenum textarget, GLuint texture, GLint level);
2135typedef void (WINE_GLAPI *PGLFNGLFRAMEBUFFERTEXTURE3DPROC)(GLenum target, GLenum attachment,
2136 GLenum textarget, GLuint texture, GLint level, GLint layer);
2137typedef void (WINE_GLAPI *PGLFNGLFRAMEBUFFERTEXTURELAYERPROC)(GLenum target, GLenum attachment,
2138 GLuint texture, GLint level, GLint layer);
2139typedef void (WINE_GLAPI *PGLFNGLFRAMEBUFFERRENDERBUFFERPROC)(GLenum target, GLenum attachment,
2140 GLenum renderbuffertarget, GLuint renderbuffer);
2141typedef void (WINE_GLAPI *PGLFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC)(GLenum target, GLenum attachment,
2142 GLenum pname, GLint *params);
2143typedef void (WINE_GLAPI *PGLFNGLBLITFRAMEBUFFERPROC)(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1,
2144 GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
2145typedef void (WINE_GLAPI *PGLFNGLGENERATEMIPMAPPROC)(GLenum target);
2146
2147/* GL_ARB_geometry_shader4 */
2148#ifndef GL_ARB_geometry_shader4
2149#define GL_ARB_geometry_shader4 1
2150#define GL_GEOMETRY_SHADER_ARB 0x8dd9
2151#define GL_GEOMETRY_VERTICES_OUT_ARB 0x8dda
2152#define GL_GEOMETRY_INPUT_TYPE_ARB 0x8ddb
2153#define GL_GEOMETRY_OUTPUT_TYPE_ARB 0x8ddc
2154#define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_ARB 0x8c29
2155#define GL_MAX_GEOMETRY_VARYING_COMPONENTS_ARB 0x8ddd
2156#define GL_MAX_VERTEX_VARYING_COMPONENTS_ARB 0x8dde
2157#define GL_MAX_VARYING_COMPONENTS_ARB 0x8b4b
2158#define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_ARB 0x8ddf
2159#define GL_MAX_GEOMETRY_OUTPUT_VERTICES_ARB 0x8de0
2160#define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_ARB 0x8de1
2161#define GL_LINES_ADJACENCY_ARB 0x000a
2162#define GL_LINE_STRIP_ADJACENCY_ARB 0x000b
2163#define GL_TRIANGLES_ADJACENCY_ARB 0x000c
2164#define GL_TRIANGLE_STRIP_ADJACENCY_ARB 0x000d
2165#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_ARB 0x8da8
2166#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_ARB 0x8da9
2167#define GL_FRAMEBUFFER_ATTACHMENT_LAYERED_ARB 0x8da7
2168#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER 0x8cd4
2169#define GL_PROGRAM_POINT_SIZE_ARB 0x8642
2170#endif
2171typedef void (WINE_GLAPI *PGLFNPROGRAMPARAMETERIARBPROC)(GLuint program, GLenum pname, GLint value);
2172typedef void (WINE_GLAPI *PGLFNFRAMEBUFFERTEXTUREARBPROC)(GLenum target, GLenum attachment,
2173 GLuint texture, GLint level);
2174typedef void (WINE_GLAPI *PGLFNFRAMEBUFFERTEXTURELAYERARBPROC)(GLenum target, GLenum attachment,
2175 GLuint texture, GLint level, GLint layer);
2176typedef void (WINE_GLAPI *PGLFNFRAMEBUFFERTEXTUREFACEARBPROC)(GLenum target, GLenum attachment,
2177 GLuint texture, GLint level, GLenum face);
2178
2179/* GL_ARB_half_float_pixel */
2180#ifndef GL_ARB_half_float_pixel
2181#define GL_ARB_half_float_pixel 1
2182#define GL_HALF_FLOAT_ARB 0x140b
2183#endif
2184
2185/* GL_ARB_half_float_vertex */
2186#ifndef GL_ARB_half_float_vertex
2187#define GL_ARB_half_float_vertex 1
2188/* No _ARB, see extension spec */
2189#define GL_HALF_FLOAT 0x140b
2190#endif
2191
2192/* GL_ARB_imaging */
2193#ifndef GL_ARB_imaging
2194#define GL_ARB_imaging 1
2195#define GL_CONSTANT_COLOR 0x8001
2196#define GL_ONE_MINUS_CONSTANT_COLOR 0x8002
2197#define GL_CONSTANT_ALPHA 0x8003
2198#define GL_ONE_MINUS_CONSTANT_ALPHA 0x8004
2199#define GL_BLEND_COLOR 0x8005
2200#define GL_FUNC_ADD 0x8006
2201#define GL_MIN 0x8007
2202#define GL_MAX 0x8008
2203#define GL_BLEND_EQUATION 0x8009
2204#define GL_FUNC_SUBTRACT 0x800a
2205#define GL_FUNC_REVERSE_SUBTRACT 0x800b
2206#define GL_CONVOLUTION_1D 0x8010
2207#define GL_CONVOLUTION_2D 0x8011
2208#define GL_SEPARABLE_2D 0x8012
2209#define GL_CONVOLUTION_BORDER_MODE 0x8013
2210#define GL_CONVOLUTION_FILTER_SCALE 0x8014
2211#define GL_CONVOLUTION_FILTER_BIAS 0x8015
2212#define GL_REDUCE 0x8016
2213#define GL_CONVOLUTION_FORMAT 0x8017
2214#define GL_CONVOLUTION_WIDTH 0x8018
2215#define GL_CONVOLUTION_HEIGHT 0x8019
2216#define GL_MAX_CONVOLUTION_WIDTH 0x801a
2217#define GL_MAX_CONVOLUTION_HEIGHT 0x801b
2218#define GL_POST_CONVOLUTION_RED_SCALE 0x801d
2219#define GL_POST_CONVOLUTION_GREEN_SCALE 0x801f
2220#define GL_POST_CONVOLUTION_BLUE_SCALE 0x801e
2221#define GL_POST_CONVOLUTION_ALPHA_SCALE 0x801f
2222#define GL_POST_CONVOLUTION_RED_BIAS 0x8020
2223#define GL_POST_CONVOLUTION_GREEN_BIAS 0x8021
2224#define GL_POST_CONVOLUTION_BLUE_BIAS 0x8022
2225#define GL_POST_CONVOLUTION_ALPHA_BIAS 0x8023
2226#define GL_HISTOGRAM 0x8024
2227#define GL_PROXY_HISTOGRAM 0x8025
2228#define GL_HISTOGRAM_WIDTH 0x8026
2229#define GL_HISTOGRAM_FORMAT 0x8027
2230#define GL_HISTOGRAM_RED_SIZE 0x8028
2231#define GL_HISTOGRAM_GREEN_SIZE 0x8029
2232#define GL_HISTOGRAM_BLUE_SIZE 0x802a
2233#define GL_HISTOGRAM_ALPHA_SIZE 0x802b
2234#define GL_HISTOGRAM_LUMINANCE_SIZE 0x802c
2235#define GL_HISTOGRAM_SINK 0x802d
2236#define GL_MINMAX 0x802e
2237#define GL_MINMAX_FORMAT 0x802f
2238#define GL_MINMAX_SINK 0x8030
2239#define GL_TABLE_TOO_LARGE 0x8031
2240#define GL_COLOR_MATRIX 0x80b1
2241#define GL_COLOR_MATRIX_STACK_DEPTH 0x80b2
2242#define GL_MAX_COLOR_MATRIX_STACK_DEPTH 0x80b3
2243#define GL_POST_COLOR_MATRIX_RED_SCALE 0x80b4
2244#define GL_POST_COLOR_MATRIX_GREEN_SCALE 0x80b5
2245#define GL_POST_COLOR_MATRIX_BLUE_SCALE 0x80b6
2246#define GL_POST_COLOR_MATRIX_ALPHA_SCALE 0x80b7
2247#define GL_POST_COLOR_MATRIX_RED_BIAS 0x80b8
2248#define GL_POST_COLOR_MATRIX_GREEN_BIAS 0x80b9
2249#define GL_POST_COLOR_MATRIX_BLUE_BIAS 0x80ba
2250#define GL_POST_COLOR_MATRIX_ALPHA_BIAS 0x80bb
2251#define GL_COLOR_TABLE 0x80d0
2252#define GL_POST_CONVOLUTION_COLOR_TABLE 0x80d1
2253#define GL_POST_COLOR_MATRIX_COLOR_TABLE 0x80d2
2254#define GL_PROXY_COLOR_TABLE 0x80d3
2255#define GL_PROXY_POST_CONVOLUTION_COLOR_TABLE 0x80d4
2256#define GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE 0x80d5
2257#define GL_COLOR_TABLE_SCALE 0x80d6
2258#define GL_COLOR_TABLE_BIAS 0x80d7
2259#define GL_COLOR_TABLE_FORMAT 0x80d8
2260#define GL_COLOR_TABLE_WIDTH 0x80d9
2261#define GL_COLOR_TABLE_RED_SIZE 0x80da
2262#define GL_COLOR_TABLE_GREEN_SIZE 0x80db
2263#define GL_COLOR_TABLE_BLUE_SIZE 0x80dc
2264#define GL_COLOR_TABLE_ALPHA_SIZE 0x80dd
2265#define GL_COLOR_TABLE_LUMINANCE_SIZE 0x80de
2266#define GL_COLOR_TABLE_INTENSITY_SIZE 0x80df
2267#define GL_CONSTANT_BORDER 0x8151
2268#define GL_REPLICATE_BORDER 0x8153
2269#define GL_CONVOLUTION_BORDER_COLOR 0x8154
2270#endif
2271typedef void (WINE_GLAPI *PGLFNBLENDCOLORPROC)(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
2272typedef void (WINE_GLAPI *PGLFNBLENDEQUATIONPROC)(GLenum mode);
2273
2274/* GL_ARB_map_buffer_range */
2275#ifndef GL_ARB_map_buffer_range
2276#define GL_ARB_map_buffer_range 1
2277#define GL_MAP_READ_BIT 0x0001
2278#define GL_MAP_WRITE_BIT 0x0002
2279#define GL_MAP_INVALIDATE_RANGE_BIT 0x0004
2280#define GL_MAP_INVALIDATE_BUFFER_BIT 0x0008
2281#define GL_MAP_FLUSH_EXPLICIT_BIT 0x0010
2282#define GL_MAP_UNSYNCHRONIZED_BIT 0x0020
2283#endif
2284typedef GLvoid *(WINE_GLAPI *PGLFNMAPBUFFERRANGEPROC)(GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
2285typedef void (WINE_GLAPI *PGLFNFLUSHMAPPEDBUFFERRANGEPROC)(GLenum target, GLintptr offset, GLsizeiptr length);
2286
2287/* GL_ARB_multisample */
2288#ifndef GL_ARB_multisample
2289#define GL_ARB_multisample 1
2290#define GL_MULTISAMPLE_ARB 0x809d
2291#define GL_SAMPLE_ALPHA_TO_COVERAGE_ARB 0x809e
2292#define GL_SAMPLE_ALPHA_TO_ONE_ARB 0x809f
2293#define GL_SAMPLE_COVERAGE_ARB 0x80a0
2294#define GL_SAMPLE_BUFFERS_ARB 0x80a8
2295#define GL_SAMPLES_ARB 0x80a9
2296#define GL_SAMPLE_COVERAGE_VALUE_ARB 0x80aa
2297#define GL_SAMPLE_COVERAGE_INVERT_ARB 0x80ab
2298#define GL_MULTISAMPLE_BIT_ARB 0x20000000
2299#endif
2300typedef void (WINE_GLAPI *WINED3D_PFNGLSAMPLECOVERAGEARBPROC)(GLclampf value, GLboolean invert);
2301
2302/* GL_ARB_multitexture */
2303#ifndef GL_ARB_multitexture
2304#define GL_ARB_multitexture 1
2305#define GL_TEXTURE0_ARB 0x84c0
2306#define GL_TEXTURE1_ARB 0x84c1
2307#define GL_TEXTURE2_ARB 0x84c2
2308#define GL_TEXTURE3_ARB 0x84c3
2309#define GL_TEXTURE4_ARB 0x84c4
2310#define GL_TEXTURE5_ARB 0x84c5
2311#define GL_TEXTURE6_ARB 0x84c6
2312#define GL_TEXTURE7_ARB 0x84c7
2313#define GL_TEXTURE8_ARB 0x84c8
2314#define GL_TEXTURE9_ARB 0x84c9
2315#define GL_TEXTURE10_ARB 0x84ca
2316#define GL_TEXTURE11_ARB 0x84cb
2317#define GL_TEXTURE12_ARB 0x84cc
2318#define GL_TEXTURE13_ARB 0x84cd
2319#define GL_TEXTURE14_ARB 0x84ce
2320#define GL_TEXTURE15_ARB 0x84cf
2321#define GL_TEXTURE16_ARB 0x84d0
2322#define GL_TEXTURE17_ARB 0x84d1
2323#define GL_TEXTURE18_ARB 0x84d2
2324#define GL_TEXTURE19_ARB 0x84d3
2325#define GL_TEXTURE20_ARB 0x84d4
2326#define GL_TEXTURE21_ARB 0x84d5
2327#define GL_TEXTURE22_ARB 0x84d6
2328#define GL_TEXTURE23_ARB 0x84d7
2329#define GL_TEXTURE24_ARB 0x84d8
2330#define GL_TEXTURE25_ARB 0x84d9
2331#define GL_TEXTURE26_ARB 0x84da
2332#define GL_TEXTURE27_ARB 0x84db
2333#define GL_TEXTURE28_ARB 0x84dc
2334#define GL_TEXTURE29_ARB 0x84dd
2335#define GL_TEXTURE30_ARB 0x84de
2336#define GL_TEXTURE31_ARB 0x84df
2337#define GL_ACTIVE_TEXTURE_ARB 0x84e0
2338#define GL_CLIENT_ACTIVE_TEXTURE_ARB 0x84e1
2339#define GL_MAX_TEXTURE_UNITS_ARB 0x84e2
2340#endif
2341typedef void (WINE_GLAPI *WINED3D_PFNGLACTIVETEXTUREARBPROC)(GLenum texture);
2342typedef void (WINE_GLAPI *WINED3D_PFNGLCLIENTACTIVETEXTUREARBPROC)(GLenum texture);
2343typedef void (WINE_GLAPI *WINED3D_PFNGLMULTITEXCOORD1FARBPROC)(GLenum target, GLfloat s);
2344typedef void (WINE_GLAPI *WINED3D_PFNGLMULTITEXCOORD1FVARBPROC)(GLenum target, const GLfloat *v);
2345typedef void (WINE_GLAPI *WINED3D_PFNGLMULTITEXCOORD2FARBPROC)(GLenum target, GLfloat s, GLfloat t);
2346typedef void (WINE_GLAPI *WINED3D_PFNGLMULTITEXCOORD2FVARBPROC)(GLenum target, const GLfloat *v);
2347typedef void (WINE_GLAPI *WINED3D_PFNGLMULTITEXCOORD3FARBPROC)(GLenum target, GLfloat s, GLfloat t, GLfloat r);
2348typedef void (WINE_GLAPI *WINED3D_PFNGLMULTITEXCOORD3FVARBPROC)(GLenum target, const GLfloat *v);
2349typedef void (WINE_GLAPI *WINED3D_PFNGLMULTITEXCOORD4FARBPROC)(GLenum target,
2350 GLfloat s, GLfloat t, GLfloat r, GLfloat q);
2351typedef void (WINE_GLAPI *WINED3D_PFNGLMULTITEXCOORD4FVARBPROC)(GLenum target, const GLfloat *v);
2352typedef void (WINE_GLAPI *WINED3D_PFNGLMULTITEXCOORD2SVARBPROC)(GLenum target, const GLshort *v);
2353typedef void (WINE_GLAPI *WINED3D_PFNGLMULTITEXCOORD4SVARBPROC)(GLenum target, const GLshort *v);
2354
2355/* GL_ARB_occlusion_query */
2356#ifndef GL_ARB_occlusion_query
2357#define GL_ARB_occlusion_query 1
2358#define GL_SAMPLES_PASSED_ARB 0x8914
2359#define GL_QUERY_COUNTER_BITS_ARB 0x8864
2360#define GL_CURRENT_QUERY_ARB 0x8865
2361#define GL_QUERY_RESULT_ARB 0x8866
2362#define GL_QUERY_RESULT_AVAILABLE_ARB 0x8867
2363#endif
2364typedef void (WINE_GLAPI *PGLFNGENQUERIESARBPROC)(GLsizei n, GLuint *queries);
2365typedef void (WINE_GLAPI *PGLFNDELETEQUERIESARBPROC)(GLsizei n, const GLuint *queries);
2366typedef GLboolean (WINE_GLAPI *PGLFNISQUERYARBPROC)(GLuint query);
2367typedef void (WINE_GLAPI *PGLFNBEGINQUERYARBPROC)(GLenum target, GLuint query);
2368typedef void (WINE_GLAPI *PGLFNENDQUERYARBPROC)(GLenum target);
2369typedef void (WINE_GLAPI *PGLFNGETQUERYIVARBPROC)(GLenum target, GLenum pname, GLint *params);
2370typedef void (WINE_GLAPI *PGLFNGETQUERYOBJECTIVARBPROC)(GLuint query, GLenum pname, GLint *params);
2371typedef void (WINE_GLAPI *PGLFNGETQUERYOBJECTUIVARBPROC)(GLuint query, GLenum pname, GLuint *params);
2372
2373/* GL_ARB_pixel_buffer_object */
2374#ifndef GL_ARB_pixel_buffer_object
2375#define GL_ARB_pixel_buffer_object 1
2376#define GL_PIXEL_PACK_BUFFER_ARB 0x88eb
2377#define GL_PIXEL_UNPACK_BUFFER_ARB 0x88ec
2378#define GL_PIXEL_PACK_BUFFER_BINDING_ARB 0x88ed
2379#define GL_PIXEL_UNPACK_BUFFER_BINDING_ARB 0x88ef
2380#endif
2381
2382/* GL_ARB_point_parameters */
2383#ifndef GL_ARB_point_parameters
2384#define GL_ARB_point_parameters 1
2385#define GL_POINT_SIZE_MIN_ARB 0x8126
2386#define GL_POINT_SIZE_MAX_ARB 0x8127
2387#define GL_POINT_FADE_THRESHOLD_SIZE_ARB 0x8128
2388#define GL_POINT_DISTANCE_ATTENUATION_ARB 0x8129
2389#endif
2390typedef void (WINE_GLAPI *PGLFNGLPOINTPARAMETERFARBPROC)(GLenum pname, GLfloat param);
2391typedef void (WINE_GLAPI *PGLFNGLPOINTPARAMETERFVARBPROC)(GLenum pname, const GLfloat *params);
2392
2393/* GL_ARB_point_sprite */
2394#ifndef GL_ARB_point_sprite
2395#define GL_ARB_point_sprite 1
2396#define GL_POINT_SPRITE_ARB 0x8861
2397#define GL_COORD_REPLACE_ARB 0x8862
2398#endif
2399
2400/* GL_ARB_provoking_vertex */
2401#ifndef GL_ARB_provoking_vertex
2402#define GL_ARB_provoking_vertex 1
2403#define GL_FIRST_VERTEX_CONVENTION 0x8e4d
2404#define GL_LAST_VERTEX_CONVENTION 0x8e4e
2405#define GL_PROVOKING_VERTEX 0x8e4f
2406#define GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION 0x8e4c
2407#endif
2408typedef void (WINE_GLAPI *PGLFNGLPROVOKINGVERTEXPROC)(GLenum mode);
2409
2410/* GL_ARB_shader_objects */
2411#ifndef GL_ARB_shader_objects
2412#define GL_ARB_shader_objects 1
2413typedef char GLcharARB;
2414typedef unsigned int GLhandleARB;
2415#define GL_PROGRAM_OBJECT_ARB 0x8b40
2416#define GL_OBJECT_TYPE_ARB 0x8b4e
2417#define GL_OBJECT_SUBTYPE_ARB 0x8b4f
2418#define GL_OBJECT_DELETE_STATUS_ARB 0x8b80
2419#define GL_OBJECT_COMPILE_STATUS_ARB 0x8b81
2420#define GL_OBJECT_LINK_STATUS_ARB 0x8b82
2421#define GL_OBJECT_VALIDATE_STATUS_ARB 0x8b83
2422#define GL_OBJECT_INFO_LOG_LENGTH_ARB 0x8b84
2423#define GL_OBJECT_ATTACHED_OBJECTS_ARB 0x8b85
2424#define GL_OBJECT_ACTIVE_UNIFORMS_ARB 0x8b86
2425#define GL_OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB 0x8b87
2426#define GL_OBJECT_SHADER_SOURCE_LENGTH_ARB 0x8b88
2427#define GL_SHADER_OBJECT_ARB 0x8b48
2428#define GL_FLOAT_VEC2_ARB 0x8b50
2429#define GL_FLOAT_VEC3_ARB 0x8b51
2430#define GL_FLOAT_VEC4_ARB 0x8b52
2431#define GL_INT_VEC2_ARB 0x8b53
2432#define GL_INT_VEC3_ARB 0x8b54
2433#define GL_INT_VEC4_ARB 0x8b55
2434#define GL_BOOL_ARB 0x8b56
2435#define GL_BOOL_VEC2_ARB 0x8b57
2436#define GL_BOOL_VEC3_ARB 0x8b58
2437#define GL_BOOL_VEC4_ARB 0x8b59
2438#define GL_FLOAT_MAT2_ARB 0x8b5a
2439#define GL_FLOAT_MAT3_ARB 0x8b5b
2440#define GL_FLOAT_MAT4_ARB 0x8b5c
2441#define GL_SAMPLER_1D_ARB 0x8b5d
2442#define GL_SAMPLER_2D_ARB 0x8b5e
2443#define GL_SAMPLER_3D_ARB 0x8b5f
2444#define GL_SAMPLER_CUBE_ARB 0x8b60
2445#define GL_SAMPLER_1D_SHADOW_ARB 0x8b61
2446#define GL_SAMPLER_2D_SHADOW_ARB 0x8b62
2447#define GL_SAMPLER_2D_RECT_ARB 0x8b63
2448#define GL_SAMPELR_2D_RECT_SHADOW_ARB 0x8b64
2449#endif
2450
2451/* GL_ARB_shading_language_100 */
2452#ifndef GL_ARB_shading_language_100
2453#define GL_ARB_shading_language_100 1
2454#define GL_SHADING_LANGUAGE_VERSION_ARB 0x8b8c
2455#endif
2456
2457/* GL_ARB_sync */
2458#ifndef GL_ARB_sync
2459#define GL_ARB_sync 1
2460#define GL_MAX_SERVER_WAIT_TIMEOUT 0x9111
2461#define GL_OBJECT_TYPE 0x9112
2462#define GL_SYNC_CONDITION 0x9113
2463#define GL_SYNC_STATUS 0x9114
2464#define GL_SYNC_FLAGS 0x9115
2465#define GL_SYNC_FENCE 0x9116
2466#define GL_SYNC_GPU_COMMANDS_COMPLETE 0x9117
2467#define GL_UNSIGNALED 0x9118
2468#define GL_SIGNALED 0x9119
2469#define GL_SYNC_FLUSH_COMMANDS_BIT 0x00000001
2470#define GL_TIMEOUT_IGNORED 0xffffffffffffffffULL
2471#define GL_ALREADY_SIGNALED 0x911a
2472#define GL_TIMEOUT_EXPIRED 0x911b
2473#define GL_CONDITION_SATISFIED 0x911c
2474#define GL_WAIT_FAILED 0x911d
2475#endif
2476typedef GLsync (WINE_GLAPI *PGLFNFENCESYNCPROC)(GLenum condition, GLbitfield flags);
2477typedef GLboolean (WINE_GLAPI *PGLFNISSYNCPROC)(GLsync sync);
2478typedef GLvoid (WINE_GLAPI *PGLFNDELETESYNCPROC)(GLsync sync);
2479typedef GLenum (WINE_GLAPI *PGLFNCLIENTWAITSYNCPROC)(GLsync sync, GLbitfield flags, GLuint64 timeout);
2480typedef GLvoid (WINE_GLAPI *PGLFNWAITSYNCPROC)(GLsync sync, GLbitfield flags, GLuint64 timeout);
2481typedef GLvoid (WINE_GLAPI *PGLFNGETINTEGER64VPROC)(GLenum pname, GLint64 *params);
2482typedef GLvoid (WINE_GLAPI *PGLFNGETSYNCIVPROC)(GLsync sync, GLenum pname, GLsizei bufsize,
2483 GLsizei *length, GLint *values);
2484
2485/* GL_ARB_texture_border_clamp */
2486#ifndef GL_ARB_texture_border_clamp
2487#define GL_ARB_texture_border_clamp 1
2488#define GL_CLAMP_TO_BORDER_ARB 0x812d
2489#endif
2490
2491/* GL_ARB_texture_cube_map */
2492#ifndef GL_ARB_texture_cube_map
2493#define GL_ARB_texture_cube_map 1
2494#define GL_NORMAL_MAP_ARB 0x8511
2495#define GL_REFLECTION_MAP_ARB 0x8512
2496#define GL_TEXTURE_CUBE_MAP_ARB 0x8513
2497#define GL_TEXTURE_BINDING_CUBE_MAP_ARB 0x8514
2498#define GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB 0x8515
2499#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB 0x8516
2500#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB 0x8517
2501#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB 0x8518
2502#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB 0x8519
2503#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB 0x851a
2504#define GL_PROXY_TEXTURE_CUBE_MAP_ARB 0x851b
2505#define GL_MAX_CUBE_MAP_TEXTURE_SIZE_ARB 0x851c
2506#endif
2507
2508/* GL_ARB_texture_env_dot3 */
2509#ifndef GL_ARB_texture_env_dot3
2510#define GL_ARB_texture_env_dot3 1
2511#define GL_DOT3_RGB_ARB 0x86ae
2512#define GL_DOT3_RGBA_ARB 0x86af
2513#endif
2514
2515/* GL_ARB_texture_float */
2516#ifndef GL_ARB_texture_float
2517#define GL_ARB_texture_float 1
2518#define GL_RGBA32F_ARB 0x8814
2519#define GL_RGB32F_ARB 0x8815
2520#define GL_RGBA16F_ARB 0x881a
2521#define GL_RGB16F_ARB 0x881b
2522#endif
2523
2524/* GL_ARB_texture_mirrored_repeat */
2525#ifndef GL_ARB_texture_mirrored_repeat
2526#define GL_ARB_texture_mirrored_repeat 1
2527#define GL_MIRRORED_REPEAT_ARB 0x8370
2528#endif
2529
2530/* GL_ARB_texture_rectangle */
2531#ifndef GL_ARB_texture_rectangle
2532#define GL_ARB_texture_rectangle 1
2533#define GL_TEXTURE_RECTANGLE_ARB 0x84f5
2534#define GL_TEXTURE_BINDING_RECTANGLE_ARB 0x84f6
2535#define GL_PROXY_TEXTURE_RECTANGLE_ARB 0x84f7
2536#define GL_MAX_RECTANGLE_TEXTURE_SIZE_ARB 0x84f8
2537#define GL_SAMPLER_2D_RECT_ARB 0x8b63
2538#define GL_SAMPLER_2D_RECT_SHADOW_ARB 0x8b64
2539#endif
2540
2541/* GL_ARB_texture_rg */
2542#ifndef GL_ARB_texture_rg
2543#define GL_ARB_texture_rg 1
2544#define GL_RG 0x8227
2545#define GL_RG_INTEGER 0x8228
2546#define GL_R8 0x8229
2547#define GL_R16 0x822a
2548#define GL_RG8 0x822b
2549#define GL_RG16 0x822c
2550#define GL_R16F 0x822d
2551#define GL_R32F 0x822e
2552#define GL_RG16F 0x822f
2553#define GL_RG32F 0x8230
2554#define GL_R8I 0x8231
2555#define GL_R8UI 0x8232
2556#define GL_R16I 0x8233
2557#define GL_R16UI 0x8234
2558#define GL_R32I 0x8235
2559#define GL_R32UI 0x8236
2560#define GL_RG8I 0x8237
2561#define GL_RG8UI 0x8238
2562#define GL_RG16I 0x8239
2563#define GL_RG16UI 0x823a
2564#define GL_RG32I 0x823b
2565#define GL_RG32UI 0x823c
2566#endif
2567
2568/* GL_ARB_vertex_blend */
2569#ifndef GL_ARB_vertex_blend
2570#define GL_ARB_vertex_blend 1
2571#define GL_MAX_VERTEX_UNITS_ARB 0x86a4
2572#define GL_ACTIVE_VERTEX_UNITS_ARB 0x86a5
2573#define GL_WEIGHT_SUM_UNITY_ARB 0x86a6
2574#define GL_VERTEX_BLEND_ARB 0x86a7
2575#define GL_CURRENT_WEIGHT_ARB 0x86a8
2576#define GL_WEIGHT_ARRAY_TYPE_ARB 0x86a9
2577#define GL_WEIGHT_ARRAY_STRIDE_ARB 0x86aa
2578#define GL_WEIGHT_ARRAY_SIZE_ARB 0x86ab
2579#define GL_WEIGHT_ARRAY_POINTER_ARB 0x86ac
2580#define GL_WEIGHT_ARRAY_ARB 0x86ad
2581#define GL_MODELVIEW0_ARB 0x1700
2582#define GL_MODELVIEW1_ARB 0x850a
2583#define GL_MODELVIEW2_ARB 0x8722
2584#define GL_MODELVIEW3_ARB 0x8723
2585#define GL_MODELVIEW4_ARB 0x8724
2586#define GL_MODELVIEW5_ARB 0x8725
2587#define GL_MODELVIEW6_ARB 0x8726
2588#define GL_MODELVIEW7_ARB 0x8727
2589#define GL_MODELVIEW8_ARB 0x8728
2590#define GL_MODELVIEW9_ARB 0x8729
2591#define GL_MODELVIEW10_ARB 0x872a
2592#define GL_MODELVIEW11_ARB 0x872b
2593#define GL_MODELVIEW12_ARB 0x872c
2594#define GL_MODELVIEW13_ARB 0x872d
2595#define GL_MODELVIEW14_ARB 0x872e
2596#define GL_MODELVIEW15_ARB 0x872f
2597#define GL_MODELVIEW16_ARB 0x8730
2598#define GL_MODELVIEW17_ARB 0x8731
2599#define GL_MODELVIEW18_ARB 0x8732
2600#define GL_MODELVIEW19_ARB 0x8733
2601#define GL_MODELVIEW20_ARB 0x8734
2602#define GL_MODELVIEW21_ARB 0x8735
2603#define GL_MODELVIEW22_ARB 0x8736
2604#define GL_MODELVIEW23_ARB 0x8737
2605#define GL_MODELVIEW24_ARB 0x8738
2606#define GL_MODELVIEW25_ARB 0x8739
2607#define GL_MODELVIEW26_ARB 0x873a
2608#define GL_MODELVIEW27_ARB 0x873b
2609#define GL_MODELVIEW28_ARB 0x873c
2610#define GL_MODELVIEW29_ARB 0x873d
2611#define GL_MODELVIEW30_ARB 0x873e
2612#define GL_MODELVIEW31_ARB 0x873f
2613#endif
2614typedef void (WINE_GLAPI *PGLFNGLWEIGHTPOINTERARB)(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
2615typedef void (WINE_GLAPI *PGLFNGLWEIGHTBV)(GLint size, const GLbyte *weights);
2616typedef void (WINE_GLAPI *PGLFNGLWEIGHTSV)(GLint size, const GLshort *weights);
2617typedef void (WINE_GLAPI *PGLFNGLWEIGHTIV)(GLint size, const GLint *weights);
2618typedef void (WINE_GLAPI *PGLFNGLWEIGHTFV)(GLint size, const GLfloat *weights);
2619typedef void (WINE_GLAPI *PGLFNGLWEIGHTDV)(GLint size, const GLdouble *weights);
2620typedef void (WINE_GLAPI *PGLFNGLWEIGHTUBV)(GLint size, const GLubyte *weights);
2621typedef void (WINE_GLAPI *PGLFNGLWEIGHTUSV)(GLint size, const GLushort *weights);
2622typedef void (WINE_GLAPI *PGLFNGLWEIGHTUIV)(GLint size, const GLuint *weights);
2623typedef void (WINE_GLAPI *PGLFNGLVERTEXBLENDARB)(GLint count);
2624
2625/* GL_ARB_vertex_buffer_object */
2626#ifndef GL_ARB_vertex_buffer_object
2627#define GL_ARB_vertex_buffer_object 1
2628#define GL_BUFFER_SIZE_ARB 0x8764
2629#define GL_BUFFER_USAGE_ARB 0x8765
2630#define GL_ARRAY_BUFFER_ARB 0x8892
2631#define GL_ELEMENT_ARRAY_BUFFER_ARB 0x8893
2632#define GL_ARRAY_BUFFER_BINDING_ARB 0x8894
2633#define GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB 0x8895
2634#define GL_VERTEX_ARRAY_BUFFER_BINDING_ARB 0x8896
2635#define GL_NORMAL_ARRAY_BUFFER_BINDING_ARB 0x8897
2636#define GL_COLOR_ARRAY_BUFFER_BINDING_ARB 0x8898
2637#define GL_INDEX_ARRAY_BUFFER_BINDING_ARB 0x8899
2638#define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB 0x889a
2639#define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING_ARB 0x889b
2640#define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING_ARB 0x889c
2641#define GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING_ARB 0x889d
2642#define GL_WEIGHT_ARRAY_BUFFER_BINDING_ARB 0x889e
2643#define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB 0x889f
2644#define GL_READ_ONLY_ARB 0x88b8
2645#define GL_WRITE_ONLY_ARB 0x88b9
2646#define GL_READ_WRITE_ARB 0x88ba
2647#define GL_BUFFER_ACCESS_ARB 0x88bb
2648#define GL_BUFFER_MAPPED_ARB 0x88bc
2649#define GL_BUFFER_MAP_POINTER_ARB 0x88bd
2650#define GL_STREAM_DRAW_ARB 0x88e0
2651#define GL_STREAM_READ_ARB 0x88e1
2652#define GL_STREAM_COPY_ARB 0x88e2
2653#define GL_STATIC_DRAW_ARB 0x88e4
2654#define GL_STATIC_READ_ARB 0x88e5
2655#define GL_STATIC_COPY_ARB 0x88e6
2656#define GL_DYNAMIC_DRAW_ARB 0x88e8
2657#define GL_DYNAMIC_READ_ARB 0x88e9
2658#define GL_DYNAMIC_COPY_ARB 0x88ea
2659#endif
2660typedef void (WINE_GLAPI *PGLFNBINDBUFFERARBPROC)(GLenum target, GLuint buffer);
2661typedef void (WINE_GLAPI *PGLFNDELETEBUFFERSARBPROC)(GLsizei n, const GLuint *buffers);
2662typedef void (WINE_GLAPI *PGLFNGENBUFFERSARBPROC)(GLsizei n, GLuint *buffers);
2663typedef GLboolean (WINE_GLAPI *PGLFNISBUFFERARBPROC)(GLuint buffer);
2664typedef void (WINE_GLAPI *PGLFNBUFFERDATAARBPROC)(GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage);
2665typedef void (WINE_GLAPI *PGLFNBUFFERSUBDATAARBPROC)(GLenum target,
2666 GLintptr offset, GLsizeiptr size, const GLvoid *data);
2667typedef void (WINE_GLAPI *PGLFNGETBUFFERSUBDATAARBPROC)(GLenum target, GLintptr offset, GLsizeiptr size, GLvoid *data);
2668typedef GLvoid* (WINE_GLAPI *PGLFNMAPBUFFERARBPROC)(GLenum target, GLenum access);
2669typedef GLboolean (WINE_GLAPI *PGLFNUNMAPBUFFERARBPROC)(GLenum target);
2670typedef void (WINE_GLAPI *PGLFNGETBUFFERPARAMETERIVARBPROC)(GLenum target, GLenum pname, GLint *params);
2671typedef void (WINE_GLAPI *PGLFNGETBUFFERPOINTERVARBPROC)(GLenum target, GLenum pname, GLvoid* *params);
2672
2673/* GL_ARB_vertex_program */
2674#ifndef GL_ARB_vertex_program
2675#define GL_ARB_vertex_program 1
2676#define GL_VERTEX_PROGRAM_ARB 0x8620
2677#define GL_VERTEX_PROGRAM_POINT_SIZE_ARB 0x8642
2678#define GL_VERTEX_PROGRAM_TWO_SIDE_ARB 0x8643
2679#define GL_COLOR_SUM_ARB 0x8458
2680#define GL_PROGRAM_FORMAT_ASCII_ARB 0x8875
2681#define GL_VERTEX_ATTRIB_ARRAY_ENABLED_ARB 0x8622
2682#define GL_VERTEX_ATTRIB_ARRAY_SIZE_ARB 0x8623
2683#define GL_VERTEX_ATTRIB_ARRAY_STRIDE_ARB 0x8624
2684#define GL_VERTEX_ATTRIB_ARRAY_TYPE_ARB 0x8625
2685#define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED_ARB 0x886a
2686#define GL_CURRENT_VERTEX_ATTRIB_ARB 0x8626
2687#define GL_VERTEX_ATTRIB_ARRAY_POINTER_ARB 0x8645
2688#define GL_PROGRAM_LENGTH_ARB 0x8627
2689#define GL_PROGRAM_FORMAT_ARB 0x8876
2690#define GL_PROGRAM_BINDING_ARB 0x8677
2691#define GL_PROGRAM_INSTRUCTIONS_ARB 0x88a0
2692#define GL_MAX_PROGRAM_INSTRUCTIONS_ARB 0x88a1
2693#define GL_PROGRAM_NATIVE_INSTRUCTIONS_ARB 0x88a2
2694#define GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB 0x88a3
2695#define GL_PROGRAM_TEMPORARIES_ARB 0x88a4
2696#define GL_MAX_PROGRAM_TEMPORARIES_ARB 0x88a5
2697#define GL_PROGRAM_NATIVE_TEMPORARIES_ARB 0x88a6
2698#define GL_MAX_PROGRAM_NATIVE_TEMPORARIES_ARB 0x88a7
2699#define GL_PROGRAM_PARAMETERS_ARB 0x88a8
2700#define GL_MAX_PROGRAM_PARAMETERS_ARB 0x88a9
2701#define GL_PROGRAM_NATIVE_PARAMETERS_ARB 0x88aa
2702#define GL_MAX_PROGRAM_NATIVE_PARAMETERS_ARB 0x88ab
2703#define GL_PROGRAM_ATTRIBS_ARB 0x88ac
2704#define GL_MAX_PROGRAM_ATTRIBS_ARB 0x88ad
2705#define GL_PROGRAM_NATIVE_ATTRIBS_ARB 0x88ae
2706#define GL_MAX_PROGRAM_NATIVE_ATTRIBS_ARB 0x88af
2707#define GL_PROGRAM_ADDRESS_REGISTERS_ARB 0x88b0
2708#define GL_MAX_PROGRAM_ADDRESS_REGISTERS_ARB 0x88b1
2709#define GL_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB 0x88b2
2710#define GL_MAX_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB 0x88b3
2711#define GL_MAX_PROGRAM_LOCAL_PARAMETERS_ARB 0x88b4
2712#define GL_MAX_PROGRAM_ENV_PARAMETERS_ARB 0x88b5
2713#define GL_PROGRAM_UNDER_NATIVE_LIMITS_ARB 0x88b6
2714#define GL_PROGRAM_STRING_ARB 0x8628
2715#define GL_PROGRAM_ERROR_POSITION_ARB 0x864b
2716#define GL_CURRENT_MATRIX_ARB 0x8641
2717#define GL_TRANSPOSE_CURRENT_MATRIX_ARB 0x88b7
2718#define GL_CURRENT_MATRIX_STACK_DEPTH_ARB 0x8640
2719#define GL_MAX_VERTEX_ATTRIBS_ARB 0x8869
2720#define GL_MAX_PROGRAM_MATRICES_ARB 0x862f
2721#define GL_MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB 0x862e
2722#define GL_PROGRAM_ERROR_STRING_ARB 0x8874
2723#define GL_MATRIX0_ARB 0x88c0
2724#define GL_MATRIX1_ARB 0x88c1
2725#define GL_MATRIX2_ARB 0x88c2
2726#define GL_MATRIX3_ARB 0x88c3
2727#define GL_MATRIX4_ARB 0x88c4
2728#define GL_MATRIX5_ARB 0x88c5
2729#define GL_MATRIX6_ARB 0x88c6
2730#define GL_MATRIX7_ARB 0x88c7
2731#define GL_MATRIX8_ARB 0x88c8
2732#define GL_MATRIX9_ARB 0x88c9
2733#define GL_MATRIX10_ARB 0x88ca
2734#define GL_MATRIX11_ARB 0x88cb
2735#define GL_MATRIX12_ARB 0x88cc
2736#define GL_MATRIX13_ARB 0x88cd
2737#define GL_MATRIX14_ARB 0x88ce
2738#define GL_MATRIX15_ARB 0x88cf
2739#define GL_MATRIX16_ARB 0x88d0
2740#define GL_MATRIX17_ARB 0x88d1
2741#define GL_MATRIX18_ARB 0x88d2
2742#define GL_MATRIX19_ARB 0x88d3
2743#define GL_MATRIX20_ARB 0x88d4
2744#define GL_MATRIX21_ARB 0x88d5
2745#define GL_MATRIX22_ARB 0x88d6
2746#define GL_MATRIX23_ARB 0x88d7
2747#define GL_MATRIX24_ARB 0x88d8
2748#define GL_MATRIX25_ARB 0x88d9
2749#define GL_MATRIX26_ARB 0x88da
2750#define GL_MATRIX27_ARB 0x88db
2751#define GL_MATRIX28_ARB 0x88dc
2752#define GL_MATRIX29_ARB 0x88dd
2753#define GL_MATRIX30_ARB 0x88de
2754#define GL_MATRIX31_ARB 0x88df
2755#endif
2756typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB1DARBPROC)(GLuint index, GLdouble x);
2757typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB1DVARBPROC)(GLuint index, const GLdouble *v);
2758typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB1FARBPROC)(GLuint index, GLfloat x);
2759typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB1FVARBPROC)(GLuint index, const GLfloat *v);
2760typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB1SARBPROC)(GLuint index, GLshort x);
2761typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB1SVARBPROC)(GLuint index, const GLshort *v);
2762typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB2DARBPROC)(GLuint index, GLdouble x, GLdouble y);
2763typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB2DVARBPROC)(GLuint index, const GLdouble *v);
2764typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB2FARBPROC)(GLuint index, GLfloat x, GLfloat y);
2765typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB2FVARBPROC)(GLuint index, const GLfloat *v);
2766typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB2SARBPROC)(GLuint index, GLshort x, GLshort y);
2767typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB2SVARBPROC)(GLuint index, const GLshort *v);
2768typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB3DARBPROC)(GLuint index, GLdouble x, GLdouble y, GLdouble z);
2769typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB3DVARBPROC)(GLuint index, const GLdouble *v);
2770typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB3FARBPROC)(GLuint index, GLfloat x, GLfloat y, GLfloat z);
2771typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB3FVARBPROC)(GLuint index, const GLfloat *v);
2772typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB3SARBPROC)(GLuint index, GLshort x, GLshort y, GLshort z);
2773typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB3SVARBPROC)(GLuint index, const GLshort *v);
2774typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB4NBVARBPROC)(GLuint index, const GLbyte *v);
2775typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB4NIVARBPROC)(GLuint index, const GLint *v);
2776typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB4NSVARBPROC)(GLuint index, const GLshort *v);
2777typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB4NUBARBPROC)(GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
2778typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB4NUBVARBPROC)(GLuint index, const GLubyte *v);
2779typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB4NUIVARBPROC)(GLuint index, const GLuint *v);
2780typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB4NUSVARBPROC)(GLuint index, const GLushort *v);
2781typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB4BVARBPROC)(GLuint index, const GLbyte *v);
2782typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB4DARBPROC)(GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
2783typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB4DVARBPROC)(GLuint index, const GLdouble *v);
2784typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB4FARBPROC)(GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
2785typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB4FVARBPROC)(GLuint index, const GLfloat *v);
2786typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB4IVARBPROC)(GLuint index, const GLint *v);
2787typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB4SARBPROC)(GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
2788typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB4SVARBPROC)(GLuint index, const GLshort *v);
2789typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB4UBVARBPROC)(GLuint index, const GLubyte *v);
2790typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB4UIVARBPROC)(GLuint index, const GLuint *v);
2791typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB4USVARBPROC)(GLuint index, const GLushort *v);
2792typedef void (WINE_GLAPI *PGLFNVERTEXATTRIBPOINTERARBPROC)(GLuint index, GLint size,
2793 GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer);
2794typedef void (WINE_GLAPI *PGLFNENABLEVERTEXATTRIBARRAYARBPROC)(GLuint index);
2795typedef void (WINE_GLAPI *PGLFNDISABLEVERTEXATTRIBARRAYARBPROC)(GLuint index);
2796typedef void (WINE_GLAPI *PGLFNPROGRAMSTRINGARBPROC)(GLenum target, GLenum format, GLsizei len, const GLvoid *string);
2797typedef void (WINE_GLAPI *PGLFNBINDPROGRAMARBPROC)(GLenum target, GLuint program);
2798typedef void (WINE_GLAPI *PGLFNDELETEPROGRAMSARBPROC)(GLsizei n, const GLuint *programs);
2799typedef void (WINE_GLAPI *PGLFNGENPROGRAMSARBPROC)(GLsizei n, GLuint *programs);
2800typedef void (WINE_GLAPI *PGLFNPROGRAMENVPARAMETER4DARBPROC)(GLenum target,
2801 GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
2802typedef void (WINE_GLAPI *PGLFNPROGRAMENVPARAMETER4DVARBPROC)(GLenum target, GLuint index, const GLdouble *params);
2803typedef void (WINE_GLAPI *PGLFNPROGRAMENVPARAMETER4FARBPROC)(GLenum target,
2804 GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
2805typedef void (WINE_GLAPI *PGLFNPROGRAMENVPARAMETER4FVARBPROC)(GLenum target, GLuint index, const GLfloat *params);
2806typedef void (WINE_GLAPI *PGLFNPROGRAMLOCALPARAMETER4DARBPROC)(GLenum target,
2807 GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
2808typedef void (WINE_GLAPI *PGLFNPROGRAMLOCALPARAMETER4DVARBPROC)(GLenum target, GLuint index, const GLdouble *params);
2809typedef void (WINE_GLAPI *PGLFNPROGRAMLOCALPARAMETER4FARBPROC)(GLenum target,
2810 GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
2811typedef void (WINE_GLAPI *PGLFNPROGRAMLOCALPARAMETER4FVARBPROC)(GLenum target, GLuint index, const GLfloat *params);
2812typedef void (WINE_GLAPI *PGLFNGETPROGRAMENVPARAMETERDVARBPROC)(GLenum target, GLuint index, GLdouble *params);
2813typedef void (WINE_GLAPI *PGLFNGETPROGRAMENVPARAMETERFVARBPROC)(GLenum target, GLuint index, GLfloat *params);
2814typedef void (WINE_GLAPI *PGLFNGETPROGRAMLOCALPARAMETERDVARBPROC)(GLenum target, GLuint index, GLdouble *params);
2815typedef void (WINE_GLAPI *PGLFNGETPROGRAMLOCALPARAMETERFVARBPROC)(GLenum target, GLuint index, GLfloat *params);
2816typedef void (WINE_GLAPI *PGLFNGETPROGRAMIVARBPROC)(GLenum target, GLenum pname, GLint *params);
2817typedef void (WINE_GLAPI *PGLFNGETPROGRAMSTRINGARBPROC)(GLenum target, GLenum pname, GLvoid *string);
2818typedef void (WINE_GLAPI *PGLFNGETVERTEXATTRIBDVARBPROC)(GLuint index, GLenum pname, GLdouble *params);
2819typedef void (WINE_GLAPI *PGLFNGETVERTEXATTRIBFVARBPROC)(GLuint index, GLenum pname, GLfloat *params);
2820typedef void (WINE_GLAPI *PGLFNGETVERTEXATTRIBIVARBPROC)(GLuint index, GLenum pname, GLint *params);
2821typedef void (WINE_GLAPI *PGLFNGETVERTEXATTRIBPOINTERVARBPROC)(GLuint index, GLenum pname, GLvoid* *pointer);
2822typedef GLboolean (WINE_GLAPI *PGLFNISPROGRAMARBPROC)(GLuint program);
2823
2824/* GL_ARB_vertex_shader */
2825#ifndef GL_ARB_vertex_shader
2826#define GL_ARB_vertex_shader 1
2827#define GL_VERTEX_SHADER_ARB 0x8b31
2828#define GL_MAX_VERTEX_UNIFORM_COMPONENTS_ARB 0x8b4a
2829#define GL_MAX_VARYING_FLOATS_ARB 0x8b4b
2830#define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB 0x8b4c
2831#define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB 0x8b4d
2832#define GL_OBJECT_ACTIVE_ATTRIBUTES_ARB 0x8b89
2833#define GL_OBJECT_ACTIVE_ATTRIBUTE_MAX_LENGTH_ARB 0x8b8a
2834#endif
2835typedef void (WINE_GLAPI *WINED3D_PFNGLGETOBJECTPARAMETERIVARBPROC)(GLhandleARB obj, GLenum pname, GLint *params);
2836typedef void (WINE_GLAPI *WINED3D_PFNGLGETOBJECTPARAMETERFVARBPROC)(GLhandleARB obj, GLenum pname, GLfloat *params);
2837typedef GLint (WINE_GLAPI *WINED3D_PFNGLGETUNIFORMLOCATIONARBPROC)(GLhandleARB programObj, const GLcharARB *name);
2838typedef void (WINE_GLAPI *WINED3D_PFNGLGETACTIVEUNIFORMARBPROC)(GLhandleARB programObj, GLuint index,
2839 GLsizei maxLength, GLsizei *length, GLint *size, GLenum *type, GLcharARB *name);
2840typedef void (WINE_GLAPI *WINED3D_PFNGLUNIFORM1IARBPROC)(GLint location, GLint v0);
2841typedef void (WINE_GLAPI *WINED3D_PFNGLUNIFORM2IARBPROC)(GLint location, GLint v0, GLint v1);
2842typedef void (WINE_GLAPI *WINED3D_PFNGLUNIFORM3IARBPROC)(GLint location, GLint v0, GLint v1, GLint v2);
2843typedef void (WINE_GLAPI *WINED3D_PFNGLUNIFORM4IARBPROC)(GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
2844typedef void (WINE_GLAPI *WINED3D_PFNGLUNIFORM1FARBPROC)(GLint location, GLfloat v0);
2845typedef void (WINE_GLAPI *WINED3D_PFNGLUNIFORM2FARBPROC)(GLint location, GLfloat v0, GLfloat v1);
2846typedef void (WINE_GLAPI *WINED3D_PFNGLUNIFORM3FARBPROC)(GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
2847typedef void (WINE_GLAPI *WINED3D_PFNGLUNIFORM4FARBPROC)(GLint location,
2848 GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
2849typedef void (WINE_GLAPI *WINED3D_PFNGLUNIFORM1IVARBPROC)(GLint location, GLsizei count, const GLint *value);
2850typedef void (WINE_GLAPI *WINED3D_PFNGLUNIFORM2IVARBPROC)(GLint location, GLsizei count, const GLint *value);
2851typedef void (WINE_GLAPI *WINED3D_PFNGLUNIFORM3IVARBPROC)(GLint location, GLsizei count, const GLint *value);
2852typedef void (WINE_GLAPI *WINED3D_PFNGLUNIFORM4IVARBPROC)(GLint location, GLsizei count, const GLint *value);
2853typedef void (WINE_GLAPI *WINED3D_PFNGLUNIFORM1FVARBPROC)(GLint location, GLsizei count, const GLfloat *value);
2854typedef void (WINE_GLAPI *WINED3D_PFNGLUNIFORM2FVARBPROC)(GLint location, GLsizei count, const GLfloat *value);
2855typedef void (WINE_GLAPI *WINED3D_PFNGLUNIFORM3FVARBPROC)(GLint location, GLsizei count, const GLfloat *value);
2856typedef void (WINE_GLAPI *WINED3D_PFNGLUNIFORM4FVARBPROC)(GLint location, GLsizei count, const GLfloat *value);
2857typedef void (WINE_GLAPI *WINED3D_PFNGLUNIFORMMATRIX2FVARBPROC)(GLint location,
2858 GLsizei count, GLboolean transpose, const GLfloat *value);
2859typedef void (WINE_GLAPI *WINED3D_PFNGLUNIFORMMATRIX3FVARBPROC)(GLint location,
2860 GLsizei count, GLboolean transpose, const GLfloat *value);
2861typedef void (WINE_GLAPI *WINED3D_PFNGLUNIFORMMATRIX4FVARBPROC)(GLint location,
2862 GLsizei count, GLboolean transpose, const GLfloat *value);
2863typedef void (WINE_GLAPI *WINED3D_PFNGLGETUNIFORMFVARBPROC)(GLhandleARB programObj, GLint location, GLfloat *params);
2864typedef void (WINE_GLAPI *WINED3D_PFNGLGETUNIFORMIVARBPROC)(GLhandleARB programObj, GLint location, GLint *params);
2865typedef void (WINE_GLAPI *WINED3D_PFNGLGETINFOLOGARBPROC)(GLhandleARB obj,
2866 GLsizei maxLength, GLsizei *length, GLcharARB *infoLog);
2867typedef void (WINE_GLAPI *WINED3D_PFNGLUSEPROGRAMOBJECTARBPROC)(GLhandleARB programObj);
2868typedef GLhandleARB (WINE_GLAPI *WINED3D_PFNGLCREATESHADEROBJECTARBPROC)(GLenum shaderType);
2869typedef void (WINE_GLAPI *WINED3D_PFNGLSHADERSOURCEARBPROC)(GLhandleARB shaderObj,
2870 GLsizei count, const GLcharARB* *string, const GLint *length);
2871typedef void (WINE_GLAPI *WINED3D_PFNGLCOMPILESHADERARBPROC)(GLhandleARB shaderObj);
2872typedef GLhandleARB (WINE_GLAPI *WINED3D_PFNGLCREATEPROGRAMOBJECTARBPROC)(void);
2873typedef void (WINE_GLAPI *WINED3D_PFNGLATTACHOBJECTARBPROC)(GLhandleARB containerObj, GLhandleARB obj);
2874typedef void (WINE_GLAPI *WINED3D_PFNGLLINKPROGRAMARBPROC)(GLhandleARB programObj);
2875typedef void (WINE_GLAPI *WINED3D_PFNGLDETACHOBJECTARBPROC)(GLhandleARB containerObj, GLhandleARB attachedObj);
2876typedef void (WINE_GLAPI *WINED3D_PFNGLDELETEOBJECTARBPROC)(GLhandleARB obj);
2877typedef void (WINE_GLAPI *WINED3D_PFNGLVALIDATEPROGRAMARBPROC)(GLhandleARB programObj);
2878typedef void (WINE_GLAPI *WINED3D_PFNGLGETATTACHEDOBJECTSARBPROC)(GLhandleARB containerObj,
2879 GLsizei maxCount, GLsizei *count, GLhandleARB *obj);
2880typedef GLhandleARB (WINE_GLAPI *WINED3D_PFNGLGETHANDLEARBPROC)(GLenum pname);
2881typedef void (WINE_GLAPI *WINED3D_PFNGLGETSHADERSOURCEARBPROC)(GLhandleARB obj,
2882 GLsizei maxLength, GLsizei *length, GLcharARB *source);
2883typedef void (WINE_GLAPI *WINED3D_PFNGLBINDATTRIBLOCATIONARBPROC)(GLhandleARB programObj,
2884 GLuint index, const GLcharARB *name);
2885typedef GLint (WINE_GLAPI *WINED3D_PFNGLGETATTRIBLOCATIONARBPROC)(GLhandleARB programObj, const GLcharARB *name);
2886
2887/* GL_ATI_fragment_shader */
2888#ifndef GL_ATI_fragment_shader
2889#define GL_ATI_fragment_shader 1
2890#define GL_FRAGMENT_SHADER_ATI 0x8920
2891#define GL_REG_0_ATI 0x8921
2892#define GL_REG_1_ATI 0x8922
2893#define GL_REG_2_ATI 0x8923
2894#define GL_REG_3_ATI 0x8924
2895#define GL_REG_4_ATI 0x8925
2896#define GL_REG_5_ATI 0x8926
2897#define GL_CON_0_ATI 0x8941
2898#define GL_CON_1_ATI 0x8942
2899#define GL_CON_2_ATI 0x8943
2900#define GL_CON_3_ATI 0x8944
2901#define GL_CON_4_ATI 0x8945
2902#define GL_CON_5_ATI 0x8946
2903#define GL_CON_6_ATI 0x8947
2904#define GL_CON_7_ATI 0x8948
2905#define GL_MOV_ATI 0x8961
2906#define GL_ADD_ATI 0x8963
2907#define GL_MUL_ATI 0x8964
2908#define GL_SUB_ATI 0x8965
2909#define GL_DOT3_ATI 0x8966
2910#define GL_DOT4_ATI 0x8967
2911#define GL_MAD_ATI 0x8968
2912#define GL_LERP_ATI 0x8969
2913#define GL_CND_ATI 0x896a
2914#define GL_CND0_ATI 0x896b
2915#define GL_DOT2_ADD_ATI 0x896c
2916#define GL_SECONDARY_INTERPOLATOR_ATI 0x896d
2917#define GL_SWIZZLE_STR_ATI 0x8976
2918#define GL_SWIZZLE_STQ_ATI 0x8977
2919#define GL_SWIZZLE_STR_DR_ATI 0x8978
2920#define GL_SWIZZLE_STQ_DQ_ATI 0x8979
2921#define GL_RED_BIT_ATI 0x00000001
2922#define GL_GREEN_BIT_ATI 0x00000002
2923#define GL_BLUE_BIT_ATI 0x00000004
2924#define GL_2X_BIT_ATI 0x00000001
2925#define GL_4X_BIT_ATI 0x00000002
2926#define GL_8X_BIT_ATI 0x00000004
2927#define GL_HALF_BIT_ATI 0x00000008
2928#define GL_QUARTER_BIT_ATI 0x00000010
2929#define GL_EIGHTH_BIT_ATI 0x00000020
2930#define GL_SATURATE_BIT_ATI 0x00000040
2931#define GL_COMP_BIT_ATI 0x00000002
2932#define GL_NEGATE_BIT_ATI 0x00000004
2933#define GL_BIAS_BIT_ATI 0x00000008
2934#endif
2935typedef GLuint (WINE_GLAPI *PGLFNGENFRAGMENTSHADERSATI)(GLuint range);
2936typedef void (WINE_GLAPI *PGLFNBINDFRAGMENTSHADERATI)(GLuint id);
2937typedef void (WINE_GLAPI *PGLFNDELETEFRAGMENTSHADERATI)(GLuint id);
2938typedef void (WINE_GLAPI *PGLFNBEGINFRAGMENTSHADERATI)(void);
2939typedef void (WINE_GLAPI *PGLFNENDFRAGMENTSHADERATI)(void);
2940typedef void (WINE_GLAPI *PGLFNPASSTEXCOORDATI)(GLuint dst, GLuint coord, GLenum swizzle);
2941typedef void (WINE_GLAPI *PGLFNSAMPLEMAPATI)(GLuint dst, GLuint interp, GLenum swizzle);
2942typedef void (WINE_GLAPI *PGLFNCOLORFRAGMENTOP1ATI)(GLenum op, GLuint dst, GLuint dstMask,
2943 GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod);
2944typedef void (WINE_GLAPI *PGLFNCOLORFRAGMENTOP2ATI)(GLenum op, GLuint dst, GLuint dstMask,
2945 GLuint dstMod, GLuint arg1, GLuint arg1Rep,
2946 GLuint arg1Mod, GLuint arg2, GLuint arg2Rep,
2947 GLuint arg2Mod);
2948typedef void (WINE_GLAPI *PGLFNCOLORFRAGMENTOP3ATI)(GLenum op, GLuint dst, GLuint dstMask,
2949 GLuint dstMod, GLuint arg1, GLuint arg1Rep,
2950 GLuint arg1Mod, GLuint arg2, GLuint arg2Rep,
2951 GLuint arg2Mod, GLuint arg3, GLuint arg3Rep,
2952 GLuint arg3Mod);
2953typedef void (WINE_GLAPI *PGLFNALPHAFRAGMENTOP1ATI)(GLenum op, GLuint dst, GLuint dstMod,
2954 GLuint arg1, GLuint arg1Rep, GLuint arg1Mod);
2955typedef void (WINE_GLAPI *PGLFNALPHAFRAGMENTOP2ATI)(GLenum op, GLuint dst, GLuint dstMod,
2956 GLuint arg1, GLuint arg1Rep, GLuint arg1Mod,
2957 GLuint arg2, GLuint arg2Rep, GLuint arg2Mod);
2958typedef void (WINE_GLAPI *PGLFNALPHAFRAGMENTOP3ATI)(GLenum op, GLuint dst, GLuint dstMod,
2959 GLuint arg1, GLuint arg1Rep, GLuint arg1Mod,
2960 GLuint arg2, GLuint arg2Rep, GLuint arg2Mod,
2961 GLuint arg3, GLuint arg3Rep, GLuint arg3Mod);
2962typedef void (WINE_GLAPI *PGLFNSETFRAGMENTSHADERCONSTANTATI)(GLuint dst, const GLfloat *value);
2963
2964/* GL_ATI_separate_stencil */
2965#ifndef GL_ATI_separate_stencil
2966#define GL_ATI_separate_stencil 1
2967#define GL_STENCIL_BACK_FUNC_ATI 0x8800
2968#define GL_STENCIL_BACK_FAIL_ATI 0x8801
2969#define GL_STENCIL_BACK_PASS_DEPTH_FAIL_ATI 0x8802
2970#define GL_STENCIL_BACK_PASS_DEPTH_PASS_ATI 0x8803
2971#endif
2972typedef void (WINE_GLAPI *PGLFNSTENCILOPSEPARATEATIPROC)(GLenum, GLenum, GLenum, GLenum);
2973typedef void (WINE_GLAPI *PGLFNSTENCILFUNCSEPARATEATIPROC)(GLenum, GLenum, GLint, GLuint);
2974
2975/* GL_ATI_texture_compression_3dc */
2976#ifndef GL_ATI_texture_compression_3dc
2977#define GL_ATI_texture_compression_3dc 1
2978#define GL_COMPRESSED_LUMINANCE_ALPHA_3DC_ATI 0x8837
2979#endif
2980
2981/* GL_ATI_texture_env_combine3 */
2982#ifndef GL_ATI_texture_env_combine3
2983#define GL_ATI_texture_env_combine3 1
2984#define GL_MODULATE_ADD_ATI 0x8744
2985#define GL_MODULATE_SIGNED_ADD_ATI 0x8745
2986#define GL_MODULATE_SUBTRACT_ATI 0x8746
2987/* #define ONE */
2988/* #define ZERO */
2989#endif
2990
2991/* GL_ATI_texture_mirror_once */
2992#ifndef GL_ATI_texture_mirror_once
2993#define GL_ATI_texture_mirror_once 1
2994#define GL_MIRROR_CLAMP_ATI 0x8742
2995#define GL_MIRROR_CLAMP_TO_EDGE_ATI 0x8743
2996#endif
2997
2998/* GL_EXT_blend_equation_separate */
2999typedef void (WINE_GLAPI *PGLFNBLENDEQUATIONSEPARATEEXTPROC)(GLenum modeRGB, GLenum modeAlpha);
3000
3001/* GL_EXT_blend_func_separate */
3002#ifndef GL_EXT_blend_func_separate
3003#define GL_EXT_blend_func_separate 1
3004#define GL_BLEND_DST_RGB_EXT 0x80c8
3005#define GL_BLEND_SRC_RGB_EXT 0x80c9
3006#define GL_BLEND_DST_ALPHA_EXT 0x80ca
3007#define GL_BLEND_SRC_ALPHA_EXT 0x80cb
3008#endif
3009typedef void (WINE_GLAPI *PGLFNBLENDFUNCSEPARATEEXTPROC)(GLenum sfactorRGB, GLenum dfactorRGB,
3010 GLenum sfactorAlpha, GLenum dfactorAlpha);
3011
3012/* GL_EXT_draw_buffers2 */
3013typedef GLvoid (WINE_GLAPI *PGLFNCOLORMASKINDEXEDEXTPROC)(GLuint buffer_idx, GLboolean r, GLboolean g,
3014 GLboolean b, GLboolean a);
3015typedef GLvoid (WINE_GLAPI *PGLFNGETBOOLEANINDEXEDVEXTPROC)(GLenum param, GLuint index, GLboolean *value);
3016typedef GLvoid (WINE_GLAPI *PGLFNGETINTEGERINDEXEDVEXTPROC)(GLenum param, GLuint index, GLint *value);
3017typedef GLvoid (WINE_GLAPI *PGLFNENABLEINDEXEDEXTPROC)(GLenum target, GLuint index);
3018typedef GLvoid (WINE_GLAPI *PGLFNDISABLEINDEXEDEXTPROC)(GLenum target, GLuint index);
3019typedef GLboolean (WINE_GLAPI *PGLFNISENABLEDINDEXEDEXTPROC)(GLenum target, GLuint index);
3020
3021/* GL_EXT_fog_coord */
3022#ifndef GL_EXT_fog_coord
3023#define GL_EXT_fog_coord 1
3024#define GL_FOG_COORDINATE_SOURCE_EXT 0x8450
3025#define GL_FOG_COORDINATE_EXT 0x8451
3026#define GL_FRAGMENT_DEPTH_EXT 0x8452
3027#define GL_CURRENT_FOG_COORDINATE_EXT 0x8453
3028#define GL_FOG_COORDINATE_ARRAY_TYPE_EXT 0x8454
3029#define GL_FOG_COORDINATE_ARRAY_STRIDE_EXT 0x8455
3030#define GL_FOG_COORDINATE_ARRAY_POINTER_EXT 0x8456
3031#define GL_FOG_COORDINATE_ARRAY_EXT 0x8457
3032#endif
3033typedef void (WINE_GLAPI *PGLFNGLFOGCOORDFEXTPROC)(GLfloat coord);
3034typedef void (WINE_GLAPI *PGLFNGLFOGCOORDFVEXTPROC)(const GLfloat *coord);
3035typedef void (WINE_GLAPI *PGLFNGLFOGCOORDDEXTPROC)(GLdouble coord);
3036typedef void (WINE_GLAPI *PGLFNGLFOGCOORDDVEXTPROC)(const GLdouble *coord);
3037typedef void (WINE_GLAPI *PGLFNGLFOGCOORDPOINTEREXTPROC)(GLenum type, GLsizei stride, GLvoid *data);
3038
3039/* GL_EXT_framebuffer_blit */
3040#ifndef GL_EXT_framebuffer_blit
3041#define GL_EXT_framebuffer_blit 1
3042#define GL_READ_FRAMEBUFFER_EXT 0x8ca8
3043#define GL_DRAW_FRAMEBUFFER_EXT 0x8ca9
3044#define GL_DRAW_FRAMEBUFFER_BINDING_EXT 0x8ca6
3045#define GL_READ_FRAMEBUFFER_BINDING_EXT 0x8caa
3046#endif
3047typedef void (WINE_GLAPI *PGLFNGLBLITFRAMEBUFFEREXTPROC)(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1,
3048 GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
3049
3050/* GL_EXT_framebuffer_multisample */
3051#ifndef GL_EXT_framebuffer_multisample
3052#define GL_EXT_framebuffer_multisample 1
3053#define GL_RENDERBUFFER_SAMPLES_EXT 0x8cab
3054#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT 0x8d56
3055#define GL_MAX_SAMPLES_EXT 0x8d57
3056#endif
3057typedef void (WINE_GLAPI *PGLFNRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC)(GLenum target, GLsizei samples,
3058 GLenum internalformat, GLsizei width, GLsizei height);
3059
3060/* GL_EXT_framebuffer_object */
3061#ifndef GL_EXT_framebuffer_object
3062#define GL_EXT_framebuffer_object 1
3063#define GL_FRAMEBUFFER_EXT 0x8d40
3064#define GL_RENDERBUFFER_EXT 0x8d41
3065#define GL_STENCIL_INDEX1_EXT 0x8d46
3066#define GL_STENCIL_INDEX4_EXT 0x8d47
3067#define GL_STENCIL_INDEX8_EXT 0x8d48
3068#define GL_STENCIL_INDEX16_EXT 0x8d49
3069#define GL_RENDERBUFFER_WIDTH_EXT 0x8d42
3070#define GL_RENDERBUFFER_HEIGHT_EXT 0x8d43
3071#define GL_RENDERBUFFER_INTERNAL_FORMAT_EXT 0x8d44
3072#define GL_RENDERBUFFER_RED_SIZE_EXT 0x8d50
3073#define GL_RENDERBUFFER_GREEN_SIZE_EXT 0x8d51
3074#define GL_RENDERBUFFER_BLUE_SIZE_EXT 0x8d52
3075#define GL_RENDERBUFFER_ALPHA_SIZE_EXT 0x8d53
3076#define GL_RENDERBUFFER_DEPTH_SIZE_EXT 0x8d54
3077#define GL_RENDERBUFFER_STENCIL_SIZE_EXT 0x8d55
3078#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_EXT 0x8cd0
3079#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_EXT 0x8cd1
3080#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_EXT 0x8cd2
3081#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_EXT 0x8cd3
3082#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_EXT 0x8cd4
3083#define GL_COLOR_ATTACHMENT0_EXT 0x8ce0
3084#define GL_COLOR_ATTACHMENT1_EXT 0x8ce1
3085#define GL_COLOR_ATTACHMENT2_EXT 0x8ce2
3086#define GL_COLOR_ATTACHMENT3_EXT 0x8ce3
3087#define GL_COLOR_ATTACHMENT4_EXT 0x8ce4
3088#define GL_COLOR_ATTACHMENT5_EXT 0x8ce5
3089#define GL_COLOR_ATTACHMENT6_EXT 0x8ce6
3090#define GL_COLOR_ATTACHMENT7_EXT 0x8ce7
3091#define GL_COLOR_ATTACHMENT8_EXT 0x8ce8
3092#define GL_COLOR_ATTACHMENT9_EXT 0x8ce9
3093#define GL_COLOR_ATTACHMENT10_EXT 0x8cea
3094#define GL_COLOR_ATTACHMENT11_EXT 0x8ceb
3095#define GL_COLOR_ATTACHMENT12_EXT 0x8cec
3096#define GL_COLOR_ATTACHMENT13_EXT 0x8ced
3097#define GL_COLOR_ATTACHMENT14_EXT 0x8cee
3098#define GL_COLOR_ATTACHMENT15_EXT 0x8cef
3099#define GL_DEPTH_ATTACHMENT_EXT 0x8d00
3100#define GL_STENCIL_ATTACHMENT_EXT 0x8d20
3101#define GL_FRAMEBUFFER_COMPLETE_EXT 0x8cd5
3102#define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT 0x8cd6
3103#define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT 0x8cd7
3104#define GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT 0x8cd9
3105#define GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT 0x8cda
3106#define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT 0x8cdb
3107#define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT 0x8cdc
3108#define GL_FRAMEBUFFER_UNSUPPORTED_EXT 0x8cdd
3109#define GL_FRAMEBUFFER_BINDING_EXT 0x8ca6
3110#define GL_RENDERBUFFER_BINDING_EXT 0x8ca7
3111#define GL_MAX_COLOR_ATTACHMENTS_EXT 0x8cdF
3112#define GL_MAX_RENDERBUFFER_SIZE_EXT 0x84e8
3113#define GL_INVALID_FRAMEBUFFER_OPERATION_EXT 0x0506
3114#endif
3115typedef GLboolean (WINE_GLAPI *PGLFNGLISRENDERBUFFEREXTPROC)(GLuint renderbuffer);
3116typedef void (WINE_GLAPI *PGLFNGLBINDRENDERBUFFEREXTPROC)(GLenum target, GLuint renderbuffer);
3117typedef void (WINE_GLAPI *PGLFNGLDELETERENDERBUFFERSEXTPROC)(GLsizei n, const GLuint *renderbuffers);
3118typedef void (WINE_GLAPI *PGLFNGLGENRENDERBUFFERSEXTPROC)(GLsizei n, GLuint *renderbuffers);
3119typedef void (WINE_GLAPI *PGLFNGLRENDERBUFFERSTORAGEEXTPROC)(GLenum target,
3120 GLenum internalformat, GLsizei width, GLsizei height);
3121typedef void (WINE_GLAPI *PGLFNGLGETRENDERBUFFERPARAMETERIVEXTPROC)(GLenum target, GLenum pname, GLint *params);
3122typedef GLboolean (WINE_GLAPI *PGLFNGLISFRAMEBUFFEREXTPROC)(GLuint framebuffer);
3123typedef void (WINE_GLAPI *PGLFNGLBINDFRAMEBUFFEREXTPROC)(GLenum target, GLuint framebuffer);
3124typedef void (WINE_GLAPI *PGLFNGLDELETEFRAMEBUFFERSEXTPROC)(GLsizei n, const GLuint *framebuffers);
3125typedef void (WINE_GLAPI *PGLFNGLGENFRAMEBUFFERSEXTPROC)(GLsizei n, GLuint *framebuffers);
3126typedef GLenum (WINE_GLAPI *PGLFNGLCHECKFRAMEBUFFERSTATUSEXTPROC)(GLenum target);
3127typedef void (WINE_GLAPI *PGLFNGLFRAMEBUFFERTEXTURE1DEXTPROC)(GLenum target, GLenum attachment,
3128 GLenum textarget, GLuint texture, GLint level);
3129typedef void (WINE_GLAPI *PGLFNGLFRAMEBUFFERTEXTURE2DEXTPROC)(GLenum target, GLenum attachment,
3130 GLenum textarget, GLuint texture, GLint level);
3131typedef void (WINE_GLAPI *PGLFNGLFRAMEBUFFERTEXTURE3DEXTPROC)(GLenum target, GLenum attachment,
3132 GLenum textarget, GLuint texture, GLint level, GLint zoffset);
3133typedef void (WINE_GLAPI *PGLFNGLFRAMEBUFFERRENDERBUFFEREXTPROC)(GLenum target, GLenum attachment,
3134 GLenum renderbuffertarget, GLuint renderbuffer);
3135typedef void (WINE_GLAPI *PGLFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC)(GLenum target,
3136 GLenum attachment, GLenum pname, GLint *params);
3137typedef void (WINE_GLAPI *PGLFNGLGENERATEMIPMAPEXTPROC)(GLenum target);
3138
3139/* GL_EXT_gpu_program_parameters */
3140#ifndef GL_EXT_gpu_program_parameters
3141#define GL_EXT_gpu_program_parameters 1
3142typedef void (WINE_GLAPI *PGLFNPROGRAMENVPARAMETERS4FVEXTPROC)(GLenum target,
3143 GLuint index, GLsizei count, const float *params);
3144typedef void (WINE_GLAPI *PGLFNPROGRAMLOCALPARAMETERS4FVEXTPROC)(GLenum target,
3145 GLuint index, GLsizei count, const float *params);
3146#endif
3147
3148/* GL_EXT_gpu_shader4 */
3149#ifndef GL_EXT_gpu_shader4
3150#define GL_EXT_gpu_shader4 1
3151#define GL_VERTEX_ATTRIB_ARRAY_INTEGER_EXT 0x88fd
3152#define GL_SAMPLER_1D_ARRAY_EXT 0x8dc0
3153#define GL_SAMPLER_2D_ARRAY_EXT 0x8dc1
3154#define GL_SAMPLER_BUFFER_EXT 0x8dc2
3155#define GL_SAMPLER_1D_ARRAY_SHADOW_EXT 0x8dc3
3156#define GL_SAMPLER_2D_ARRAY_SHADOW_EXT 0x8dc4
3157#define GL_SAMPLER_CUBE_SHADOW_EXT 0x8dc5
3158#define GL_UNSIGNED_INT_VEC2_EXT 0x8dc6
3159#define GL_UNSIGNED_INT_VEC3_EXT 0x8dc7
3160#define GL_UNSIGNED_INT_VEC4_EXT 0x8dc8
3161#define GL_INT_SAMPLER_1D_EXT 0x8dc9
3162#define GL_INT_SAMPLER_2D_EXT 0x8dca
3163#define GL_INT_SAMPLER_3D_EXT 0x8dcb
3164#define GL_INT_SAMPLER_CUBE_EXT 0x8dcc
3165#define GL_INT_SAMPLER_2D_RECT_EXT 0x8dcd
3166#define GL_INT_SAMPLER_1D_ARRAY_EXT 0x8dce
3167#define GL_INT_SAMPLER_2D_ARRAY_EXT 0x8dcf
3168#define GL_INT_SAMPLER_BUFFER_EXT 0x8dd0
3169#define GL_UNSIGNED_INT_SAMPLER_1D_EXT 0x8dd1
3170#define GL_UNSIGNED_INT_SAMPLER_2D_EXT 0x8dd2
3171#define GL_UNSIGNED_INT_SAMPLER_3D_EXT 0x8dd3
3172#define GL_UNSIGNED_INT_SAMPLER_CUBE_EXT 0x8dd4
3173#define GL_UNSIGNED_INT_SAMPLER_2D_RECT_EXT 0x8dd5
3174#define GL_UNSIGNED_INT_SAMPLER_1D_ARRAY_EXT 0x8dd6
3175#define GL_UNSIGNED_INT_SAMPLER_2D_ARRAY_EXT 0x8dd7
3176#define GL_UNSIGNED_INT_SAMPLER_BUFFER_EXT 0x8dd8
3177#define GL_MIN_PROGRAM_TEXEL_OFFSET_EXT 0x8904
3178#define GL_MAX_PROGRAM_TEXEL_OFFSET_EXT 0x8905
3179#endif
3180typedef GLvoid (WINE_GLAPI *PGLFNVERTEXATTRIBI1IEXTPROC)(GLuint index, GLint x);
3181typedef GLvoid (WINE_GLAPI *PGLFNVERTEXATTRIBI2IEXTPROC)(GLuint index, GLint x, GLint y);
3182typedef GLvoid (WINE_GLAPI *PGLFNVERTEXATTRIBI3IEXTPROC)(GLuint index, GLint x, GLint y, GLint z);
3183typedef GLvoid (WINE_GLAPI *PGLFNVERTEXATTRIBI4IEXTPROC)(GLuint index, GLint x, GLint y, GLint z, GLint w);
3184typedef GLvoid (WINE_GLAPI *PGLFNVERTEXATTRIBI1UIEXTPROC)(GLuint index, GLuint x);
3185typedef GLvoid (WINE_GLAPI *PGLFNVERTEXATTRIBI2UIEXTPROC)(GLuint index, GLuint x, GLuint y);
3186typedef GLvoid (WINE_GLAPI *PGLFNVERTEXATTRIBI3UIEXTPROC)(GLuint index, GLuint x, GLuint y, GLuint z);
3187typedef GLvoid (WINE_GLAPI *PGLFNVERTEXATTRIBI4UIEXTPROC)(GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
3188typedef GLvoid (WINE_GLAPI *PGLFNVERTEXATTRIBI1IVEXTPROC)(GLuint index, const GLint *v);
3189typedef GLvoid (WINE_GLAPI *PGLFNVERTEXATTRIBI2IVEXTPROC)(GLuint index, const GLint *v);
3190typedef GLvoid (WINE_GLAPI *PGLFNVERTEXATTRIBI3IVEXTPROC)(GLuint index, const GLint *v);
3191typedef GLvoid (WINE_GLAPI *PGLFNVERTEXATTRIBI4IVEXTPROC)(GLuint index, const GLint *v);
3192typedef GLvoid (WINE_GLAPI *PGLFNVERTEXATTRIBI1UIVEXTPROC)(GLuint index, const GLuint *v);
3193typedef GLvoid (WINE_GLAPI *PGLFNVERTEXATTRIBI2UIVEXTPROC)(GLuint index, const GLuint *v);
3194typedef GLvoid (WINE_GLAPI *PGLFNVERTEXATTRIBI3UIVEXTPROC)(GLuint index, const GLuint *v);
3195typedef GLvoid (WINE_GLAPI *PGLFNVERTEXATTRIBI4UIVEXTPROC)(GLuint index, const GLuint *v);
3196typedef GLvoid (WINE_GLAPI *PGLFNVERTEXATTRIBI4BVEXTPROC)(GLuint index, const GLbyte *v);
3197typedef GLvoid (WINE_GLAPI *PGLFNVERTEXATTRIBI4SVEXTPROC)(GLuint index, const GLshort *v);
3198typedef GLvoid (WINE_GLAPI *PGLFNVERTEXATTRIBI4UBVEXTPROC)(GLuint index, const GLubyte *v);
3199typedef GLvoid (WINE_GLAPI *PGLFNVERTEXATTRIBI4USVEXTPROC)(GLuint index, const GLushort *v);
3200typedef GLvoid (WINE_GLAPI *PGLFNVERTEXATTRIBIPOINTEREXTPROC)(GLuint index, GLint size, GLenum type,
3201 GLsizei stride, const GLvoid *pointer);
3202typedef GLvoid (WINE_GLAPI *PGLFNGETVERTEXATTRIBIIVEXTPROC)(GLuint index, GLenum pname, GLint *params);
3203typedef GLvoid (WINE_GLAPI *PGLFNGETVERTEXATTRIBIUIVEXTPROC)(GLuint index, GLenum pname, GLuint *params);
3204typedef GLvoid (WINE_GLAPI *PGLFNUNIFORM1UIEXTPROC)(GLint location, GLuint v0);
3205typedef GLvoid (WINE_GLAPI *PGLFNUNIFORM2UIEXTPROC)(GLint location, GLuint v0, GLuint v1);
3206typedef GLvoid (WINE_GLAPI *PGLFNUNIFORM3UIEXTPROC)(GLint location, GLuint v0, GLuint v1, GLuint v2);
3207typedef GLvoid (WINE_GLAPI *PGLFNUNIFORM4UIEXTPROC)(GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
3208typedef GLvoid (WINE_GLAPI *PGLFNUNIFORM1UIVEXTPROC)(GLint location, GLsizei count, const GLuint *value);
3209typedef GLvoid (WINE_GLAPI *PGLFNUNIFORM2UIVEXTPROC)(GLint location, GLsizei count, const GLuint *value);
3210typedef GLvoid (WINE_GLAPI *PGLFNUNIFORM3UIVEXTPROC)(GLint location, GLsizei count, const GLuint *value);
3211typedef GLvoid (WINE_GLAPI *PGLFNUNIFORM4UIVEXTPROC)(GLint location, GLsizei count, const GLuint *value);
3212typedef GLvoid (WINE_GLAPI *PGLFNGETUNIFORMUIVEXTPROC)(GLuint program, GLint location, const GLuint *params);
3213typedef GLvoid (WINE_GLAPI *PGLFNBINDFRAGDATALOCATIONEXTPROC)(GLuint program, GLuint color_number, const GLchar *name);
3214typedef GLint (WINE_GLAPI *PGLFNGETFRAGDATALOCATIONEXTPROC)(GLuint program, const GLchar *name);
3215
3216/* GL_EXT_packed_depth_stencil */
3217#ifndef GL_EXT_packed_depth_stencil
3218#define GL_EXT_packed_depth_stencil 1
3219#define GL_DEPTH_STENCIL_EXT 0x84f9
3220#define GL_UNSIGNED_INT_24_8_EXT 0x84fa
3221#define GL_DEPTH24_STENCIL8_EXT 0x88f0
3222#define GL_TEXTURE_STENCIL_SIZE_EXT 0x88f1
3223#endif
3224
3225/* GL_EXT_paletted_texture */
3226#ifndef GL_EXT_paletted_texture
3227#define GL_EXT_paletted_texture 1
3228#define GL_COLOR_INDEX1_EXT 0x80e2
3229#define GL_COLOR_INDEX2_EXT 0x80e3
3230#define GL_COLOR_INDEX4_EXT 0x80e4
3231#define GL_COLOR_INDEX8_EXT 0x80e5
3232#define GL_COLOR_INDEX12_EXT 0x80e6
3233#define GL_COLOR_INDEX16_EXT 0x80e7
3234#define GL_TEXTURE_INDEX_SIZE_EXT 0x80ed
3235#endif
3236typedef void (WINE_GLAPI *PGLFNGLCOLORTABLEEXTPROC)(GLenum target, GLenum internalFormat,
3237 GLsizei width, GLenum format, GLenum type, const GLvoid *table);
3238
3239/* GL_EXT_point_parameters */
3240#ifndef GL_EXT_point_parameters
3241#define GL_EXT_point_parameters 1
3242#define GL_POINT_SIZE_MIN_EXT 0x8126
3243#define GL_POINT_SIZE_MAX_EXT 0x8127
3244#define GL_POINT_FADE_THRESHOLD_SIZE_EXT 0x8128
3245#define GL_DISTANCE_ATTENUATION_EXT 0x8129
3246#endif
3247typedef void (WINE_GLAPI *PGLFNGLPOINTPARAMETERFEXTPROC)(GLenum pname, GLfloat param);
3248typedef void (WINE_GLAPI *PGLFNGLPOINTPARAMETERFVEXTPROC)(GLenum pname, const GLfloat *params);
3249
3250/* GL_EXT_provoking_vertex */
3251#ifndef GL_EXT_provoking_vertex
3252#define GL_EXT_provoking_vertex 1
3253#define GL_FIRST_VERTEX_CONVENTION_EXT 0x8e4d
3254#define GL_LAST_VERTEX_CONVENTION_EXT 0x8e4e
3255#define GL_PROVOKING_VERTEX_EXT 0x8e4f
3256#define GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION_EXT 0x8e4c
3257#endif
3258typedef void (WINE_GLAPI *PGLFNGLPROVOKINGVERTEXEXTPROC)(GLenum mode);
3259
3260/* GL_EXT_secondary_color */
3261#ifndef GL_EXT_secondary_color
3262#define GL_EXT_secondary_color 1
3263#define GL_COLOR_SUM_EXT 0x8458
3264#define GL_CURRENT_SECONDARY_COLOR_EXT 0x8459
3265#define GL_SECONDARY_COLOR_ARRAY_SIZE_EXT 0x845a
3266#define GL_SECONDARY_COLOR_ARRAY_TYPE_EXT 0x845b
3267#define GL_SECONDARY_COLOR_ARRAY_STRIDE_EXT 0x845c
3268#define GL_SECONDARY_COLOR_ARRAY_POINTER_EXT 0x845d
3269#define GL_SECONDARY_COLOR_ARRAY_EXT 0x845e
3270#endif
3271typedef void (WINE_GLAPI *PGLFNGLSECONDARYCOLOR3FEXTPROC)(GLfloat red, GLfloat green, GLfloat blue);
3272typedef void (WINE_GLAPI *PGLFNGLSECONDARYCOLOR3FVEXTPROC)(const GLfloat *v);
3273typedef void (WINE_GLAPI *PGLFNGLSECONDARYCOLOR3UBEXTPROC)(GLubyte red, GLubyte green, GLubyte blue);
3274typedef void (WINE_GLAPI *PGLFNGLSECONDARYCOLOR3UBVEXTPROC)(const GLubyte *v);
3275typedef void (WINE_GLAPI *PGLFNGLSECONDARYCOLORPOINTEREXTPROC)(GLint size, GLenum type,
3276 GLsizei stride, const GLvoid *pointer);
3277
3278/* GL_EXT_stencil_two_side */
3279#ifndef GL_EXT_stencil_two_side
3280#define GL_EXT_stencil_two_side 1
3281#define GL_STENCIL_TEST_TWO_SIDE_EXT 0x8910
3282#define GL_ACTIVE_STENCIL_FACE_EXT 0x8911
3283#endif
3284typedef void (WINE_GLAPI *PGLFNACTIVESTENCILFACEEXTPROC)(GLenum face);
3285
3286/* GL_EXT_stencil_wrap */
3287#ifndef GL_EXT_stencil_wrap
3288#define GL_EXT_stencil_wrap 1
3289#define GL_INCR_WRAP_EXT 0x8507
3290#define GL_DECR_WRAP_EXT 0x8508
3291#endif
3292
3293/* GL_EXT_texture3D */
3294#ifndef GL_EXT_texture3D
3295#define GL_EXT_texture3D 1
3296#define GL_PACK_SKIP_IMAGES_EXT 0x806b
3297#define GL_PACK_IMAGE_HEIGHT_EXT 0x806c
3298#define GL_UNPACK_SKIP_IMAGES_EXT 0x806d
3299#define GL_UNPACK_IMAGE_HEIGHT_EXT 0x806e
3300#define GL_TEXTURE_3D_EXT 0x806f
3301#define GL_PROXY_TEXTURE_3D_EXT 0x8070
3302#define GL_TEXTURE_DEPTH_EXT 0x8071
3303#define GL_TEXTURE_WRAP_R_EXT 0x8072
3304#define GL_MAX_3D_TEXTURE_SIZE_EXT 0x8073
3305#endif
3306typedef void (WINE_GLAPI *PGLFNGLTEXIMAGE3DEXTPROC)(GLenum target, GLint level, GLenum internalformat,
3307 GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
3308typedef void (WINE_GLAPI *PGLFNGLTEXSUBIMAGE3DEXTPROC)(GLenum target, GLint level, GLint xoffset, GLint yoffset,
3309 GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels);
3310
3311/* GL_EXT_texture_compression_rgtc */
3312#ifndef GL_EXT_texture_compression_rgtc
3313#define GL_EXT_texture_compression_rgtc 1
3314#define GL_COMPRESSED_RED_RGTC1_EXT 0x8dbb
3315#define GL_COMPRESSED_SIGNED_RED_RGTC1_EXT 0x8dbc
3316#define GL_COMPRESSED_RED_GREEN_RGTC2_EXT 0x8dbd
3317#define GL_COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT 0x8dbe
3318#endif
3319
3320/* GL_EXT_texture_compression_s3tc */
3321#ifndef GL_EXT_texture_compression_s3tc
3322#define GL_EXT_texture_compression_s3tc 1
3323#define GL_COMPRESSED_RGB_S3TC_DXT1_EXT 0x83f0
3324#define GL_COMPRESSED_RGBA_S3TC_DXT1_EXT 0x83f1
3325#define GL_COMPRESSED_RGBA_S3TC_DXT3_EXT 0x83f2
3326#define GL_COMPRESSED_RGBA_S3TC_DXT5_EXT 0x83f3
3327#endif
3328typedef void (WINE_GLAPI *PGLFNCOMPRESSEDTEXIMAGE3DPROC)(GLenum target, GLint level, GLenum internalformat,
3329 GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data);
3330typedef void (WINE_GLAPI *PGLFNCOMPRESSEDTEXIMAGE2DPROC)(GLenum target, GLint level, GLenum internalformat,
3331 GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data);
3332typedef void (WINE_GLAPI *PGLFNCOMPRESSEDTEXIMAGE1DPROC)(GLenum target, GLint level, GLenum internalformat,
3333 GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data);
3334typedef void (WINE_GLAPI *PGLFNCOMPRESSEDTEXSUBIMAGE3DPROC)(GLenum target, GLint level,
3335 GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth,
3336 GLenum format, GLsizei imageSize, const GLvoid *data);
3337typedef void (WINE_GLAPI *PGLFNCOMPRESSEDTEXSUBIMAGE2DPROC)(GLenum target, GLint level, GLint xoffset, GLint yoffset,
3338 GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data);
3339typedef void (WINE_GLAPI *PGLFNCOMPRESSEDTEXSUBIMAGE1DPROC)(GLenum target, GLint level, GLint xoffset,
3340 GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data);
3341typedef void (WINE_GLAPI *PGLFNGETCOMPRESSEDTEXIMAGEPROC)(GLenum target, GLint level, void *img);
3342
3343/* GL_EXT_texture_env_combine */
3344#ifndef GL_EXT_texture_env_combine
3345#define GL_EXT_texture_env_combine 1
3346#define GL_COMBINE_EXT 0x8570
3347#define GL_COMBINE_RGB_EXT 0x8571
3348#define GL_COMBINE_ALPHA_EXT 0x8572
3349#define GL_RGB_SCALE_EXT 0x8573
3350#define GL_ADD_SIGNED_EXT 0x8574
3351#define GL_INTERPOLATE_EXT 0x8575
3352#define GL_SUBTRACT_EXT 0x84e7
3353#define GL_CONSTANT_EXT 0x8576
3354#define GL_PRIMARY_COLOR_EXT 0x8577
3355#define GL_PREVIOUS_EXT 0x8578
3356#define GL_SOURCE0_RGB_EXT 0x8580
3357#define GL_SOURCE1_RGB_EXT 0x8581
3358#define GL_SOURCE2_RGB_EXT 0x8582
3359#define GL_SOURCE3_RGB_EXT 0x8583
3360#define GL_SOURCE4_RGB_EXT 0x8584
3361#define GL_SOURCE5_RGB_EXT 0x8585
3362#define GL_SOURCE6_RGB_EXT 0x8586
3363#define GL_SOURCE7_RGB_EXT 0x8587
3364#define GL_SOURCE0_ALPHA_EXT 0x8588
3365#define GL_SOURCE1_ALPHA_EXT 0x8589
3366#define GL_SOURCE2_ALPHA_EXT 0x858a
3367#define GL_SOURCE3_ALPHA_EXT 0x858b
3368#define GL_SOURCE4_ALPHA_EXT 0x858c
3369#define GL_SOURCE5_ALPHA_EXT 0x858d
3370#define GL_SOURCE6_ALPHA_EXT 0x858e
3371#define GL_SOURCE7_ALPHA_EXT 0x858f
3372#define GL_OPERAND0_RGB_EXT 0x8590
3373#define GL_OPERAND1_RGB_EXT 0x8591
3374#define GL_OPERAND2_RGB_EXT 0x8592
3375#define GL_OPERAND3_RGB_EXT 0x8593
3376#define GL_OPERAND4_RGB_EXT 0x8594
3377#define GL_OPERAND5_RGB_EXT 0x8595
3378#define GL_OPERAND6_RGB_EXT 0x8596
3379#define GL_OPERAND7_RGB_EXT 0x8597
3380#define GL_OPERAND0_ALPHA_EXT 0x8598
3381#define GL_OPERAND1_ALPHA_EXT 0x8599
3382#define GL_OPERAND2_ALPHA_EXT 0x859a
3383#define GL_OPERAND3_ALPHA_EXT 0x859b
3384#define GL_OPERAND4_ALPHA_EXT 0x859c
3385#define GL_OPERAND5_ALPHA_EXT 0x859d
3386#define GL_OPERAND6_ALPHA_EXT 0x859e
3387#define GL_OPERAND7_ALPHA_EXT 0x859f
3388#endif
3389
3390/* GL_EXT_texture_env_dot3 */
3391#ifndef GL_EXT_texture_env_dot3
3392#define GL_EXT_texture_env_dot3 1
3393#define GL_DOT3_RGB_EXT 0x8740
3394#define GL_DOT3_RGBA_EXT 0x8741
3395#endif
3396
3397/* GL_EXT_texture_filter_anisotropic */
3398#ifndef GL_EXT_texture_filter_anisotropic
3399#define GL_EXT_texture_filter_anisotropic 1
3400#define GL_TEXTURE_MAX_ANISOTROPY_EXT 0x84fe
3401#define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT 0x84ff
3402#endif
3403
3404/* GL_EXT_texture_lod_bias */
3405#ifndef GL_EXT_texture_lod_bias
3406#define GL_EXT_texture_lod_bias 1
3407#define GL_MAX_TEXTURE_LOD_BIAS_EXT 0x84fd
3408#define GL_TEXTURE_FILTER_CONTROL_EXT 0x8500
3409#define GL_TEXTURE_LOD_BIAS_EXT 0x8501
3410#endif
3411
3412/* GL_EXT_texture_sRGB */
3413#ifndef GL_EXT_texture_sRGB
3414#define GL_EXT_texture_sRGB 1
3415#define GL_SRGB_EXT 0x8c40
3416#define GL_SRGB8_EXT 0x8c41
3417#define GL_SRGB_ALPHA_EXT 0x8c42
3418#define GL_SRGB8_ALPHA8_EXT 0x8c43
3419#define GL_SLUMINANCE_ALPHA_EXT 0x8c44
3420#define GL_SLUMINANCE8_ALPHA8_EXT 0x8c45
3421#define GL_SLUMINANCE_EXT 0x8c46
3422#define GL_SLUMINANCE8_EXT 0x8c47
3423#define GL_COMPRESSED_SRGB_EXT 0x8c48
3424#define GL_COMPRESSED_SRGB_ALPHA_EXT 0x8c49
3425#define GL_COMPRESSED_SLUMINANCE_EXT 0x8c4a
3426#define GL_COMPRESSED_SLUMINANCE_ALPHA_EXT 0x8c4b
3427#define GL_COMPRESSED_SRGB_S3TC_DXT1_EXT 0x8c4c
3428#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT 0x8c4d
3429#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT 0x8c4e
3430#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT 0x8c4f
3431#endif
3432
3433/* GL_NV_depth_clamp */
3434#ifndef GL_NV_depth_clamp
3435#define GL_NV_depth_clamp 1
3436#define GL_DEPTH_CLAMP_NV 0x864f
3437#endif
3438
3439/* GL_NV_fence */
3440#ifndef GL_NV_fence
3441#define GL_NV_fence 1
3442#define GL_ALL_COMPLETED_NV 0x84f2
3443#define GL_FENCE_STATUS_NV 0x84f3
3444#define GL_FENCE_CONDITION_NV 0x84f4
3445#endif
3446typedef void (WINE_GLAPI *PGLFNGENFENCESNVPROC)(GLsizei, GLuint *);
3447typedef void (WINE_GLAPI *PGLFNDELETEFENCESNVPROC)(GLuint, const GLuint *);
3448typedef void (WINE_GLAPI *PGLFNSETFENCENVPROC)(GLuint, GLenum);
3449typedef GLboolean (WINE_GLAPI *PGLFNTESTFENCENVPROC)(GLuint);
3450typedef void (WINE_GLAPI *PGLFNFINISHFENCENVPROC)(GLuint);
3451typedef GLboolean (WINE_GLAPI *PGLFNISFENCENVPROC)(GLuint);
3452typedef void (WINE_GLAPI *PGLFNGETFENCEIVNVPROC)(GLuint, GLenum, GLint *);
3453
3454/* GL_NV_fog_distance */
3455#ifndef GL_NV_fog_distance
3456#define GL_NV_fog_distance 1
3457#define GL_FOG_DISTANCE_MODE_NV 0x855a
3458#define GL_EYE_RADIAL_NV 0x855b
3459#define GL_EYE_PLANE_ABSOLUTE_NV 0x855c
3460/* reuse GL_EYE_PLANE */
3461#endif
3462
3463/* GL_NV_half_float */
3464#ifndef GL_NV_half_float
3465#define GL_NV_half_float 1
3466typedef unsigned short GLhalfNV;
3467#define GL_HALF_FLOAT_NV 0x140b
3468#endif
3469typedef void (WINE_GLAPI *PGLFNVERTEX2HNVPROC)(GLhalfNV x, GLhalfNV y);
3470typedef void (WINE_GLAPI *PGLFNVERTEX2HVNVPROC)(const GLhalfNV *v);
3471typedef void (WINE_GLAPI *PGLFNVERTEX3HNVPROC)(GLhalfNV x, GLhalfNV y, GLhalfNV z);
3472typedef void (WINE_GLAPI *PGLFNVERTEX3HVNVPROC)(const GLhalfNV *v);
3473typedef void (WINE_GLAPI *PGLFNVERTEX4HNVPROC)(GLhalfNV x, GLhalfNV y, GLhalfNV z, GLhalfNV w);
3474typedef void (WINE_GLAPI *PGLFNVERTEX4HVNVPROC)(const GLhalfNV *v);
3475typedef void (WINE_GLAPI *PGLFNNORMAL3HNVPROC)(GLhalfNV nx, GLhalfNV ny, GLhalfNV nz);
3476typedef void (WINE_GLAPI *PGLFNNORMAL3HVNVPROC)(const GLhalfNV *v);
3477typedef void (WINE_GLAPI *PGLFNCOLOR3HNVPROC)(GLhalfNV red, GLhalfNV green, GLhalfNV blue);
3478typedef void (WINE_GLAPI *PGLFNCOLOR3HVNVPROC)(const GLhalfNV *v);
3479typedef void (WINE_GLAPI *PGLFNCOLOR4HNVPROC)(GLhalfNV red, GLhalfNV green, GLhalfNV blue, GLhalfNV alpha);
3480typedef void (WINE_GLAPI *PGLFNCOLOR4HVNVPROC)(const GLhalfNV *v);
3481typedef void (WINE_GLAPI *PGLFNTEXCOORD1HNVPROC)(GLhalfNV s);
3482typedef void (WINE_GLAPI *PGLFNTEXCOORD1HVNVPROC)(const GLhalfNV *v);
3483typedef void (WINE_GLAPI *PGLFNTEXCOORD2HNVPROC)(GLhalfNV s, GLhalfNV t);
3484typedef void (WINE_GLAPI *PGLFNTEXCOORD2HVNVPROC)(const GLhalfNV *v);
3485typedef void (WINE_GLAPI *PGLFNTEXCOORD3HNVPROC)(GLhalfNV s, GLhalfNV t, GLhalfNV r);
3486typedef void (WINE_GLAPI *PGLFNTEXCOORD3HVNVPROC)(const GLhalfNV *v);
3487typedef void (WINE_GLAPI *PGLFNTEXCOORD4HNVPROC)(GLhalfNV s, GLhalfNV t, GLhalfNV r, GLhalfNV q);
3488typedef void (WINE_GLAPI *PGLFNTEXCOORD4HVNVPROC)(const GLhalfNV *v);
3489typedef void (WINE_GLAPI *PGLFNMULTITEXCOORD1HNVPROC)(GLenum target, GLhalfNV s);
3490typedef void (WINE_GLAPI *PGLFNMULTITEXCOORD1HVNVPROC)(GLenum target, const GLhalfNV *v);
3491typedef void (WINE_GLAPI *PGLFNMULTITEXCOORD2HNVPROC)(GLenum target, GLhalfNV s, GLhalfNV t);
3492typedef void (WINE_GLAPI *PGLFNMULTITEXCOORD2HVNVPROC)(GLenum target, const GLhalfNV *v);
3493typedef void (WINE_GLAPI *PGLFNMULTITEXCOORD3HNVPROC)(GLenum target, GLhalfNV s, GLhalfNV t, GLhalfNV r);
3494typedef void (WINE_GLAPI *PGLFNMULTITEXCOORD3HVNVPROC)(GLenum target, const GLhalfNV *v);
3495typedef void (WINE_GLAPI *PGLFNMULTITEXCOORD4HNVPROC)(GLenum target, GLhalfNV s, GLhalfNV t, GLhalfNV r, GLhalfNV q);
3496typedef void (WINE_GLAPI *PGLFNMULTITEXCOORD4HVNVPROC)(GLenum target, const GLhalfNV *v);
3497typedef void (WINE_GLAPI *PGLFNFOGCOORDHNVPROC)(GLhalfNV fog);
3498typedef void (WINE_GLAPI *PGLFNFOGCOORDHVNVPROC)(const GLhalfNV *fog);
3499typedef void (WINE_GLAPI *PGLFNSECONDARYCOLOR3HNVPROC)(GLhalfNV red, GLhalfNV green, GLhalfNV blue);
3500typedef void (WINE_GLAPI *PGLFNSECONDARYCOLOR3HVNVPROC)(const GLhalfNV *v);
3501typedef void (WINE_GLAPI *PGLFNVERTEXWEIGHTHNVPROC)(GLhalfNV weight);
3502typedef void (WINE_GLAPI *PGLFNVERTEXWEIGHTHVNVPROC)(const GLhalfNV *weight);
3503typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB1HNVPROC)(GLuint index, GLhalfNV x);
3504typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB1HVNVPROC)(GLuint index, const GLhalfNV *v);
3505typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB2HNVPROC)(GLuint index, GLhalfNV x, GLhalfNV y);
3506typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB2HVNVPROC)(GLuint index, const GLhalfNV *v);
3507typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB3HNVPROC)(GLuint index, GLhalfNV x, GLhalfNV y, GLhalfNV z);
3508typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB3HVNVPROC)(GLuint index, const GLhalfNV *v);
3509typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB4HNVPROC)(GLuint index, GLhalfNV x, GLhalfNV y, GLhalfNV z, GLhalfNV w);
3510typedef void (WINE_GLAPI *PGLFNVERTEXATTRIB4HVNVPROC)(GLuint index, const GLhalfNV *v);
3511typedef void (WINE_GLAPI *PGLFNVERTEXATTRIBS1HVNVPROC)(GLuint index, GLsizei n, const GLhalfNV *v);
3512typedef void (WINE_GLAPI *PGLFNVERTEXATTRIBS2HVNVPROC)(GLuint index, GLsizei n, const GLhalfNV *v);
3513typedef void (WINE_GLAPI *PGLFNVERTEXATTRIBS3HVNVPROC)(GLuint index, GLsizei n, const GLhalfNV *v);
3514typedef void (WINE_GLAPI *PGLFNVERTEXATTRIBS4HVNVPROC)(GLuint index, GLsizei n, const GLhalfNV *v);
3515
3516/* GL_NV_light_max_exponent */
3517#ifndef GL_NV_light_max_exponent
3518#define GL_NV_light_max_exponent 1
3519#define GL_MAX_SHININESS_NV 0x8504
3520#define GL_MAX_SPOT_EXPONENT_NV 0x8505
3521#endif
3522
3523/* GL_NV_register_combiners */
3524#ifndef GL_NV_register_combiners
3525#define GL_NV_register_combiners 1
3526#define GL_REGISTER_COMBINERS_NV 0x8522
3527#define GL_VARIABLE_A_NV 0x8523
3528#define GL_VARIABLE_B_NV 0x8524
3529#define GL_VARIABLE_C_NV 0x8525
3530#define GL_VARIABLE_D_NV 0x8526
3531#define GL_VARIABLE_E_NV 0x8527
3532#define GL_VARIABLE_F_NV 0x8528
3533#define GL_VARIABLE_G_NV 0x8529
3534#define GL_CONSTANT_COLOR0_NV 0x852a
3535#define GL_CONSTANT_COLOR1_NV 0x852b
3536#define GL_PRIMARY_COLOR_NV 0x852c
3537#define GL_SECONDARY_COLOR_NV 0x852d
3538#define GL_SPARE0_NV 0x852e
3539#define GL_SPARE1_NV 0x852f
3540#define GL_DISCARD_NV 0x8530
3541#define GL_E_TIMES_F_NV 0x8531
3542#define GL_SPARE0_PLUS_SECONDARY_COLOR_NV 0x8532
3543#define GL_UNSIGNED_IDENTITY_NV 0x8536
3544#define GL_UNSIGNED_INVERT_NV 0x8537
3545#define GL_EXPAND_NORMAL_NV 0x8538
3546#define GL_EXPAND_NEGATE_NV 0x8539
3547#define GL_HALF_BIAS_NORMAL_NV 0x853a
3548#define GL_HALF_BIAS_NEGATE_NV 0x853b
3549#define GL_SIGNED_IDENTITY_NV 0x853c
3550#define GL_SIGNED_NEGATE_NV 0x853d
3551#define GL_SCALE_BY_TWO_NV 0x853e
3552#define GL_SCALE_BY_FOUR_NV 0x853f
3553#define GL_SCALE_BY_ONE_HALF_NV 0x8540
3554#define GL_BIAS_BY_NEGATIVE_ONE_HALF_NV 0x8541
3555#define GL_COMBINER_INPUT_NV 0x8542
3556#define GL_COMBINER_MAPPING_NV 0x8543
3557#define GL_COMBINER_COMPONENT_USAGE_NV 0x8544
3558#define GL_COMBINER_AB_DOT_PRODUCT_NV 0x8545
3559#define GL_COMBINER_CD_DOT_PRODUCT_NV 0x8546
3560#define GL_COMBINER_MUX_SUM_NV 0x8547
3561#define GL_COMBINER_SCALE_NV 0x8548
3562#define GL_COMBINER_BIAS_NV 0x8549
3563#define GL_COMBINER_AB_OUTPUT_NV 0x854a
3564#define GL_COMBINER_CD_OUTPUT_NV 0x854b
3565#define GL_COMBINER_SUM_OUTPUT_NV 0x854c
3566#define GL_MAX_GENERAL_COMBINERS_NV 0x854d
3567#define GL_NUM_GENERAL_COMBINERS_NV 0x854e
3568#define GL_COLOR_SUM_CLAMP_NV 0x854f
3569#define GL_COMBINER0_NV 0x8550
3570#define GL_COMBINER1_NV 0x8551
3571#define GL_COMBINER2_NV 0x8552
3572#define GL_COMBINER3_NV 0x8553
3573#define GL_COMBINER4_NV 0x8554
3574#define GL_COMBINER5_NV 0x8555
3575#define GL_COMBINER6_NV 0x8556
3576#define GL_COMBINER7_NV 0x8557
3577/* reuse GL_TEXTURE0_ARB */
3578/* reuse GL_TEXTURE1_ARB */
3579/* reuse GL_ZERO */
3580/* reuse GL_NONE */
3581/* reuse GL_FOG */
3582#endif
3583typedef void (WINE_GLAPI *PGLFNCOMBINERPARAMETERFVNVPROC)(GLenum pname, const GLfloat *params);
3584typedef void (WINE_GLAPI *PGLFNCOMBINERPARAMETERFNVPROC)(GLenum pname, GLfloat param);
3585typedef void (WINE_GLAPI *PGLFNCOMBINERPARAMETERIVNVPROC)(GLenum pname, const GLint *params);
3586typedef void (WINE_GLAPI *PGLFNCOMBINERPARAMETERINVPROC)(GLenum pname, GLint param);
3587typedef void (WINE_GLAPI *PGLFNCOMBINERINPUTNVPROC)(GLenum stage, GLenum portion,
3588 GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage);
3589typedef void (WINE_GLAPI *PGLFNCOMBINEROUTPUTNVPROC)(GLenum stage, GLenum portion,
3590 GLenum abOutput, GLenum cdOutput, GLenum sumOutput, GLenum scale, GLenum bias,
3591 GLboolean abDotProduct, GLboolean cdDotProduct, GLboolean muxSum);
3592typedef void (WINE_GLAPI *PGLFNFINALCOMBINERINPUTNVPROC)(GLenum variable, GLenum input,
3593 GLenum mapping, GLenum componentUsage);
3594typedef void (WINE_GLAPI *PGLFNGETCOMBINERINPUTPARAMETERFVNVPROC)(GLenum stage, GLenum portion,
3595 GLenum variable, GLenum pname, GLfloat *params);
3596typedef void (WINE_GLAPI *PGLFNGETCOMBINERINPUTPARAMETERIVNVPROC)(GLenum stage, GLenum portion,
3597 GLenum variable, GLenum pname, GLint *params);
3598typedef void (WINE_GLAPI *PGLFNGETCOMBINEROUTPUTPARAMETERFVNVPROC)(GLenum stage, GLenum portion,
3599 GLenum pname, GLfloat *params);
3600typedef void (WINE_GLAPI *PGLFNGETCOMBINEROUTPUTPARAMETERIVNVPROC)(GLenum stage, GLenum portion,
3601 GLenum pname, GLint *params);
3602typedef void (WINE_GLAPI *PGLFNGETFINALCOMBINERINPUTPARAMETERFVNVPROC)(GLenum variable, GLenum pname, GLfloat *params);
3603typedef void (WINE_GLAPI *PGLFNGETFINALCOMBINERINPUTPARAMETERIVNVPROC)(GLenum variable, GLenum pname, GLint *params);
3604
3605/* GL_NV_register_combiners2 */
3606#ifndef GL_NV_register_combiners2
3607#define GL_NV_register_combiners2 1
3608#define GL_PER_STAGE_CONSTANTS_NV 0x8535
3609#endif
3610typedef void (WINE_GLAPI *PGLFNCOMBINERSTAGEPARAMETERFVNVPROC)(GLenum stage, GLenum pname, const GLfloat *params);
3611typedef void (WINE_GLAPI *PGLFNGETCOMBINERSTAGEPARAMETERFVNVPROC)(GLenum stage, GLenum pname, GLfloat *params);
3612
3613/* GL_NV_texgen_reflection */
3614#ifndef GL_NV_texgen_reflection
3615#define GL_NV_texgen_reflection 1
3616#define GL_NORMAL_MAP_NV 0x8511
3617#define GL_REFLECTION_MAP_NV 0x8512
3618#endif
3619
3620/* GL_NV_texture_env_combine4 */
3621#ifndef GL_NV_texture_env_combine4
3622#define GL_NV_texture_env_combine4 1
3623#define GL_COMBINE4_NV 0x8503
3624#define GL_SOURCE3_RGB_NV 0x8583
3625#define GL_SOURCE3_ALPHA_NV 0x858b
3626#define GL_OPERAND3_RGB_NV 0x8593
3627#define GL_OPERAND3_ALPHA_NV 0x859b
3628#endif
3629
3630/* GL_NV_texture_shader */
3631#ifndef GL_NV_texture_shader
3632#define GL_NV_texture_shader 1
3633#define GL_OFFSET_TEXTURE_RECTANGLE_NV 0x864c
3634#define GL_OFFSET_TEXTURE_RECTANGLE_SCALE_NV 0x864d
3635#define GL_DOT_PRODUCT_TEXTURE_RECTANGLE_NV 0x864e
3636#define GL_RGBA_UNSIGNED_DOT_PRODUCT_MAPPING_NV 0x86d9
3637#define GL_UNSIGNED_INT_S8_S8_8_8_NV 0x86da
3638#define GL_UNSIGNED_INT_8_8_S8_S8_REV_NV 0x86db
3639#define GL_DSDT_MAG_INTENSITY_NV 0x86dc
3640#define GL_SHADER_CONSISTENT_NV 0x86dd
3641#define GL_TEXTURE_SHADER_NV 0x86de
3642#define GL_SHADER_OPERATION_NV 0x86df
3643#define GL_CULL_MODES_NV 0x86e0
3644#define GL_OFFSET_TEXTURE_MATRIX_NV 0x86e1
3645#define GL_OFFSET_TEXTURE_SCALE_NV 0x86e2
3646#define GL_OFFSET_TEXTURE_BIAS_NV 0x86e3
3647#define GL_OFFSET_TEXTURE_2D_MATRIX_NV GL_OFFSET_TEXTURE_MATRIX_NV
3648#define GL_OFFSET_TEXTURE_2D_SCALE_NV GL_OFFSET_TEXTURE_SCALE_NV
3649#define GL_OFFSET_TEXTURE_2D_BIAS_NV GL_OFFSET_TEXTURE_BIAS_NV
3650#define GL_PREVIOUS_TEXTURE_INPUT_NV 0x86e4
3651#define GL_CONST_EYE_NV 0x86e5
3652#define GL_PASS_THROUGH_NV 0x86e6
3653#define GL_CULL_FRAGMENT_NV 0x86e7
3654#define GL_OFFSET_TEXTURE_2D_NV 0x86e8
3655#define GL_DEPENDENT_AR_TEXTURE_2D_NV 0x86e9
3656#define GL_DEPENDENT_GB_TEXTURE_2D_NV 0x86ea
3657#define GL_DOT_PRODUCT_NV 0x86ec
3658#define GL_DOT_PRODUCT_DEPTH_REPLACE_NV 0x86ed
3659#define GL_DOT_PRODUCT_TEXTURE_2D_NV 0x86ee
3660#define GL_DOT_PRODUCT_TEXTURE_CUBE_MAP_NV 0x86f0
3661#define GL_DOT_PRODUCT_DIFFUSE_CUBE_MAP_NV 0x86f1
3662#define GL_DOT_PRODUCT_REFLECT_CUBE_MAP_NV 0x86f2
3663#define GL_DOT_PRODUCT_CONST_EYE_REFLECT_CUBE_MAP_NV 0x86f3
3664#define GL_HILO_NV 0x86f4
3665#define GL_DSDT_NV 0x86f5
3666#define GL_DSDT_MAG_NV 0x86f6
3667#define GL_DSDT_MAG_VIB_NV 0x86f7
3668#define GL_HILO16_NV 0x86f8
3669#define GL_SIGNED_HILO_NV 0x86f9
3670#define GL_SIGNED_HILO16_NV 0x86fa
3671#define GL_SIGNED_RGBA_NV 0x86fb
3672#define GL_SIGNED_RGBA8_NV 0x86fc
3673#define GL_SIGNED_RGB_NV 0x86fe
3674#define GL_SIGNED_RGB8_NV 0x86ff
3675#define GL_SIGNED_LUMINANCE_NV 0x8701
3676#define GL_SIGNED_LUMINANCE8_NV 0x8702
3677#define GL_SIGNED_LUMINANCE_ALPHA_NV 0x8703
3678#define GL_SIGNED_LUMINANCE8_ALPHA8_NV 0x8704
3679#define GL_SIGNED_ALPHA_NV 0x8705
3680#define GL_SIGNED_ALPHA8_NV 0x8706
3681#define GL_SIGNED_INTENSITY_NV 0x8707
3682#define GL_SIGNED_INTENSITY8_NV 0x8708
3683#define GL_DSDT8_NV 0x8709
3684#define GL_DSDT8_MAG8_NV 0x870a
3685#define GL_DSDT8_MAG8_INTENSITY8_NV 0x870b
3686#define GL_SIGNED_RGB_UNSIGNED_ALPHA_NV 0x870c
3687#define GL_SIGNED_RGB8_UNSIGNED_ALPHA8_NV 0x870d
3688#define GL_HI_SCALE_NV 0x870e
3689#define GL_LO_SCALE_NV 0x870f
3690#define GL_DS_SCALE_NV 0x8710
3691#define GL_DT_SCALE_NV 0x8711
3692#define GL_MAGNITUDE_SCALE_NV 0x8712
3693#define GL_VIBRANCE_SCALE_NV 0x8713
3694#define GL_HI_BIAS_NV 0x8714
3695#define GL_LO_BIAS_NV 0x8715
3696#define GL_DS_BIAS_NV 0x8716
3697#define GL_DT_BIAS_NV 0x8717
3698#define GL_MAGNITUDE_BIAS_NV 0x8718
3699#define GL_VIBRANCE_BIAS_NV 0x8719
3700#define GL_TEXTURE_BORDER_VALUES_NV 0x871a
3701#define GL_TEXTURE_HI_SIZE_NV 0x871b
3702#define GL_TEXTURE_LO_SIZE_NV 0x871c
3703#define GL_TEXTURE_DS_SIZE_NV 0x871d
3704#define GL_TEXTURE_DT_SIZE_NV 0x871e
3705#define GL_TEXTURE_MAG_SIZE_NV 0x871f
3706#endif
3707
3708/* GL_NV_texture_shader2 */
3709#ifndef GL_NV_texture_shader2
3710#define GL_NV_texture_shader2 1
3711#define GL_DOT_PRODUCT_TEXTURE_3D_NV 0x86ef
3712#endif
3713
3714/* GL_NV_vertex_program2_option */
3715#ifndef GL_NV_vertex_program2_option
3716#define GL_NV_vertex_program2_option 1
3717#define GL_MAX_PROGRAM_EXEC_INSTRUCTIONS_NV 0x88f4
3718#define GL_MAX_PROGRAM_CALL_DEPTH_NV 0x88f5
3719#endif
3720
3721/* GL_SGIS_generate_mipmap */
3722#ifndef GLX_SGIS_generate_mipmap
3723#define GLX_SGIS_generate_mipmap 1
3724#define GL_GENERATE_MIPMAP_SGIS 0x8191
3725#define GL_GENERATE_MIPMAP_HINT_SGIS 0x8192
3726#endif
3727
3728/* GLX_SGI_video_sync */
3729typedef int (WINE_GLAPI *PGLXFNGETVIDEOSYNCSGIPROC)(unsigned int *);
3730typedef int (WINE_GLAPI *PGLXFNWAITVIDEOSYNCSGIPROC)(int, int, unsigned int *);
3731
3732/* WGL_ARB_extensions_string */
3733typedef const char *(WINAPI *WINED3D_PFNWGLGETEXTENSIONSSTRINGARBPROC)(HDC hdc);
3734
3735/* WGL_ARB_multisample */
3736#ifndef WGL_ARB_multisample
3737#define WGL_ARB_multisample 1
3738#define WGL_SAMPLE_BUFFERS_ARB 0x2041
3739#define WGL_SAMPLES_ARB 0x2042
3740#endif
3741
3742/* WGL_ARB_pixel_format */
3743#ifndef WGL_ARB_pixel_format
3744#define WGL_ARB_pixel_format 1
3745#define WGL_NUMBER_PIXEL_FORMATS_ARB 0x2000
3746#define WGL_DRAW_TO_WINDOW_ARB 0x2001
3747#define WGL_DRAW_TO_BITMAP_ARB 0x2002
3748#define WGL_ACCELERATION_ARB 0x2003
3749#define WGL_NEED_PALETTE_ARB 0x2004
3750#define WGL_NEED_SYSTEM_PALETTE_ARB 0x2005
3751#define WGL_SWAP_LAYER_BUFFERS_ARB 0x2006
3752#define WGL_SWAP_METHOD_ARB 0x2007
3753#define WGL_NUMBER_OVERLAYS_ARB 0x2008
3754#define WGL_NUMBER_UNDERLAYS_ARB 0x2009
3755#define WGL_TRANSPARENT_ARB 0x200a
3756#define WGL_TRANSPARENT_RED_VALUE_ARB 0x2037
3757#define WGL_TRANSPARENT_GREEN_VALUE_ARB 0x2038
3758#define WGL_TRANSPARENT_BLUE_VALUE_ARB 0x2039
3759#define WGL_TRANSPARENT_ALPHA_VALUE_ARB 0x203a
3760#define WGL_TRANSPARENT_INDEX_VALUE_ARB 0x203b
3761#define WGL_SHARE_DEPTH_ARB 0x200c
3762#define WGL_SHARE_STENCIL_ARB 0x200d
3763#define WGL_SHARE_ACCUM_ARB 0x200e
3764#define WGL_SUPPORT_GDI_ARB 0x200f
3765#define WGL_SUPPORT_OPENGL_ARB 0x2010
3766#define WGL_DOUBLE_BUFFER_ARB 0x2011
3767#define WGL_STEREO_ARB 0x2012
3768#define WGL_PIXEL_TYPE_ARB 0x2013
3769#define WGL_COLOR_BITS_ARB 0x2014
3770#define WGL_RED_BITS_ARB 0x2015
3771#define WGL_RED_SHIFT_ARB 0x2016
3772#define WGL_GREEN_BITS_ARB 0x2017
3773#define WGL_GREEN_SHIFT_ARB 0x2018
3774#define WGL_BLUE_BITS_ARB 0x2019
3775#define WGL_BLUE_SHIFT_ARB 0x201a
3776#define WGL_ALPHA_BITS_ARB 0x201b
3777#define WGL_ALPHA_SHIFT_ARB 0x201c
3778#define WGL_ACCUM_BITS_ARB 0x201d
3779#define WGL_ACCUM_RED_BITS_ARB 0x201e
3780#define WGL_ACCUM_GREEN_BITS_ARB 0x201f
3781#define WGL_ACCUM_BLUE_BITS_ARB 0x2020
3782#define WGL_ACCUM_ALPHA_BITS_ARB 0x2021
3783#define WGL_DEPTH_BITS_ARB 0x2022
3784#define WGL_STENCIL_BITS_ARB 0x2023
3785#define WGL_AUX_BUFFERS_ARB 0x2024
3786#define WGL_NO_ACCELERATION_ARB 0x2025
3787#define WGL_GENERIC_ACCELERATION_ARB 0x2026
3788#define WGL_FULL_ACCELERATION_ARB 0x2027
3789#define WGL_SWAP_EXCHANGE_ARB 0x2028
3790#define WGL_SWAP_COPY_ARB 0x2029
3791#define WGL_SWAP_UNDEFINED_ARB 0x202a
3792#define WGL_TYPE_RGBA_ARB 0x202b
3793#define WGL_TYPE_COLORINDEX_ARB 0x202c
3794#endif
3795typedef BOOL (WINAPI *WINED3D_PFNWGLGETPIXELFORMATATTRIBIVARBPROC)(HDC hdc, int iPixelFormat,
3796 int iLayerPlane, UINT nAttributes, const int *piAttributes, int *piValues);
3797typedef BOOL (WINAPI *WINED3D_PFNWGLGETPIXELFORMATATTRIBFVARBPROC)(HDC hdc, int iPixelFormat,
3798 int iLayerPlane, UINT nAttributes, const int *piAttributes, FLOAT *pfValues);
3799typedef BOOL (WINAPI *WINED3D_PFNWGLCHOOSEPIXELFORMATARBPROC)(HDC hdc, const int *piAttribIList,
3800 const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
3801
3802/* WGL_ARB_pixel_format_float */
3803#ifndef WGL_ARB_pixel_format_float
3804#define WGL_ARB_pixel_format_float 1
3805#define WGL_TYPE_RGBA_FLOAT_ARB 0x21a0
3806#endif
3807
3808/* WGL_WINE_pixel_format_passthrough */
3809typedef BOOL (WINAPI *WINED3D_PFNWGLSETPIXELFORMATWINE)(HDC hdc, int iPixelFormat,
3810 const PIXELFORMATDESCRIPTOR *ppfd);
3811
3812/*Global resource ids sharing*/
3813#define GL_SHARE_CONTEXT_RESOURCES_CR 0x8B27
3814/*do flush for the command buffer of a thread the context was previusly current for*/
3815#define GL_FLUSH_ON_THREAD_SWITCH_CR 0x8B28
3816/*report that the shared resource is used by this context, the parameter value is a texture name*/
3817#define GL_RCUSAGE_TEXTURE_SET_CR 0x8B29
3818/*report that the shared resource is no longer used by this context, the parameter value is a texture name*/
3819#define GL_RCUSAGE_TEXTURE_CLEAR_CR 0x8B2A
3820/*configures host to create windows initially hidden*/
3821#define GL_HOST_WND_CREATED_HIDDEN 0x8B2B
3822
3823typedef void (WINE_GLAPI *PGLFNCHROMIUMPARAMETERUCR)(GLenum param, GLint value);
3824
3825# define VBOXWDDM_GL_EXT_FUNCS_GEN \
3826 USE_GL_FUNC(PGLFNCHROMIUMPARAMETERUCR, \
3827 glChromiumParameteriCR, VBOX_SHARED_CONTEXTS, NULL) \
3828
3829
3830#define GL_EXT_FUNCS_GEN \
3831 /* GL_APPLE_fence */ \
3832 USE_GL_FUNC(PGLFNGENFENCESAPPLEPROC, \
3833 glGenFencesAPPLE, APPLE_FENCE, NULL) \
3834 USE_GL_FUNC(PGLFNDELETEFENCESAPPLEPROC, \
3835 glDeleteFencesAPPLE, APPLE_FENCE, NULL) \
3836 USE_GL_FUNC(PGLFNSETFENCEAPPLEPROC, \
3837 glSetFenceAPPLE, APPLE_FENCE, NULL) \
3838 USE_GL_FUNC(PGLFNTESTFENCEAPPLEPROC, \
3839 glTestFenceAPPLE, APPLE_FENCE, NULL) \
3840 USE_GL_FUNC(PGLFNFINISHFENCEAPPLEPROC, \
3841 glFinishFenceAPPLE, APPLE_FENCE, NULL) \
3842 USE_GL_FUNC(PGLFNISFENCEAPPLEPROC, \
3843 glIsFenceAPPLE, APPLE_FENCE, NULL) \
3844 USE_GL_FUNC(PGLFNTESTOBJECTAPPLEPROC, \
3845 glTestObjectAPPLE, APPLE_FENCE, NULL) \
3846 USE_GL_FUNC(PGLFNFINISHOBJECTAPPLEPROC, \
3847 glFinishObjectAPPLE, APPLE_FENCE, NULL) \
3848 /* GL_APPLE_flush_buffer_range */ \
3849 USE_GL_FUNC(PGLFNBUFFERPARAMETERIAPPLE, \
3850 glBufferParameteriAPPLE, APPLE_FLUSH_BUFFER_RANGE, NULL) \
3851 USE_GL_FUNC(PGLFNFLUSHMAPPEDBUFFERRANGEAPPLE, \
3852 glFlushMappedBufferRangeAPPLE, APPLE_FLUSH_BUFFER_RANGE, NULL) \
3853 /* GL_APPLE_flush_render */ \
3854 USE_GL_FUNC(PGLFNFLUSHRENDERAPPLEPROC, \
3855 glFlushRenderAPPLE, APPLE_FLUSH_RENDER, NULL) \
3856 USE_GL_FUNC(PGLFNFINISHRENDERAPPLEPROC, \
3857 glFinishRenderAPPLE, APPLE_FLUSH_RENDER, NULL) \
3858 /* GL_ARB_color_buffer_float */ \
3859 USE_GL_FUNC(PGLFNCLAMPCOLORARBPROC, \
3860 glClampColorARB, ARB_COLOR_BUFFER_FLOAT, NULL) \
3861 /* GL_ARB_draw_buffers */ \
3862 USE_GL_FUNC(PGLFNDRAWBUFFERSARBPROC, \
3863 glDrawBuffersARB, ARB_DRAW_BUFFERS, NULL) \
3864 /* GL_ARB_framebuffer_object */ \
3865 USE_GL_FUNC(PGLFNGLISRENDERBUFFERPROC, \
3866 glIsRenderbuffer, ARB_FRAMEBUFFER_OBJECT, NULL) \
3867 USE_GL_FUNC(PGLFNGLBINDRENDERBUFFERPROC, \
3868 glBindRenderbuffer, ARB_FRAMEBUFFER_OBJECT, NULL) \
3869 USE_GL_FUNC(PGLFNGLDELETERENDERBUFFERSPROC, \
3870 glDeleteRenderbuffers, ARB_FRAMEBUFFER_OBJECT, NULL) \
3871 USE_GL_FUNC(PGLFNGLGENRENDERBUFFERSPROC, \
3872 glGenRenderbuffers, ARB_FRAMEBUFFER_OBJECT, NULL) \
3873 USE_GL_FUNC(PGLFNGLRENDERBUFFERSTORAGEPROC, \
3874 glRenderbufferStorage, ARB_FRAMEBUFFER_OBJECT, NULL) \
3875 USE_GL_FUNC(PGLFNRENDERBUFFERSTORAGEMULTISAMPLEPROC, \
3876 glRenderbufferStorageMultisample, ARB_FRAMEBUFFER_OBJECT, NULL) \
3877 USE_GL_FUNC(PGLFNGLGETRENDERBUFFERPARAMETERIVPROC, \
3878 glGetRenderbufferParameteriv, ARB_FRAMEBUFFER_OBJECT, NULL) \
3879 USE_GL_FUNC(PGLFNGLISFRAMEBUFFERPROC, \
3880 glIsFramebuffer, ARB_FRAMEBUFFER_OBJECT, NULL) \
3881 USE_GL_FUNC(PGLFNGLBINDFRAMEBUFFERPROC, \
3882 glBindFramebuffer, ARB_FRAMEBUFFER_OBJECT, NULL) \
3883 USE_GL_FUNC(PGLFNGLDELETEFRAMEBUFFERSPROC, \
3884 glDeleteFramebuffers, ARB_FRAMEBUFFER_OBJECT, NULL) \
3885 USE_GL_FUNC(PGLFNGLGENFRAMEBUFFERSPROC, \
3886 glGenFramebuffers, ARB_FRAMEBUFFER_OBJECT, NULL) \
3887 USE_GL_FUNC(PGLFNGLCHECKFRAMEBUFFERSTATUSPROC, \
3888 glCheckFramebufferStatus, ARB_FRAMEBUFFER_OBJECT, NULL) \
3889 USE_GL_FUNC(PGLFNGLFRAMEBUFFERTEXTURE1DPROC, \
3890 glFramebufferTexture1D, ARB_FRAMEBUFFER_OBJECT, NULL) \
3891 USE_GL_FUNC(PGLFNGLFRAMEBUFFERTEXTURE2DPROC, \
3892 glFramebufferTexture2D, ARB_FRAMEBUFFER_OBJECT, NULL) \
3893 USE_GL_FUNC(PGLFNGLFRAMEBUFFERTEXTURE3DPROC, \
3894 glFramebufferTexture3D, ARB_FRAMEBUFFER_OBJECT, NULL) \
3895 USE_GL_FUNC(PGLFNGLFRAMEBUFFERTEXTURELAYERPROC, \
3896 glFramebufferTextureLayer, ARB_FRAMEBUFFER_OBJECT, NULL) \
3897 USE_GL_FUNC(PGLFNGLFRAMEBUFFERRENDERBUFFERPROC, \
3898 glFramebufferRenderbuffer, ARB_FRAMEBUFFER_OBJECT, NULL) \
3899 USE_GL_FUNC(PGLFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC, \
3900 glGetFramebufferAttachmentParameteriv, ARB_FRAMEBUFFER_OBJECT, NULL) \
3901 USE_GL_FUNC(PGLFNGLBLITFRAMEBUFFERPROC, \
3902 glBlitFramebuffer, ARB_FRAMEBUFFER_OBJECT, NULL) \
3903 USE_GL_FUNC(PGLFNGLGENERATEMIPMAPPROC, \
3904 glGenerateMipmap, ARB_FRAMEBUFFER_OBJECT, NULL) \
3905 /* GL_ARB_geometry_shader4 */ \
3906 USE_GL_FUNC(PGLFNPROGRAMPARAMETERIARBPROC, \
3907 glProgramParameteriARB, ARB_GEOMETRY_SHADER4, NULL) \
3908 USE_GL_FUNC(PGLFNFRAMEBUFFERTEXTUREARBPROC, \
3909 glFramebufferTextureARB, ARB_GEOMETRY_SHADER4, NULL) \
3910 USE_GL_FUNC(PGLFNFRAMEBUFFERTEXTURELAYERARBPROC, \
3911 glFramebufferTextureLayerARB, ARB_GEOMETRY_SHADER4, NULL) \
3912 USE_GL_FUNC(PGLFNFRAMEBUFFERTEXTUREFACEARBPROC, \
3913 glFramebufferTextureFaceARB, ARB_GEOMETRY_SHADER4, NULL) \
3914 /* GL_ARB_imaging, GL_EXT_blend_minmax */ \
3915 USE_GL_FUNC(PGLFNBLENDCOLORPROC, \
3916 glBlendColorEXT, EXT_BLEND_COLOR, NULL) \
3917 USE_GL_FUNC(PGLFNBLENDEQUATIONPROC, \
3918 glBlendEquationEXT, EXT_BLEND_MINMAX, NULL) \
3919 /* GL_ARB_map_buffer_range */ \
3920 USE_GL_FUNC(PGLFNMAPBUFFERRANGEPROC, \
3921 glMapBufferRange, ARB_MAP_BUFFER_RANGE, NULL) \
3922 USE_GL_FUNC(PGLFNFLUSHMAPPEDBUFFERRANGEPROC, \
3923 glFlushMappedBufferRange, ARB_MAP_BUFFER_RANGE, NULL) \
3924 /* GL_ARB_multisample */ \
3925 USE_GL_FUNC(WINED3D_PFNGLSAMPLECOVERAGEARBPROC, \
3926 glSampleCoverageARB, ARB_MULTISAMPLE, NULL) \
3927 /* GL_ARB_multitexture */ \
3928 USE_GL_FUNC(WINED3D_PFNGLACTIVETEXTUREARBPROC, \
3929 glActiveTextureARB, ARB_MULTITEXTURE, NULL) \
3930 USE_GL_FUNC(WINED3D_PFNGLCLIENTACTIVETEXTUREARBPROC, \
3931 glClientActiveTextureARB, ARB_MULTITEXTURE, NULL) \
3932 USE_GL_FUNC(WINED3D_PFNGLMULTITEXCOORD1FARBPROC, \
3933 glMultiTexCoord1fARB, ARB_MULTITEXTURE, NULL) \
3934 USE_GL_FUNC(WINED3D_PFNGLMULTITEXCOORD1FVARBPROC, \
3935 glMultiTexCoord1fvARB, ARB_MULTITEXTURE, NULL) \
3936 USE_GL_FUNC(WINED3D_PFNGLMULTITEXCOORD2FARBPROC, \
3937 glMultiTexCoord2fARB, ARB_MULTITEXTURE, NULL) \
3938 USE_GL_FUNC(WINED3D_PFNGLMULTITEXCOORD2FVARBPROC, \
3939 glMultiTexCoord2fvARB, ARB_MULTITEXTURE, NULL) \
3940 USE_GL_FUNC(WINED3D_PFNGLMULTITEXCOORD3FARBPROC, \
3941 glMultiTexCoord3fARB, ARB_MULTITEXTURE, NULL) \
3942 USE_GL_FUNC(WINED3D_PFNGLMULTITEXCOORD3FVARBPROC, \
3943 glMultiTexCoord3fvARB, ARB_MULTITEXTURE, NULL) \
3944 USE_GL_FUNC(WINED3D_PFNGLMULTITEXCOORD4FARBPROC, \
3945 glMultiTexCoord4fARB, ARB_MULTITEXTURE, NULL) \
3946 USE_GL_FUNC(WINED3D_PFNGLMULTITEXCOORD4FVARBPROC, \
3947 glMultiTexCoord4fvARB, ARB_MULTITEXTURE, NULL) \
3948 USE_GL_FUNC(WINED3D_PFNGLMULTITEXCOORD2SVARBPROC, \
3949 glMultiTexCoord2svARB, ARB_MULTITEXTURE, NULL) \
3950 USE_GL_FUNC(WINED3D_PFNGLMULTITEXCOORD4SVARBPROC, \
3951 glMultiTexCoord4svARB, ARB_MULTITEXTURE, NULL) \
3952 /* GL_ARB_occlusion_query */ \
3953 USE_GL_FUNC(PGLFNGENQUERIESARBPROC, \
3954 glGenQueriesARB, ARB_OCCLUSION_QUERY, NULL) \
3955 USE_GL_FUNC(PGLFNDELETEQUERIESARBPROC, \
3956 glDeleteQueriesARB, ARB_OCCLUSION_QUERY, NULL) \
3957 USE_GL_FUNC(PGLFNBEGINQUERYARBPROC, \
3958 glBeginQueryARB, ARB_OCCLUSION_QUERY, NULL) \
3959 USE_GL_FUNC(PGLFNENDQUERYARBPROC, \
3960 glEndQueryARB, ARB_OCCLUSION_QUERY, NULL) \
3961 USE_GL_FUNC(PGLFNGETQUERYOBJECTIVARBPROC, \
3962 glGetQueryObjectivARB, ARB_OCCLUSION_QUERY, NULL) \
3963 USE_GL_FUNC(PGLFNGETQUERYOBJECTUIVARBPROC, \
3964 glGetQueryObjectuivARB, ARB_OCCLUSION_QUERY, NULL) \
3965 /* GL_ARB_point_parameters */ \
3966 USE_GL_FUNC(PGLFNGLPOINTPARAMETERFARBPROC, \
3967 glPointParameterfARB, ARB_POINT_PARAMETERS, NULL) \
3968 USE_GL_FUNC(PGLFNGLPOINTPARAMETERFVARBPROC, \
3969 glPointParameterfvARB, ARB_POINT_PARAMETERS, NULL) \
3970 /* GL_ARB_provoking_vertex */ \
3971 USE_GL_FUNC(PGLFNGLPROVOKINGVERTEXPROC, \
3972 glProvokingVertex, ARB_PROVOKING_VERTEX, NULL) \
3973 /* GL_ARB_shader_objects */ \
3974 USE_GL_FUNC(WINED3D_PFNGLGETOBJECTPARAMETERIVARBPROC, \
3975 glGetObjectParameterivARB, ARB_SHADER_OBJECTS, NULL) \
3976 USE_GL_FUNC(WINED3D_PFNGLGETOBJECTPARAMETERFVARBPROC, \
3977 glGetObjectParameterfvARB, ARB_SHADER_OBJECTS, NULL) \
3978 USE_GL_FUNC(WINED3D_PFNGLGETUNIFORMLOCATIONARBPROC, \
3979 glGetUniformLocationARB, ARB_SHADER_OBJECTS, NULL) \
3980 USE_GL_FUNC(WINED3D_PFNGLGETACTIVEUNIFORMARBPROC, \
3981 glGetActiveUniformARB, ARB_SHADER_OBJECTS, NULL) \
3982 USE_GL_FUNC(WINED3D_PFNGLUNIFORM1IARBPROC, \
3983 glUniform1iARB, ARB_SHADER_OBJECTS, NULL) \
3984 USE_GL_FUNC(WINED3D_PFNGLUNIFORM2IARBPROC, \
3985 glUniform2iARB, ARB_SHADER_OBJECTS, NULL) \
3986 USE_GL_FUNC(WINED3D_PFNGLUNIFORM3IARBPROC, \
3987 glUniform3iARB, ARB_SHADER_OBJECTS, NULL) \
3988 USE_GL_FUNC(WINED3D_PFNGLUNIFORM4IARBPROC, \
3989 glUniform4iARB, ARB_SHADER_OBJECTS, NULL) \
3990 USE_GL_FUNC(WINED3D_PFNGLUNIFORM1FARBPROC, \
3991 glUniform1fARB, ARB_SHADER_OBJECTS, NULL) \
3992 USE_GL_FUNC(WINED3D_PFNGLUNIFORM2FARBPROC, \
3993 glUniform2fARB, ARB_SHADER_OBJECTS, NULL) \
3994 USE_GL_FUNC(WINED3D_PFNGLUNIFORM3FARBPROC, \
3995 glUniform3fARB, ARB_SHADER_OBJECTS, NULL) \
3996 USE_GL_FUNC(WINED3D_PFNGLUNIFORM4FARBPROC, \
3997 glUniform4fARB, ARB_SHADER_OBJECTS, NULL) \
3998 USE_GL_FUNC(WINED3D_PFNGLUNIFORM1FVARBPROC, \
3999 glUniform1fvARB, ARB_SHADER_OBJECTS, NULL) \
4000 USE_GL_FUNC(WINED3D_PFNGLUNIFORM2FVARBPROC, \
4001 glUniform2fvARB, ARB_SHADER_OBJECTS, NULL) \
4002 USE_GL_FUNC(WINED3D_PFNGLUNIFORM3FVARBPROC, \
4003 glUniform3fvARB, ARB_SHADER_OBJECTS, NULL) \
4004 USE_GL_FUNC(WINED3D_PFNGLUNIFORM4FVARBPROC, \
4005 glUniform4fvARB, ARB_SHADER_OBJECTS, NULL) \
4006 USE_GL_FUNC(WINED3D_PFNGLUNIFORM1IVARBPROC, \
4007 glUniform1ivARB, ARB_SHADER_OBJECTS, NULL) \
4008 USE_GL_FUNC(WINED3D_PFNGLUNIFORM2IVARBPROC, \
4009 glUniform2ivARB, ARB_SHADER_OBJECTS, NULL) \
4010 USE_GL_FUNC(WINED3D_PFNGLUNIFORM3IVARBPROC, \
4011 glUniform3ivARB, ARB_SHADER_OBJECTS, NULL) \
4012 USE_GL_FUNC(WINED3D_PFNGLUNIFORM4IVARBPROC, \
4013 glUniform4ivARB, ARB_SHADER_OBJECTS, NULL) \
4014 USE_GL_FUNC(WINED3D_PFNGLUNIFORMMATRIX2FVARBPROC, \
4015 glUniformMatrix2fvARB, ARB_SHADER_OBJECTS, NULL) \
4016 USE_GL_FUNC(WINED3D_PFNGLUNIFORMMATRIX3FVARBPROC, \
4017 glUniformMatrix3fvARB, ARB_SHADER_OBJECTS, NULL) \
4018 USE_GL_FUNC(WINED3D_PFNGLUNIFORMMATRIX4FVARBPROC, \
4019 glUniformMatrix4fvARB, ARB_SHADER_OBJECTS, NULL) \
4020 USE_GL_FUNC(WINED3D_PFNGLGETUNIFORMFVARBPROC, \
4021 glGetUniformfvARB, ARB_SHADER_OBJECTS, NULL) \
4022 USE_GL_FUNC(WINED3D_PFNGLGETUNIFORMIVARBPROC, \
4023 glGetUniformivARB, ARB_SHADER_OBJECTS, NULL) \
4024 USE_GL_FUNC(WINED3D_PFNGLGETINFOLOGARBPROC, \
4025 glGetInfoLogARB, ARB_SHADER_OBJECTS, NULL) \
4026 USE_GL_FUNC(WINED3D_PFNGLUSEPROGRAMOBJECTARBPROC, \
4027 glUseProgramObjectARB, ARB_SHADER_OBJECTS, NULL) \
4028 USE_GL_FUNC(WINED3D_PFNGLCREATESHADEROBJECTARBPROC, \
4029 glCreateShaderObjectARB, ARB_SHADER_OBJECTS, NULL) \
4030 USE_GL_FUNC(WINED3D_PFNGLSHADERSOURCEARBPROC, \
4031 glShaderSourceARB, ARB_SHADER_OBJECTS, NULL) \
4032 USE_GL_FUNC(WINED3D_PFNGLCOMPILESHADERARBPROC, \
4033 glCompileShaderARB, ARB_SHADER_OBJECTS, NULL) \
4034 USE_GL_FUNC(WINED3D_PFNGLCREATEPROGRAMOBJECTARBPROC, \
4035 glCreateProgramObjectARB, ARB_SHADER_OBJECTS, NULL) \
4036 USE_GL_FUNC(WINED3D_PFNGLATTACHOBJECTARBPROC, \
4037 glAttachObjectARB, ARB_SHADER_OBJECTS, NULL) \
4038 USE_GL_FUNC(WINED3D_PFNGLLINKPROGRAMARBPROC, \
4039 glLinkProgramARB, ARB_SHADER_OBJECTS, NULL) \
4040 USE_GL_FUNC(WINED3D_PFNGLDETACHOBJECTARBPROC, \
4041 glDetachObjectARB, ARB_SHADER_OBJECTS, NULL) \
4042 USE_GL_FUNC(WINED3D_PFNGLDELETEOBJECTARBPROC, \
4043 glDeleteObjectARB, ARB_SHADER_OBJECTS, NULL) \
4044 USE_GL_FUNC(WINED3D_PFNGLVALIDATEPROGRAMARBPROC, \
4045 glValidateProgramARB, ARB_SHADER_OBJECTS, NULL) \
4046 USE_GL_FUNC(WINED3D_PFNGLGETATTACHEDOBJECTSARBPROC, \
4047 glGetAttachedObjectsARB, ARB_SHADER_OBJECTS, NULL) \
4048 USE_GL_FUNC(WINED3D_PFNGLGETHANDLEARBPROC, \
4049 glGetHandleARB, ARB_SHADER_OBJECTS, NULL) \
4050 USE_GL_FUNC(WINED3D_PFNGLGETSHADERSOURCEARBPROC, \
4051 glGetShaderSourceARB, ARB_SHADER_OBJECTS, NULL) \
4052 USE_GL_FUNC(WINED3D_PFNGLBINDATTRIBLOCATIONARBPROC, \
4053 glBindAttribLocationARB, ARB_SHADER_OBJECTS, NULL) \
4054 USE_GL_FUNC(WINED3D_PFNGLGETATTRIBLOCATIONARBPROC, \
4055 glGetAttribLocationARB, ARB_SHADER_OBJECTS, NULL) \
4056 /* GL_ARB_sync */ \
4057 USE_GL_FUNC(PGLFNFENCESYNCPROC, \
4058 glFenceSync, ARB_SYNC, NULL) \
4059 USE_GL_FUNC(PGLFNISSYNCPROC, \
4060 glIsSync, ARB_SYNC, NULL) \
4061 USE_GL_FUNC(PGLFNDELETESYNCPROC, \
4062 glDeleteSync, ARB_SYNC, NULL) \
4063 USE_GL_FUNC(PGLFNCLIENTWAITSYNCPROC, \
4064 glClientWaitSync, ARB_SYNC, NULL) \
4065 USE_GL_FUNC(PGLFNWAITSYNCPROC, \
4066 glWaitSync, ARB_SYNC, NULL) \
4067 USE_GL_FUNC(PGLFNGETINTEGER64VPROC, \
4068 glGetInteger64v, ARB_SYNC, NULL) \
4069 USE_GL_FUNC(PGLFNGETSYNCIVPROC, \
4070 glGetSynciv, ARB_SYNC, NULL) \
4071 /* GL_ARB_texture_compression */ \
4072 USE_GL_FUNC(PGLFNCOMPRESSEDTEXIMAGE2DPROC, \
4073 glCompressedTexImage2DARB, ARB_TEXTURE_COMPRESSION, NULL) \
4074 USE_GL_FUNC(PGLFNCOMPRESSEDTEXIMAGE3DPROC, \
4075 glCompressedTexImage3DARB, ARB_TEXTURE_COMPRESSION, NULL) \
4076 USE_GL_FUNC(PGLFNCOMPRESSEDTEXSUBIMAGE2DPROC, \
4077 glCompressedTexSubImage2DARB, ARB_TEXTURE_COMPRESSION, NULL) \
4078 USE_GL_FUNC(PGLFNCOMPRESSEDTEXSUBIMAGE3DPROC, \
4079 glCompressedTexSubImage3DARB, ARB_TEXTURE_COMPRESSION, NULL) \
4080 USE_GL_FUNC(PGLFNGETCOMPRESSEDTEXIMAGEPROC, \
4081 glGetCompressedTexImageARB, ARB_TEXTURE_COMPRESSION, NULL) \
4082 /* GL_ARB_vertex_blend */ \
4083 USE_GL_FUNC(PGLFNGLWEIGHTPOINTERARB, \
4084 glWeightPointerARB, ARB_VERTEX_BLEND, NULL) \
4085 USE_GL_FUNC(PGLFNGLWEIGHTBV, \
4086 glWeightbvARB, ARB_VERTEX_BLEND, NULL) \
4087 USE_GL_FUNC(PGLFNGLWEIGHTSV, \
4088 glWeightsvARB, ARB_VERTEX_BLEND, NULL) \
4089 USE_GL_FUNC(PGLFNGLWEIGHTIV, \
4090 glWeightivARB, ARB_VERTEX_BLEND, NULL) \
4091 USE_GL_FUNC(PGLFNGLWEIGHTFV, \
4092 glWeightfvARB, ARB_VERTEX_BLEND, NULL) \
4093 USE_GL_FUNC(PGLFNGLWEIGHTDV, \
4094 glWeightdvARB, ARB_VERTEX_BLEND, NULL) \
4095 USE_GL_FUNC(PGLFNGLWEIGHTUBV, \
4096 glWeightubvARB, ARB_VERTEX_BLEND, NULL) \
4097 USE_GL_FUNC(PGLFNGLWEIGHTUSV, \
4098 glWeightusvARB, ARB_VERTEX_BLEND, NULL) \
4099 USE_GL_FUNC(PGLFNGLWEIGHTUIV, \
4100 glWeightuivARB, ARB_VERTEX_BLEND, NULL) \
4101 USE_GL_FUNC(PGLFNGLVERTEXBLENDARB, \
4102 glVertexBlendARB, ARB_VERTEX_BLEND, NULL) \
4103 /* GL_ARB_vertex_buffer_object */ \
4104 USE_GL_FUNC(PGLFNBINDBUFFERARBPROC, \
4105 glBindBufferARB, ARB_VERTEX_BUFFER_OBJECT, NULL) \
4106 USE_GL_FUNC(PGLFNDELETEBUFFERSARBPROC, \
4107 glDeleteBuffersARB, ARB_VERTEX_BUFFER_OBJECT, NULL) \
4108 USE_GL_FUNC(PGLFNGENBUFFERSARBPROC, \
4109 glGenBuffersARB, ARB_VERTEX_BUFFER_OBJECT, NULL) \
4110 USE_GL_FUNC(PGLFNISBUFFERARBPROC, \
4111 glIsBufferARB, ARB_VERTEX_BUFFER_OBJECT, NULL) \
4112 USE_GL_FUNC(PGLFNBUFFERDATAARBPROC, \
4113 glBufferDataARB, ARB_VERTEX_BUFFER_OBJECT, NULL) \
4114 USE_GL_FUNC(PGLFNBUFFERSUBDATAARBPROC, \
4115 glBufferSubDataARB, ARB_VERTEX_BUFFER_OBJECT, NULL) \
4116 USE_GL_FUNC(PGLFNGETBUFFERSUBDATAARBPROC, \
4117 glGetBufferSubDataARB, ARB_VERTEX_BUFFER_OBJECT, NULL) \
4118 USE_GL_FUNC(PGLFNMAPBUFFERARBPROC, \
4119 glMapBufferARB, ARB_VERTEX_BUFFER_OBJECT, NULL) \
4120 USE_GL_FUNC(PGLFNUNMAPBUFFERARBPROC, \
4121 glUnmapBufferARB, ARB_VERTEX_BUFFER_OBJECT, NULL) \
4122 USE_GL_FUNC(PGLFNGETBUFFERPARAMETERIVARBPROC, \
4123 glGetBufferParameterivARB, ARB_VERTEX_BUFFER_OBJECT, NULL) \
4124 USE_GL_FUNC(PGLFNGETBUFFERPOINTERVARBPROC, \
4125 glGetBufferPointervARB, ARB_VERTEX_BUFFER_OBJECT, NULL) \
4126 /* GL_ARB_vertex_program */ \
4127 USE_GL_FUNC(PGLFNGENPROGRAMSARBPROC, \
4128 glGenProgramsARB, ARB_VERTEX_PROGRAM, NULL) \
4129 USE_GL_FUNC(PGLFNBINDPROGRAMARBPROC, \
4130 glBindProgramARB, ARB_VERTEX_PROGRAM, NULL) \
4131 USE_GL_FUNC(PGLFNPROGRAMSTRINGARBPROC, \
4132 glProgramStringARB, ARB_VERTEX_PROGRAM, NULL) \
4133 USE_GL_FUNC(PGLFNDELETEPROGRAMSARBPROC, \
4134 glDeleteProgramsARB, ARB_VERTEX_PROGRAM, NULL) \
4135 USE_GL_FUNC(PGLFNPROGRAMENVPARAMETER4FVARBPROC, \
4136 glProgramEnvParameter4fvARB, ARB_VERTEX_PROGRAM, NULL) \
4137 USE_GL_FUNC(PGLFNPROGRAMLOCALPARAMETER4FVARBPROC, \
4138 glProgramLocalParameter4fvARB, ARB_VERTEX_PROGRAM, NULL) \
4139 USE_GL_FUNC(PGLFNVERTEXATTRIBPOINTERARBPROC, \
4140 glVertexAttribPointerARB, ARB_VERTEX_PROGRAM, NULL) \
4141 USE_GL_FUNC(PGLFNENABLEVERTEXATTRIBARRAYARBPROC, \
4142 glEnableVertexAttribArrayARB, ARB_VERTEX_PROGRAM, NULL) \
4143 USE_GL_FUNC(PGLFNDISABLEVERTEXATTRIBARRAYARBPROC, \
4144 glDisableVertexAttribArrayARB, ARB_VERTEX_PROGRAM, NULL) \
4145 USE_GL_FUNC(PGLFNVERTEXATTRIB1DARBPROC, \
4146 glVertexAttrib1dARB, ARB_VERTEX_PROGRAM, NULL) \
4147 USE_GL_FUNC(PGLFNVERTEXATTRIB1DVARBPROC, \
4148 glVertexAttrib1dvARB, ARB_VERTEX_PROGRAM, NULL) \
4149 USE_GL_FUNC(PGLFNVERTEXATTRIB1FARBPROC, \
4150 glVertexAttrib1fARB, ARB_VERTEX_PROGRAM, NULL) \
4151 USE_GL_FUNC(PGLFNVERTEXATTRIB1FVARBPROC, \
4152 glVertexAttrib1fvARB, ARB_VERTEX_PROGRAM, NULL) \
4153 USE_GL_FUNC(PGLFNVERTEXATTRIB1SARBPROC, \
4154 glVertexAttrib1sARB, ARB_VERTEX_PROGRAM, NULL) \
4155 USE_GL_FUNC(PGLFNVERTEXATTRIB1SVARBPROC, \
4156 glVertexAttrib1svARB, ARB_VERTEX_PROGRAM, NULL) \
4157 USE_GL_FUNC(PGLFNVERTEXATTRIB2DARBPROC, \
4158 glVertexAttrib2dARB, ARB_VERTEX_PROGRAM, NULL) \
4159 USE_GL_FUNC(PGLFNVERTEXATTRIB2DVARBPROC, \
4160 glVertexAttrib2dvARB, ARB_VERTEX_PROGRAM, NULL) \
4161 USE_GL_FUNC(PGLFNVERTEXATTRIB2FARBPROC, \
4162 glVertexAttrib2fARB, ARB_VERTEX_PROGRAM, NULL) \
4163 USE_GL_FUNC(PGLFNVERTEXATTRIB2FVARBPROC, \
4164 glVertexAttrib2fvARB, ARB_VERTEX_PROGRAM, NULL) \
4165 USE_GL_FUNC(PGLFNVERTEXATTRIB2SARBPROC, \
4166 glVertexAttrib2sARB, ARB_VERTEX_PROGRAM, NULL) \
4167 USE_GL_FUNC(PGLFNVERTEXATTRIB2SVARBPROC, \
4168 glVertexAttrib2svARB, ARB_VERTEX_PROGRAM, NULL) \
4169 USE_GL_FUNC(PGLFNVERTEXATTRIB3DARBPROC, \
4170 glVertexAttrib3dARB, ARB_VERTEX_PROGRAM, NULL) \
4171 USE_GL_FUNC(PGLFNVERTEXATTRIB3DVARBPROC, \
4172 glVertexAttrib3dvARB, ARB_VERTEX_PROGRAM, NULL) \
4173 USE_GL_FUNC(PGLFNVERTEXATTRIB3FARBPROC, \
4174 glVertexAttrib3fARB, ARB_VERTEX_PROGRAM, NULL) \
4175 USE_GL_FUNC(PGLFNVERTEXATTRIB3FVARBPROC, \
4176 glVertexAttrib3fvARB, ARB_VERTEX_PROGRAM, NULL) \
4177 USE_GL_FUNC(PGLFNVERTEXATTRIB3SARBPROC, \
4178 glVertexAttrib3sARB, ARB_VERTEX_PROGRAM, NULL) \
4179 USE_GL_FUNC(PGLFNVERTEXATTRIB3SVARBPROC, \
4180 glVertexAttrib3svARB, ARB_VERTEX_PROGRAM, NULL) \
4181 USE_GL_FUNC(PGLFNVERTEXATTRIB4NBVARBPROC, \
4182 glVertexAttrib4NbvARB, ARB_VERTEX_PROGRAM, NULL) \
4183 USE_GL_FUNC(PGLFNVERTEXATTRIB4NIVARBPROC, \
4184 glVertexAttrib4NivARB, ARB_VERTEX_PROGRAM, NULL) \
4185 USE_GL_FUNC(PGLFNVERTEXATTRIB4NSVARBPROC, \
4186 glVertexAttrib4NsvARB, ARB_VERTEX_PROGRAM, NULL) \
4187 USE_GL_FUNC(PGLFNVERTEXATTRIB4NUBARBPROC, \
4188 glVertexAttrib4NubARB, ARB_VERTEX_PROGRAM, NULL) \
4189 USE_GL_FUNC(PGLFNVERTEXATTRIB4NUBVARBPROC, \
4190 glVertexAttrib4NubvARB, ARB_VERTEX_PROGRAM, NULL) \
4191 USE_GL_FUNC(PGLFNVERTEXATTRIB4NUIVARBPROC, \
4192 glVertexAttrib4NuivARB, ARB_VERTEX_PROGRAM, NULL) \
4193 USE_GL_FUNC(PGLFNVERTEXATTRIB4NUSVARBPROC, \
4194 glVertexAttrib4NusvARB, ARB_VERTEX_PROGRAM, NULL) \
4195 USE_GL_FUNC(PGLFNVERTEXATTRIB4BVARBPROC, \
4196 glVertexAttrib4bvARB, ARB_VERTEX_PROGRAM, NULL) \
4197 USE_GL_FUNC(PGLFNVERTEXATTRIB4DARBPROC, \
4198 glVertexAttrib4dARB, ARB_VERTEX_PROGRAM, NULL) \
4199 USE_GL_FUNC(PGLFNVERTEXATTRIB4DVARBPROC, \
4200 glVertexAttrib4dvARB, ARB_VERTEX_PROGRAM, NULL) \
4201 USE_GL_FUNC(PGLFNVERTEXATTRIB4FARBPROC, \
4202 glVertexAttrib4fARB, ARB_VERTEX_PROGRAM, NULL) \
4203 USE_GL_FUNC(PGLFNVERTEXATTRIB4FVARBPROC, \
4204 glVertexAttrib4fvARB, ARB_VERTEX_PROGRAM, NULL) \
4205 USE_GL_FUNC(PGLFNVERTEXATTRIB4IVARBPROC, \
4206 glVertexAttrib4ivARB, ARB_VERTEX_PROGRAM, NULL) \
4207 USE_GL_FUNC(PGLFNVERTEXATTRIB4SARBPROC, \
4208 glVertexAttrib4sARB, ARB_VERTEX_PROGRAM, NULL) \
4209 USE_GL_FUNC(PGLFNVERTEXATTRIB4SVARBPROC, \
4210 glVertexAttrib4svARB, ARB_VERTEX_PROGRAM, NULL) \
4211 USE_GL_FUNC(PGLFNVERTEXATTRIB4UBVARBPROC, \
4212 glVertexAttrib4ubvARB, ARB_VERTEX_PROGRAM, NULL) \
4213 USE_GL_FUNC(PGLFNVERTEXATTRIB4UIVARBPROC, \
4214 glVertexAttrib4uivARB, ARB_VERTEX_PROGRAM, NULL) \
4215 USE_GL_FUNC(PGLFNVERTEXATTRIB4USVARBPROC, \
4216 glVertexAttrib4usvARB, ARB_VERTEX_PROGRAM, NULL) \
4217 USE_GL_FUNC(PGLFNGETPROGRAMIVARBPROC, \
4218 glGetProgramivARB, ARB_VERTEX_PROGRAM, NULL) \
4219 /* GL_ATI_fragment_shader */ \
4220 USE_GL_FUNC(PGLFNGENFRAGMENTSHADERSATI, \
4221 glGenFragmentShadersATI, ATI_FRAGMENT_SHADER, NULL) \
4222 USE_GL_FUNC(PGLFNBINDFRAGMENTSHADERATI, \
4223 glBindFragmentShaderATI, ATI_FRAGMENT_SHADER, NULL) \
4224 USE_GL_FUNC(PGLFNDELETEFRAGMENTSHADERATI, \
4225 glDeleteFragmentShaderATI, ATI_FRAGMENT_SHADER, NULL) \
4226 USE_GL_FUNC(PGLFNBEGINFRAGMENTSHADERATI, \
4227 glBeginFragmentShaderATI, ATI_FRAGMENT_SHADER, NULL) \
4228 USE_GL_FUNC(PGLFNENDFRAGMENTSHADERATI, \
4229 glEndFragmentShaderATI, ATI_FRAGMENT_SHADER, NULL) \
4230 USE_GL_FUNC(PGLFNPASSTEXCOORDATI, \
4231 glPassTexCoordATI, ATI_FRAGMENT_SHADER, NULL) \
4232 USE_GL_FUNC(PGLFNSAMPLEMAPATI, \
4233 glSampleMapATI, ATI_FRAGMENT_SHADER, NULL) \
4234 USE_GL_FUNC(PGLFNCOLORFRAGMENTOP1ATI, \
4235 glColorFragmentOp1ATI, ATI_FRAGMENT_SHADER, NULL) \
4236 USE_GL_FUNC(PGLFNCOLORFRAGMENTOP2ATI, \
4237 glColorFragmentOp2ATI, ATI_FRAGMENT_SHADER, NULL) \
4238 USE_GL_FUNC(PGLFNCOLORFRAGMENTOP3ATI, \
4239 glColorFragmentOp3ATI, ATI_FRAGMENT_SHADER, NULL) \
4240 USE_GL_FUNC(PGLFNALPHAFRAGMENTOP1ATI, \
4241 glAlphaFragmentOp1ATI, ATI_FRAGMENT_SHADER, NULL) \
4242 USE_GL_FUNC(PGLFNALPHAFRAGMENTOP2ATI, \
4243 glAlphaFragmentOp2ATI, ATI_FRAGMENT_SHADER, NULL) \
4244 USE_GL_FUNC(PGLFNALPHAFRAGMENTOP3ATI, \
4245 glAlphaFragmentOp3ATI, ATI_FRAGMENT_SHADER, NULL) \
4246 USE_GL_FUNC(PGLFNSETFRAGMENTSHADERCONSTANTATI, \
4247 glSetFragmentShaderConstantATI, ATI_FRAGMENT_SHADER, NULL) \
4248 /* GL_ATI_separate_stencil */ \
4249 USE_GL_FUNC(PGLFNSTENCILOPSEPARATEATIPROC, \
4250 glStencilOpSeparateATI, ATI_SEPARATE_STENCIL, NULL) \
4251 USE_GL_FUNC(PGLFNSTENCILFUNCSEPARATEATIPROC, \
4252 glStencilFuncSeparateATI, ATI_SEPARATE_STENCIL, NULL) \
4253 /* GL_EXT_blend_equation_separate */ \
4254 USE_GL_FUNC(PGLFNBLENDFUNCSEPARATEEXTPROC, \
4255 glBlendFuncSeparateEXT, EXT_BLEND_FUNC_SEPARATE, NULL) \
4256 /* GL_EXT_blend_func_separate */ \
4257 USE_GL_FUNC(PGLFNBLENDEQUATIONSEPARATEEXTPROC, \
4258 glBlendEquationSeparateEXT, EXT_BLEND_EQUATION_SEPARATE, NULL) \
4259 /* GL_EXT_draw_buffers2 */ \
4260 USE_GL_FUNC(PGLFNCOLORMASKINDEXEDEXTPROC, \
4261 glColorMaskIndexedEXT, EXT_DRAW_BUFFERS2, NULL) \
4262 USE_GL_FUNC(PGLFNGETBOOLEANINDEXEDVEXTPROC, \
4263 glGetBooleanIndexedvEXT, EXT_DRAW_BUFFERS2, NULL) \
4264 USE_GL_FUNC(PGLFNGETINTEGERINDEXEDVEXTPROC, \
4265 glGetIntegerIndexedvEXT, EXT_DRAW_BUFFERS2, NULL) \
4266 USE_GL_FUNC(PGLFNENABLEINDEXEDEXTPROC, \
4267 glEnableIndexedEXT, EXT_DRAW_BUFFERS2, NULL) \
4268 USE_GL_FUNC(PGLFNDISABLEINDEXEDEXTPROC, \
4269 glDisableIndexedEXT, EXT_DRAW_BUFFERS2, NULL) \
4270 USE_GL_FUNC(PGLFNISENABLEDINDEXEDEXTPROC, \
4271 glIsEnabledIndexedEXT, EXT_DRAW_BUFFERS2, NULL) \
4272 /* GL_EXT_fog_coord */ \
4273 USE_GL_FUNC(PGLFNGLFOGCOORDFEXTPROC, \
4274 glFogCoordfEXT, EXT_FOG_COORD, NULL) \
4275 USE_GL_FUNC(PGLFNGLFOGCOORDFVEXTPROC, \
4276 glFogCoordfvEXT, EXT_FOG_COORD, NULL) \
4277 USE_GL_FUNC(PGLFNGLFOGCOORDDEXTPROC, \
4278 glFogCoorddEXT, EXT_FOG_COORD, NULL) \
4279 USE_GL_FUNC(PGLFNGLFOGCOORDDVEXTPROC, \
4280 glFogCoorddvEXT, EXT_FOG_COORD, NULL) \
4281 USE_GL_FUNC(PGLFNGLFOGCOORDPOINTEREXTPROC, \
4282 glFogCoordPointerEXT, EXT_FOG_COORD, NULL) \
4283 /* GL_EXT_framebuffer_blit */ \
4284 USE_GL_FUNC(PGLFNGLBLITFRAMEBUFFEREXTPROC, \
4285 glBlitFramebufferEXT, EXT_FRAMEBUFFER_BLIT, NULL) \
4286 /* GL_EXT_framebuffer_multisample */ \
4287 USE_GL_FUNC(PGLFNRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC, \
4288 glRenderbufferStorageMultisampleEXT, EXT_FRAMEBUFFER_MULTISAMPLE, NULL) \
4289 /* GL_EXT_framebuffer_object */ \
4290 USE_GL_FUNC(PGLFNGLISRENDERBUFFEREXTPROC, \
4291 glIsRenderbufferEXT, EXT_FRAMEBUFFER_OBJECT, NULL) \
4292 USE_GL_FUNC(PGLFNGLBINDRENDERBUFFEREXTPROC, \
4293 glBindRenderbufferEXT, EXT_FRAMEBUFFER_OBJECT, NULL) \
4294 USE_GL_FUNC(PGLFNGLDELETERENDERBUFFERSEXTPROC, \
4295 glDeleteRenderbuffersEXT, EXT_FRAMEBUFFER_OBJECT, NULL) \
4296 USE_GL_FUNC(PGLFNGLGENRENDERBUFFERSEXTPROC, \
4297 glGenRenderbuffersEXT, EXT_FRAMEBUFFER_OBJECT, NULL) \
4298 USE_GL_FUNC(PGLFNGLRENDERBUFFERSTORAGEEXTPROC, \
4299 glRenderbufferStorageEXT, EXT_FRAMEBUFFER_OBJECT, NULL) \
4300 USE_GL_FUNC(PGLFNGLISFRAMEBUFFEREXTPROC, \
4301 glIsFramebufferEXT, EXT_FRAMEBUFFER_OBJECT, NULL) \
4302 USE_GL_FUNC(PGLFNGLBINDFRAMEBUFFEREXTPROC, \
4303 glBindFramebufferEXT, EXT_FRAMEBUFFER_OBJECT, NULL) \
4304 USE_GL_FUNC(PGLFNGLDELETEFRAMEBUFFERSEXTPROC, \
4305 glDeleteFramebuffersEXT, EXT_FRAMEBUFFER_OBJECT, NULL) \
4306 USE_GL_FUNC(PGLFNGLGENFRAMEBUFFERSEXTPROC, \
4307 glGenFramebuffersEXT, EXT_FRAMEBUFFER_OBJECT, NULL) \
4308 USE_GL_FUNC(PGLFNGLCHECKFRAMEBUFFERSTATUSEXTPROC, \
4309 glCheckFramebufferStatusEXT, EXT_FRAMEBUFFER_OBJECT, NULL) \
4310 USE_GL_FUNC(PGLFNGLFRAMEBUFFERTEXTURE1DEXTPROC, \
4311 glFramebufferTexture1DEXT, EXT_FRAMEBUFFER_OBJECT, NULL) \
4312 USE_GL_FUNC(PGLFNGLFRAMEBUFFERTEXTURE2DEXTPROC, \
4313 glFramebufferTexture2DEXT, EXT_FRAMEBUFFER_OBJECT, NULL) \
4314 USE_GL_FUNC(PGLFNGLFRAMEBUFFERTEXTURE3DEXTPROC, \
4315 glFramebufferTexture3DEXT, EXT_FRAMEBUFFER_OBJECT, NULL) \
4316 USE_GL_FUNC(PGLFNGLFRAMEBUFFERRENDERBUFFEREXTPROC, \
4317 glFramebufferRenderbufferEXT, EXT_FRAMEBUFFER_OBJECT, NULL) \
4318 USE_GL_FUNC(PGLFNGLGENERATEMIPMAPEXTPROC, \
4319 glGenerateMipmapEXT, EXT_FRAMEBUFFER_OBJECT, NULL) \
4320 USE_GL_FUNC(PGLFNGLGETRENDERBUFFERPARAMETERIVEXTPROC, \
4321 glGetRenderbufferParameterivEXT, EXT_FRAMEBUFFER_OBJECT, NULL) \
4322 USE_GL_FUNC(PGLFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC, \
4323 glGetFramebufferAttachmentParameterivEXT, EXT_FRAMEBUFFER_OBJECT, NULL) \
4324 /* GL_EXT_gpu_program_parameters */ \
4325 USE_GL_FUNC(PGLFNPROGRAMENVPARAMETERS4FVEXTPROC, \
4326 glProgramEnvParameters4fvEXT, EXT_GPU_PROGRAM_PARAMETERS, NULL) \
4327 USE_GL_FUNC(PGLFNPROGRAMLOCALPARAMETERS4FVEXTPROC, \
4328 glProgramLocalParameters4fvEXT, EXT_GPU_PROGRAM_PARAMETERS, NULL) \
4329 /* GL_EXT_gpu_shader4 */\
4330 USE_GL_FUNC(PGLFNVERTEXATTRIBI1IEXTPROC, \
4331 glVertexAttribI1iEXT, EXT_GPU_SHADER4, NULL) \
4332 USE_GL_FUNC(PGLFNVERTEXATTRIBI2IEXTPROC, \
4333 glVertexAttribI2iEXT, EXT_GPU_SHADER4, NULL) \
4334 USE_GL_FUNC(PGLFNVERTEXATTRIBI3IEXTPROC, \
4335 glVertexAttribI3iEXT, EXT_GPU_SHADER4, NULL) \
4336 USE_GL_FUNC(PGLFNVERTEXATTRIBI4IEXTPROC, \
4337 glVertexAttribI4iEXT, EXT_GPU_SHADER4, NULL) \
4338 USE_GL_FUNC(PGLFNVERTEXATTRIBI1UIEXTPROC, \
4339 glVertexAttribI1uiEXT, EXT_GPU_SHADER4, NULL) \
4340 USE_GL_FUNC(PGLFNVERTEXATTRIBI2UIEXTPROC, \
4341 glVertexAttribI2uiEXT, EXT_GPU_SHADER4, NULL) \
4342 USE_GL_FUNC(PGLFNVERTEXATTRIBI3UIEXTPROC, \
4343 glVertexAttribI3uiEXT, EXT_GPU_SHADER4, NULL) \
4344 USE_GL_FUNC(PGLFNVERTEXATTRIBI4UIEXTPROC, \
4345 glVertexAttribI4uiEXT, EXT_GPU_SHADER4, NULL) \
4346 USE_GL_FUNC(PGLFNVERTEXATTRIBI1IVEXTPROC, \
4347 glVertexAttribI1ivEXT, EXT_GPU_SHADER4, NULL) \
4348 USE_GL_FUNC(PGLFNVERTEXATTRIBI2IVEXTPROC, \
4349 glVertexAttribI2ivEXT, EXT_GPU_SHADER4, NULL) \
4350 USE_GL_FUNC(PGLFNVERTEXATTRIBI3IVEXTPROC, \
4351 glVertexAttribI3ivEXT, EXT_GPU_SHADER4, NULL) \
4352 USE_GL_FUNC(PGLFNVERTEXATTRIBI4IVEXTPROC, \
4353 glVertexAttribI4ivEXT, EXT_GPU_SHADER4, NULL) \
4354 USE_GL_FUNC(PGLFNVERTEXATTRIBI1UIVEXTPROC, \
4355 glVertexAttribI1uivEXT, EXT_GPU_SHADER4, NULL) \
4356 USE_GL_FUNC(PGLFNVERTEXATTRIBI2UIVEXTPROC, \
4357 glVertexAttribI2uivEXT, EXT_GPU_SHADER4, NULL) \
4358 USE_GL_FUNC(PGLFNVERTEXATTRIBI3UIVEXTPROC, \
4359 glVertexAttribI3uivEXT, EXT_GPU_SHADER4, NULL) \
4360 USE_GL_FUNC(PGLFNVERTEXATTRIBI4UIVEXTPROC, \
4361 glVertexAttribI4uivEXT, EXT_GPU_SHADER4, NULL) \
4362 USE_GL_FUNC(PGLFNVERTEXATTRIBI4BVEXTPROC, \
4363 glVertexAttribI4bvEXT, EXT_GPU_SHADER4, NULL) \
4364 USE_GL_FUNC(PGLFNVERTEXATTRIBI4SVEXTPROC, \
4365 glVertexAttribI4svEXT, EXT_GPU_SHADER4, NULL) \
4366 USE_GL_FUNC(PGLFNVERTEXATTRIBI4UBVEXTPROC, \
4367 glVertexAttribI4ubvEXT, EXT_GPU_SHADER4, NULL) \
4368 USE_GL_FUNC(PGLFNVERTEXATTRIBI4USVEXTPROC, \
4369 glVertexAttribI4usvEXT, EXT_GPU_SHADER4, NULL) \
4370 USE_GL_FUNC(PGLFNVERTEXATTRIBIPOINTEREXTPROC, \
4371 glVertexAttribIPointerEXT, EXT_GPU_SHADER4, NULL) \
4372 USE_GL_FUNC(PGLFNGETVERTEXATTRIBIIVEXTPROC, \
4373 glVertexAttribIivEXT, EXT_GPU_SHADER4, NULL) \
4374 USE_GL_FUNC(PGLFNGETVERTEXATTRIBIUIVEXTPROC, \
4375 glVertexAttribIuivEXT, EXT_GPU_SHADER4, NULL) \
4376 USE_GL_FUNC(PGLFNUNIFORM1UIEXTPROC, \
4377 glUniform1uiEXT, EXT_GPU_SHADER4, NULL) \
4378 USE_GL_FUNC(PGLFNUNIFORM2UIEXTPROC, \
4379 glUniform2uiEXT, EXT_GPU_SHADER4, NULL) \
4380 USE_GL_FUNC(PGLFNUNIFORM3UIEXTPROC, \
4381 glUniform3uiEXT, EXT_GPU_SHADER4, NULL) \
4382 USE_GL_FUNC(PGLFNUNIFORM4UIEXTPROC, \
4383 glUniform4uiEXT, EXT_GPU_SHADER4, NULL) \
4384 USE_GL_FUNC(PGLFNUNIFORM1UIVEXTPROC, \
4385 glUniform1uivEXT, EXT_GPU_SHADER4, NULL) \
4386 USE_GL_FUNC(PGLFNUNIFORM2UIVEXTPROC, \
4387 glUniform2uivEXT, EXT_GPU_SHADER4, NULL) \
4388 USE_GL_FUNC(PGLFNUNIFORM3UIVEXTPROC, \
4389 glUniform3uivEXT, EXT_GPU_SHADER4, NULL) \
4390 USE_GL_FUNC(PGLFNUNIFORM4UIVEXTPROC, \
4391 glUniform4uivEXT, EXT_GPU_SHADER4, NULL) \
4392 USE_GL_FUNC(PGLFNGETUNIFORMUIVEXTPROC, \
4393 glGetUniformuivEXT, EXT_GPU_SHADER4, NULL) \
4394 USE_GL_FUNC(PGLFNBINDFRAGDATALOCATIONEXTPROC, \
4395 glBindFragDataLocationEXT, EXT_GPU_SHADER4, NULL) \
4396 USE_GL_FUNC(PGLFNGETFRAGDATALOCATIONEXTPROC, \
4397 glGetFragDataLocationEXT, EXT_GPU_SHADER4, NULL) \
4398 /* GL_EXT_paletted_texture */ \
4399 USE_GL_FUNC(PGLFNGLCOLORTABLEEXTPROC, \
4400 glColorTableEXT, EXT_PALETTED_TEXTURE, NULL) \
4401 /* GL_EXT_point_parameters */ \
4402 USE_GL_FUNC(PGLFNGLPOINTPARAMETERFEXTPROC, \
4403 glPointParameterfEXT, EXT_POINT_PARAMETERS, NULL) \
4404 USE_GL_FUNC(PGLFNGLPOINTPARAMETERFVEXTPROC, \
4405 glPointParameterfvEXT, EXT_POINT_PARAMETERS, NULL) \
4406 /* GL_EXT_provoking_vertex */ \
4407 USE_GL_FUNC(PGLFNGLPROVOKINGVERTEXEXTPROC, \
4408 glProvokingVertexEXT, EXT_PROVOKING_VERTEX, NULL) \
4409 /* GL_EXT_secondary_color */ \
4410 USE_GL_FUNC(PGLFNGLSECONDARYCOLOR3UBEXTPROC, \
4411 glSecondaryColor3ubEXT, EXT_SECONDARY_COLOR, NULL) \
4412 USE_GL_FUNC(PGLFNGLSECONDARYCOLOR3UBVEXTPROC, \
4413 glSecondaryColor3ubvEXT, EXT_SECONDARY_COLOR, NULL) \
4414 USE_GL_FUNC(PGLFNGLSECONDARYCOLOR3FEXTPROC, \
4415 glSecondaryColor3fEXT, EXT_SECONDARY_COLOR, NULL) \
4416 USE_GL_FUNC(PGLFNGLSECONDARYCOLOR3FVEXTPROC, \
4417 glSecondaryColor3fvEXT, EXT_SECONDARY_COLOR, NULL) \
4418 USE_GL_FUNC(PGLFNGLSECONDARYCOLORPOINTEREXTPROC, \
4419 glSecondaryColorPointerEXT, EXT_SECONDARY_COLOR, NULL) \
4420 /* GL_EXT_stencil_two_side */ \
4421 USE_GL_FUNC(PGLFNACTIVESTENCILFACEEXTPROC, \
4422 glActiveStencilFaceEXT, EXT_STENCIL_TWO_SIDE, NULL) \
4423 /* GL_EXT_texture3D */ \
4424 USE_GL_FUNC(PGLFNGLTEXIMAGE3DEXTPROC, \
4425 glTexImage3DEXT, EXT_TEXTURE3D, glTexImage3D) \
4426 USE_GL_FUNC(PGLFNGLTEXSUBIMAGE3DEXTPROC, \
4427 glTexSubImage3DEXT, EXT_TEXTURE3D, glTexSubImage3D) \
4428 /* GL_NV_fence */ \
4429 USE_GL_FUNC(PGLFNGENFENCESNVPROC, \
4430 glGenFencesNV, NV_FENCE, NULL) \
4431 USE_GL_FUNC(PGLFNDELETEFENCESNVPROC, \
4432 glDeleteFencesNV, NV_FENCE, NULL) \
4433 USE_GL_FUNC(PGLFNSETFENCENVPROC, \
4434 glSetFenceNV, NV_FENCE, NULL) \
4435 USE_GL_FUNC(PGLFNTESTFENCENVPROC, \
4436 glTestFenceNV, NV_FENCE, NULL) \
4437 USE_GL_FUNC(PGLFNFINISHFENCENVPROC, \
4438 glFinishFenceNV, NV_FENCE, NULL) \
4439 USE_GL_FUNC(PGLFNISFENCENVPROC, \
4440 glIsFenceNV, NV_FENCE, NULL) \
4441 USE_GL_FUNC(PGLFNGETFENCEIVNVPROC, \
4442 glGetFenceivNV, NV_FENCE, NULL) \
4443 /* GL_NV_half_float */ \
4444 USE_GL_FUNC(PGLFNVERTEX2HNVPROC, \
4445 glVertex2hNV, NV_HALF_FLOAT, NULL) \
4446 USE_GL_FUNC(PGLFNVERTEX2HVNVPROC, \
4447 glVertex2hvNV, NV_HALF_FLOAT, NULL) \
4448 USE_GL_FUNC(PGLFNVERTEX3HNVPROC, \
4449 glVertex3hNV, NV_HALF_FLOAT, NULL) \
4450 USE_GL_FUNC(PGLFNVERTEX3HVNVPROC, \
4451 glVertex3hvNV, NV_HALF_FLOAT, NULL) \
4452 USE_GL_FUNC(PGLFNVERTEX4HNVPROC, \
4453 glVertex4hNV, NV_HALF_FLOAT, NULL) \
4454 USE_GL_FUNC(PGLFNVERTEX4HVNVPROC, \
4455 glVertex4hvNV, NV_HALF_FLOAT, NULL) \
4456 USE_GL_FUNC(PGLFNNORMAL3HNVPROC, \
4457 glNormal3hNV, NV_HALF_FLOAT, NULL) \
4458 USE_GL_FUNC(PGLFNNORMAL3HVNVPROC, \
4459 glNormal3hvNV, NV_HALF_FLOAT, NULL) \
4460 USE_GL_FUNC(PGLFNCOLOR3HNVPROC, \
4461 glColor3hNV, NV_HALF_FLOAT, NULL) \
4462 USE_GL_FUNC(PGLFNCOLOR3HVNVPROC, \
4463 glColor3hvNV, NV_HALF_FLOAT, NULL) \
4464 USE_GL_FUNC(PGLFNCOLOR4HNVPROC, \
4465 glColor4hNV, NV_HALF_FLOAT, NULL) \
4466 USE_GL_FUNC(PGLFNCOLOR4HVNVPROC, \
4467 glColor4hvNV, NV_HALF_FLOAT, NULL) \
4468 USE_GL_FUNC(PGLFNTEXCOORD1HNVPROC, \
4469 glTexCoord1hNV, NV_HALF_FLOAT, NULL) \
4470 USE_GL_FUNC(PGLFNTEXCOORD1HVNVPROC, \
4471 glTexCoord1hvNV, NV_HALF_FLOAT, NULL) \
4472 USE_GL_FUNC(PGLFNTEXCOORD2HNVPROC, \
4473 glTexCoord2hNV, NV_HALF_FLOAT, NULL) \
4474 USE_GL_FUNC(PGLFNTEXCOORD2HVNVPROC, \
4475 glTexCoord2hvNV, NV_HALF_FLOAT, NULL) \
4476 USE_GL_FUNC(PGLFNTEXCOORD3HNVPROC, \
4477 glTexCoord3hNV, NV_HALF_FLOAT, NULL) \
4478 USE_GL_FUNC(PGLFNTEXCOORD3HVNVPROC, \
4479 glTexCoord3hvNV, NV_HALF_FLOAT, NULL) \
4480 USE_GL_FUNC(PGLFNTEXCOORD4HNVPROC, \
4481 glTexCoord4hNV, NV_HALF_FLOAT, NULL) \
4482 USE_GL_FUNC(PGLFNTEXCOORD4HVNVPROC, \
4483 glTexCoord4hvNV, NV_HALF_FLOAT, NULL) \
4484 USE_GL_FUNC(PGLFNMULTITEXCOORD1HNVPROC, \
4485 glMultiTexCoord1hNV, NV_HALF_FLOAT, NULL) \
4486 USE_GL_FUNC(PGLFNMULTITEXCOORD1HVNVPROC, \
4487 glMultiTexCoord1hvNV, NV_HALF_FLOAT, NULL) \
4488 USE_GL_FUNC(PGLFNMULTITEXCOORD2HNVPROC, \
4489 glMultiTexCoord2hNV, NV_HALF_FLOAT, NULL) \
4490 USE_GL_FUNC(PGLFNMULTITEXCOORD2HVNVPROC, \
4491 glMultiTexCoord2hvNV, NV_HALF_FLOAT, NULL) \
4492 USE_GL_FUNC(PGLFNMULTITEXCOORD3HNVPROC, \
4493 glMultiTexCoord3hNV, NV_HALF_FLOAT, NULL) \
4494 USE_GL_FUNC(PGLFNMULTITEXCOORD3HVNVPROC, \
4495 glMultiTexCoord3hvNV, NV_HALF_FLOAT, NULL) \
4496 USE_GL_FUNC(PGLFNMULTITEXCOORD4HNVPROC, \
4497 glMultiTexCoord4hNV, NV_HALF_FLOAT, NULL) \
4498 USE_GL_FUNC(PGLFNMULTITEXCOORD4HVNVPROC, \
4499 glMultiTexCoord4hvNV, NV_HALF_FLOAT, NULL) \
4500 USE_GL_FUNC(PGLFNFOGCOORDHNVPROC, \
4501 glFogCoordhNV, NV_HALF_FLOAT, NULL) \
4502 USE_GL_FUNC(PGLFNFOGCOORDHVNVPROC, \
4503 glFogCoordhvNV, NV_HALF_FLOAT, NULL) \
4504 USE_GL_FUNC(PGLFNSECONDARYCOLOR3HNVPROC, \
4505 glSecondaryColor3hNV, NV_HALF_FLOAT, NULL) \
4506 USE_GL_FUNC(PGLFNSECONDARYCOLOR3HVNVPROC, \
4507 glSecondaryColor3hvNV, NV_HALF_FLOAT, NULL) \
4508 USE_GL_FUNC(PGLFNVERTEXWEIGHTHNVPROC, \
4509 glVertexWeighthNV, NV_HALF_FLOAT, NULL) \
4510 USE_GL_FUNC(PGLFNVERTEXWEIGHTHVNVPROC, \
4511 glVertexWeighthvNV, NV_HALF_FLOAT, NULL) \
4512 USE_GL_FUNC(PGLFNVERTEXATTRIB1HNVPROC, \
4513 glVertexAttrib1hNV, NV_HALF_FLOAT, NULL) \
4514 USE_GL_FUNC(PGLFNVERTEXATTRIB1HVNVPROC, \
4515 glVertexAttrib1hvNV, NV_HALF_FLOAT, NULL) \
4516 USE_GL_FUNC(PGLFNVERTEXATTRIB2HNVPROC, \
4517 glVertexAttrib2hNV, NV_HALF_FLOAT, NULL) \
4518 USE_GL_FUNC(PGLFNVERTEXATTRIB2HVNVPROC, \
4519 glVertexAttrib2hvNV, NV_HALF_FLOAT, NULL) \
4520 USE_GL_FUNC(PGLFNVERTEXATTRIB3HNVPROC, \
4521 glVertexAttrib3hNV, NV_HALF_FLOAT, NULL) \
4522 USE_GL_FUNC(PGLFNVERTEXATTRIB3HVNVPROC, \
4523 glVertexAttrib3hvNV, NV_HALF_FLOAT, NULL) \
4524 USE_GL_FUNC(PGLFNVERTEXATTRIB4HNVPROC, \
4525 glVertexAttrib4hNV, NV_HALF_FLOAT, NULL) \
4526 USE_GL_FUNC(PGLFNVERTEXATTRIB4HVNVPROC, \
4527 glVertexAttrib4hvNV, NV_HALF_FLOAT, NULL) \
4528 USE_GL_FUNC(PGLFNVERTEXATTRIBS1HVNVPROC, \
4529 glVertexAttribs1hvNV, NV_HALF_FLOAT, NULL) \
4530 USE_GL_FUNC(PGLFNVERTEXATTRIBS2HVNVPROC, \
4531 glVertexAttribs2hvNV, NV_HALF_FLOAT, NULL) \
4532 USE_GL_FUNC(PGLFNVERTEXATTRIBS3HVNVPROC, \
4533 glVertexAttribs3hvNV, NV_HALF_FLOAT, NULL) \
4534 USE_GL_FUNC(PGLFNVERTEXATTRIBS4HVNVPROC, \
4535 glVertexAttribs4hvNV, NV_HALF_FLOAT, NULL) \
4536 /* GL_NV_register_combiners */ \
4537 USE_GL_FUNC(PGLFNCOMBINERINPUTNVPROC, \
4538 glCombinerInputNV, NV_REGISTER_COMBINERS, NULL) \
4539 USE_GL_FUNC(PGLFNCOMBINEROUTPUTNVPROC, \
4540 glCombinerOutputNV, NV_REGISTER_COMBINERS, NULL) \
4541 USE_GL_FUNC(PGLFNCOMBINERPARAMETERFNVPROC, \
4542 glCombinerParameterfNV, NV_REGISTER_COMBINERS, NULL) \
4543 USE_GL_FUNC(PGLFNCOMBINERPARAMETERFVNVPROC, \
4544 glCombinerParameterfvNV, NV_REGISTER_COMBINERS, NULL) \
4545 USE_GL_FUNC(PGLFNCOMBINERPARAMETERINVPROC, \
4546 glCombinerParameteriNV, NV_REGISTER_COMBINERS, NULL) \
4547 USE_GL_FUNC(PGLFNCOMBINERPARAMETERIVNVPROC, \
4548 glCombinerParameterivNV, NV_REGISTER_COMBINERS, NULL) \
4549 USE_GL_FUNC(PGLFNFINALCOMBINERINPUTNVPROC, \
4550 glFinalCombinerInputNV, NV_REGISTER_COMBINERS, NULL) \
4551 /* GLX_SGI_video_sync */ \
4552 USE_GL_FUNC(PGLXFNGETVIDEOSYNCSGIPROC, \
4553 glXGetVideoSyncSGI, SGI_VIDEO_SYNC, NULL) \
4554 USE_GL_FUNC(PGLXFNWAITVIDEOSYNCSGIPROC, \
4555 glXWaitVideoSyncSGI, SGI_VIDEO_SYNC, NULL) \
4556 VBOXWDDM_GL_EXT_FUNCS_GEN
4557
4558#define WGL_EXT_FUNCS_GEN \
4559 USE_GL_FUNC(WINED3D_PFNWGLGETEXTENSIONSSTRINGARBPROC, wglGetExtensionsStringARB, 0, NULL) \
4560 USE_GL_FUNC(WINED3D_PFNWGLGETPIXELFORMATATTRIBIVARBPROC, wglGetPixelFormatAttribivARB, 0, NULL) \
4561 USE_GL_FUNC(WINED3D_PFNWGLGETPIXELFORMATATTRIBFVARBPROC, wglGetPixelFormatAttribfvARB, 0, NULL) \
4562 USE_GL_FUNC(WINED3D_PFNWGLCHOOSEPIXELFORMATARBPROC, wglChoosePixelFormatARB, 0, NULL) \
4563 USE_GL_FUNC(WINED3D_PFNWGLSETPIXELFORMATWINE, wglSetPixelFormatWINE, 0, NULL)
4564
4565#endif /* __WINE_WINED3D_GL */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette