d3d10core: Implement d3d10_device_PSSetSamplers().
[wine] / dlls / wined3d / wined3d_gl.h
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 #ifndef __WINE_WINED3D_GL_H
25 #define __WINE_WINED3D_GL_H
26
27 #include "wine/wgl.h"
28
29 #define GL_COMPRESSED_LUMINANCE_ALPHA_3DC_ATI 0x8837  /* not in the gl spec */
30
31 void (WINE_GLAPI *glDisableWINE)(GLenum cap) DECLSPEC_HIDDEN;
32 void (WINE_GLAPI *glEnableWINE)(GLenum cap) DECLSPEC_HIDDEN;
33
34 /* OpenGL extensions. */
35 enum wined3d_gl_extension
36 {
37     WINED3D_GL_EXT_NONE,
38
39     /* APPLE */
40     APPLE_CLIENT_STORAGE,
41     APPLE_FENCE,
42     APPLE_FLOAT_PIXELS,
43     APPLE_FLUSH_BUFFER_RANGE,
44     APPLE_YCBCR_422,
45     /* ARB */
46     ARB_COLOR_BUFFER_FLOAT,
47     ARB_DEPTH_BUFFER_FLOAT,
48     ARB_DEPTH_CLAMP,
49     ARB_DEPTH_TEXTURE,
50     ARB_DRAW_BUFFERS,
51     ARB_DRAW_ELEMENTS_BASE_VERTEX,
52     ARB_DRAW_INSTANCED,
53     ARB_FRAGMENT_PROGRAM,
54     ARB_FRAGMENT_SHADER,
55     ARB_FRAMEBUFFER_OBJECT,
56     ARB_FRAMEBUFFER_SRGB,
57     ARB_GEOMETRY_SHADER4,
58     ARB_HALF_FLOAT_PIXEL,
59     ARB_HALF_FLOAT_VERTEX,
60     ARB_INSTANCED_ARRAYS,
61     ARB_MAP_BUFFER_ALIGNMENT,
62     ARB_MAP_BUFFER_RANGE,
63     ARB_MULTISAMPLE,
64     ARB_MULTITEXTURE,
65     ARB_OCCLUSION_QUERY,
66     ARB_PIXEL_BUFFER_OBJECT,
67     ARB_POINT_PARAMETERS,
68     ARB_POINT_SPRITE,
69     ARB_PROVOKING_VERTEX,
70     ARB_SHADER_BIT_ENCODING,
71     ARB_SHADER_OBJECTS,
72     ARB_SHADER_TEXTURE_LOD,
73     ARB_SHADING_LANGUAGE_100,
74     ARB_SHADOW,
75     ARB_SYNC,
76     ARB_TEXTURE_BORDER_CLAMP,
77     ARB_TEXTURE_COMPRESSION,
78     ARB_TEXTURE_COMPRESSION_RGTC,
79     ARB_TEXTURE_CUBE_MAP,
80     ARB_TEXTURE_ENV_ADD,
81     ARB_TEXTURE_ENV_COMBINE,
82     ARB_TEXTURE_ENV_DOT3,
83     ARB_TEXTURE_FLOAT,
84     ARB_TEXTURE_MIRRORED_REPEAT,
85     ARB_TEXTURE_NON_POWER_OF_TWO,
86     ARB_TEXTURE_RECTANGLE,
87     ARB_TEXTURE_RG,
88     ARB_VERTEX_ARRAY_BGRA,
89     ARB_VERTEX_BLEND,
90     ARB_VERTEX_BUFFER_OBJECT,
91     ARB_VERTEX_PROGRAM,
92     ARB_VERTEX_SHADER,
93     /* ATI */
94     ATI_FRAGMENT_SHADER,
95     ATI_SEPARATE_STENCIL,
96     ATI_TEXTURE_COMPRESSION_3DC,
97     ATI_TEXTURE_ENV_COMBINE3,
98     ATI_TEXTURE_MIRROR_ONCE,
99     /* EXT */
100     EXT_BLEND_COLOR,
101     EXT_BLEND_EQUATION_SEPARATE,
102     EXT_BLEND_FUNC_SEPARATE,
103     EXT_BLEND_MINMAX,
104     EXT_BLEND_SUBTRACT,
105     EXT_DRAW_BUFFERS2,
106     EXT_DEPTH_BOUNDS_TEST,
107     EXT_FOG_COORD,
108     EXT_FRAMEBUFFER_BLIT,
109     EXT_FRAMEBUFFER_MULTISAMPLE,
110     EXT_FRAMEBUFFER_OBJECT,
111     EXT_GPU_PROGRAM_PARAMETERS,
112     EXT_GPU_SHADER4,
113     EXT_PACKED_DEPTH_STENCIL,
114     EXT_PALETTED_TEXTURE,
115     EXT_POINT_PARAMETERS,
116     EXT_PROVOKING_VERTEX,
117     EXT_SECONDARY_COLOR,
118     EXT_STENCIL_TWO_SIDE,
119     EXT_STENCIL_WRAP,
120     EXT_TEXTURE3D,
121     EXT_TEXTURE_COMPRESSION_RGTC,
122     EXT_TEXTURE_COMPRESSION_S3TC,
123     EXT_TEXTURE_ENV_ADD,
124     EXT_TEXTURE_ENV_COMBINE,
125     EXT_TEXTURE_ENV_DOT3,
126     EXT_TEXTURE_FILTER_ANISOTROPIC,
127     EXT_TEXTURE_LOD_BIAS,
128     EXT_TEXTURE_SRGB,
129     EXT_TEXTURE_SRGB_DECODE,
130     EXT_VERTEX_ARRAY_BGRA,
131     /* NVIDIA */
132     NV_DEPTH_CLAMP,
133     NV_FENCE,
134     NV_FOG_DISTANCE,
135     NV_FRAGMENT_PROGRAM,
136     NV_FRAGMENT_PROGRAM2,
137     NV_FRAGMENT_PROGRAM_OPTION,
138     NV_HALF_FLOAT,
139     NV_LIGHT_MAX_EXPONENT,
140     NV_POINT_SPRITE,
141     NV_REGISTER_COMBINERS,
142     NV_REGISTER_COMBINERS2,
143     NV_TEXGEN_REFLECTION,
144     NV_TEXTURE_ENV_COMBINE4,
145     NV_TEXTURE_SHADER,
146     NV_TEXTURE_SHADER2,
147     NV_VERTEX_PROGRAM,
148     NV_VERTEX_PROGRAM1_1,
149     NV_VERTEX_PROGRAM2,
150     NV_VERTEX_PROGRAM2_OPTION,
151     NV_VERTEX_PROGRAM3,
152     /* SGI */
153     SGIS_GENERATE_MIPMAP,
154     /* WGL extensions */
155     WGL_ARB_PIXEL_FORMAT,
156     WGL_EXT_SWAP_CONTROL,
157     WGL_WINE_PIXEL_FORMAT_PASSTHROUGH,
158     /* Internally used */
159     WINED3D_GL_NORMALIZED_TEXRECT,
160     WINED3D_GL_VERSION_2_0,
161
162     WINED3D_GL_EXT_COUNT,
163 };
164
165 #include "wine/wglext.h"
166
167 #define GL_EXT_FUNCS_GEN \
168     /* GL_APPLE_fence */ \
169     USE_GL_FUNC(glDeleteFencesAPPLE) \
170     USE_GL_FUNC(glFinishFenceAPPLE) \
171     USE_GL_FUNC(glFinishObjectAPPLE) \
172     USE_GL_FUNC(glGenFencesAPPLE) \
173     USE_GL_FUNC(glIsFenceAPPLE) \
174     USE_GL_FUNC(glSetFenceAPPLE) \
175     USE_GL_FUNC(glTestFenceAPPLE) \
176     USE_GL_FUNC(glTestObjectAPPLE) \
177     /* GL_APPLE_flush_buffer_range */ \
178     USE_GL_FUNC(glBufferParameteriAPPLE) \
179     USE_GL_FUNC(glFlushMappedBufferRangeAPPLE) \
180     /* GL_ARB_color_buffer_float */ \
181     USE_GL_FUNC(glClampColorARB) \
182     /* GL_ARB_draw_buffers */ \
183     USE_GL_FUNC(glDrawBuffersARB) \
184     /* GL_ARB_draw_elements_base_vertex */ \
185     USE_GL_FUNC(glDrawElementsBaseVertex) \
186     USE_GL_FUNC(glDrawElementsInstancedBaseVertex) \
187     USE_GL_FUNC(glDrawRangeElementsBaseVertex) \
188     USE_GL_FUNC(glMultiDrawElementsBaseVertex) \
189     /* GL_ARB_draw_instanced */ \
190     USE_GL_FUNC(glDrawArraysInstancedARB) \
191     USE_GL_FUNC(glDrawElementsInstancedARB) \
192     /* GL_ARB_framebuffer_object */ \
193     USE_GL_FUNC(glBindFramebuffer) \
194     USE_GL_FUNC(glBindRenderbuffer) \
195     USE_GL_FUNC(glBlitFramebuffer) \
196     USE_GL_FUNC(glCheckFramebufferStatus) \
197     USE_GL_FUNC(glDeleteFramebuffers) \
198     USE_GL_FUNC(glDeleteRenderbuffers) \
199     USE_GL_FUNC(glFramebufferRenderbuffer) \
200     USE_GL_FUNC(glFramebufferTexture1D) \
201     USE_GL_FUNC(glFramebufferTexture2D) \
202     USE_GL_FUNC(glFramebufferTexture3D) \
203     USE_GL_FUNC(glFramebufferTextureLayer) \
204     USE_GL_FUNC(glGenFramebuffers) \
205     USE_GL_FUNC(glGenRenderbuffers) \
206     USE_GL_FUNC(glGenerateMipmap) \
207     USE_GL_FUNC(glGetFramebufferAttachmentParameteriv) \
208     USE_GL_FUNC(glGetRenderbufferParameteriv) \
209     USE_GL_FUNC(glIsFramebuffer) \
210     USE_GL_FUNC(glIsRenderbuffer) \
211     USE_GL_FUNC(glRenderbufferStorage) \
212     USE_GL_FUNC(glRenderbufferStorageMultisample) \
213     /* GL_ARB_geometry_shader4 */ \
214     USE_GL_FUNC(glFramebufferTextureARB) \
215     USE_GL_FUNC(glFramebufferTextureFaceARB) \
216     USE_GL_FUNC(glFramebufferTextureLayerARB) \
217     USE_GL_FUNC(glProgramParameteriARB) \
218     /* GL_ARB_instanced_arrays */ \
219     USE_GL_FUNC(glVertexAttribDivisorARB) \
220     /* GL_ARB_map_buffer_range */ \
221     USE_GL_FUNC(glFlushMappedBufferRange) \
222     USE_GL_FUNC(glMapBufferRange) \
223     /* GL_ARB_multisample */ \
224     USE_GL_FUNC(glSampleCoverageARB) \
225     /* GL_ARB_multitexture */ \
226     USE_GL_FUNC(glActiveTextureARB) \
227     USE_GL_FUNC(glClientActiveTextureARB) \
228     USE_GL_FUNC(glMultiTexCoord1fARB) \
229     USE_GL_FUNC(glMultiTexCoord1fvARB) \
230     USE_GL_FUNC(glMultiTexCoord2fARB) \
231     USE_GL_FUNC(glMultiTexCoord2fvARB) \
232     USE_GL_FUNC(glMultiTexCoord2svARB) \
233     USE_GL_FUNC(glMultiTexCoord3fARB) \
234     USE_GL_FUNC(glMultiTexCoord3fvARB) \
235     USE_GL_FUNC(glMultiTexCoord4fARB) \
236     USE_GL_FUNC(glMultiTexCoord4fvARB) \
237     USE_GL_FUNC(glMultiTexCoord4svARB) \
238     /* GL_ARB_occlusion_query */ \
239     USE_GL_FUNC(glBeginQueryARB) \
240     USE_GL_FUNC(glDeleteQueriesARB) \
241     USE_GL_FUNC(glEndQueryARB) \
242     USE_GL_FUNC(glGenQueriesARB) \
243     USE_GL_FUNC(glGetQueryObjectivARB) \
244     USE_GL_FUNC(glGetQueryObjectuivARB) \
245     /* GL_ARB_point_parameters */ \
246     USE_GL_FUNC(glPointParameterfARB) \
247     USE_GL_FUNC(glPointParameterfvARB) \
248     /* GL_ARB_provoking_vertex */ \
249     USE_GL_FUNC(glProvokingVertex) \
250     /* GL_ARB_shader_objects */ \
251     USE_GL_FUNC(glAttachObjectARB) \
252     USE_GL_FUNC(glBindAttribLocationARB) \
253     USE_GL_FUNC(glCompileShaderARB) \
254     USE_GL_FUNC(glCreateProgramObjectARB) \
255     USE_GL_FUNC(glCreateShaderObjectARB) \
256     USE_GL_FUNC(glDeleteObjectARB) \
257     USE_GL_FUNC(glDetachObjectARB) \
258     USE_GL_FUNC(glGetActiveUniformARB) \
259     USE_GL_FUNC(glGetAttachedObjectsARB) \
260     USE_GL_FUNC(glGetAttribLocationARB) \
261     USE_GL_FUNC(glGetHandleARB) \
262     USE_GL_FUNC(glGetInfoLogARB) \
263     USE_GL_FUNC(glGetObjectParameterfvARB) \
264     USE_GL_FUNC(glGetObjectParameterivARB) \
265     USE_GL_FUNC(glGetShaderSourceARB) \
266     USE_GL_FUNC(glGetUniformLocationARB) \
267     USE_GL_FUNC(glGetUniformfvARB) \
268     USE_GL_FUNC(glGetUniformivARB) \
269     USE_GL_FUNC(glLinkProgramARB) \
270     USE_GL_FUNC(glShaderSourceARB) \
271     USE_GL_FUNC(glUniform1fARB) \
272     USE_GL_FUNC(glUniform1fvARB) \
273     USE_GL_FUNC(glUniform1iARB) \
274     USE_GL_FUNC(glUniform1ivARB) \
275     USE_GL_FUNC(glUniform2fARB) \
276     USE_GL_FUNC(glUniform2fvARB) \
277     USE_GL_FUNC(glUniform2iARB) \
278     USE_GL_FUNC(glUniform2ivARB) \
279     USE_GL_FUNC(glUniform3fARB) \
280     USE_GL_FUNC(glUniform3fvARB) \
281     USE_GL_FUNC(glUniform3iARB) \
282     USE_GL_FUNC(glUniform3ivARB) \
283     USE_GL_FUNC(glUniform4fARB) \
284     USE_GL_FUNC(glUniform4fvARB) \
285     USE_GL_FUNC(glUniform4iARB) \
286     USE_GL_FUNC(glUniform4ivARB) \
287     USE_GL_FUNC(glUniformMatrix2fvARB) \
288     USE_GL_FUNC(glUniformMatrix3fvARB) \
289     USE_GL_FUNC(glUniformMatrix4fvARB) \
290     USE_GL_FUNC(glUseProgramObjectARB) \
291     USE_GL_FUNC(glValidateProgramARB) \
292     /* GL_ARB_sync */ \
293     USE_GL_FUNC(glClientWaitSync) \
294     USE_GL_FUNC(glDeleteSync) \
295     USE_GL_FUNC(glFenceSync) \
296     USE_GL_FUNC(glGetInteger64v) \
297     USE_GL_FUNC(glGetSynciv) \
298     USE_GL_FUNC(glIsSync) \
299     USE_GL_FUNC(glWaitSync) \
300     /* GL_ARB_texture_compression */ \
301     USE_GL_FUNC(glCompressedTexImage2DARB) \
302     USE_GL_FUNC(glCompressedTexImage3DARB) \
303     USE_GL_FUNC(glCompressedTexSubImage2DARB) \
304     USE_GL_FUNC(glCompressedTexSubImage3DARB) \
305     USE_GL_FUNC(glGetCompressedTexImageARB) \
306     /* GL_ARB_vertex_blend */ \
307     USE_GL_FUNC(glVertexBlendARB) \
308     USE_GL_FUNC(glWeightPointerARB) \
309     USE_GL_FUNC(glWeightbvARB) \
310     USE_GL_FUNC(glWeightdvARB) \
311     USE_GL_FUNC(glWeightfvARB) \
312     USE_GL_FUNC(glWeightivARB) \
313     USE_GL_FUNC(glWeightsvARB) \
314     USE_GL_FUNC(glWeightubvARB) \
315     USE_GL_FUNC(glWeightuivARB) \
316     USE_GL_FUNC(glWeightusvARB) \
317     /* GL_ARB_vertex_buffer_object */ \
318     USE_GL_FUNC(glBindBufferARB) \
319     USE_GL_FUNC(glBufferDataARB) \
320     USE_GL_FUNC(glBufferSubDataARB) \
321     USE_GL_FUNC(glDeleteBuffersARB) \
322     USE_GL_FUNC(glGenBuffersARB) \
323     USE_GL_FUNC(glGetBufferParameterivARB) \
324     USE_GL_FUNC(glGetBufferPointervARB) \
325     USE_GL_FUNC(glGetBufferSubDataARB) \
326     USE_GL_FUNC(glIsBufferARB) \
327     USE_GL_FUNC(glMapBufferARB) \
328     USE_GL_FUNC(glUnmapBufferARB) \
329     /* GL_ARB_vertex_program */ \
330     USE_GL_FUNC(glBindProgramARB) \
331     USE_GL_FUNC(glDeleteProgramsARB) \
332     USE_GL_FUNC(glDisableVertexAttribArrayARB) \
333     USE_GL_FUNC(glEnableVertexAttribArrayARB) \
334     USE_GL_FUNC(glGenProgramsARB) \
335     USE_GL_FUNC(glGetProgramivARB) \
336     USE_GL_FUNC(glProgramEnvParameter4fvARB) \
337     USE_GL_FUNC(glProgramLocalParameter4fvARB) \
338     USE_GL_FUNC(glProgramStringARB) \
339     USE_GL_FUNC(glVertexAttrib1dARB) \
340     USE_GL_FUNC(glVertexAttrib1dvARB) \
341     USE_GL_FUNC(glVertexAttrib1fARB) \
342     USE_GL_FUNC(glVertexAttrib1fvARB) \
343     USE_GL_FUNC(glVertexAttrib1sARB) \
344     USE_GL_FUNC(glVertexAttrib1svARB) \
345     USE_GL_FUNC(glVertexAttrib2dARB) \
346     USE_GL_FUNC(glVertexAttrib2dvARB) \
347     USE_GL_FUNC(glVertexAttrib2fARB) \
348     USE_GL_FUNC(glVertexAttrib2fvARB) \
349     USE_GL_FUNC(glVertexAttrib2sARB) \
350     USE_GL_FUNC(glVertexAttrib2svARB) \
351     USE_GL_FUNC(glVertexAttrib3dARB) \
352     USE_GL_FUNC(glVertexAttrib3dvARB) \
353     USE_GL_FUNC(glVertexAttrib3fARB) \
354     USE_GL_FUNC(glVertexAttrib3fvARB) \
355     USE_GL_FUNC(glVertexAttrib3sARB) \
356     USE_GL_FUNC(glVertexAttrib3svARB) \
357     USE_GL_FUNC(glVertexAttrib4NbvARB) \
358     USE_GL_FUNC(glVertexAttrib4NivARB) \
359     USE_GL_FUNC(glVertexAttrib4NsvARB) \
360     USE_GL_FUNC(glVertexAttrib4NubARB) \
361     USE_GL_FUNC(glVertexAttrib4NubvARB) \
362     USE_GL_FUNC(glVertexAttrib4NuivARB) \
363     USE_GL_FUNC(glVertexAttrib4NusvARB) \
364     USE_GL_FUNC(glVertexAttrib4bvARB) \
365     USE_GL_FUNC(glVertexAttrib4dARB) \
366     USE_GL_FUNC(glVertexAttrib4dvARB) \
367     USE_GL_FUNC(glVertexAttrib4fARB) \
368     USE_GL_FUNC(glVertexAttrib4fvARB) \
369     USE_GL_FUNC(glVertexAttrib4ivARB) \
370     USE_GL_FUNC(glVertexAttrib4sARB) \
371     USE_GL_FUNC(glVertexAttrib4svARB) \
372     USE_GL_FUNC(glVertexAttrib4ubvARB) \
373     USE_GL_FUNC(glVertexAttrib4uivARB) \
374     USE_GL_FUNC(glVertexAttrib4usvARB) \
375     USE_GL_FUNC(glVertexAttribPointerARB) \
376     /* GL_ATI_fragment_shader */ \
377     USE_GL_FUNC(glAlphaFragmentOp1ATI) \
378     USE_GL_FUNC(glAlphaFragmentOp2ATI) \
379     USE_GL_FUNC(glAlphaFragmentOp3ATI) \
380     USE_GL_FUNC(glBeginFragmentShaderATI) \
381     USE_GL_FUNC(glBindFragmentShaderATI) \
382     USE_GL_FUNC(glColorFragmentOp1ATI) \
383     USE_GL_FUNC(glColorFragmentOp2ATI) \
384     USE_GL_FUNC(glColorFragmentOp3ATI) \
385     USE_GL_FUNC(glDeleteFragmentShaderATI) \
386     USE_GL_FUNC(glEndFragmentShaderATI) \
387     USE_GL_FUNC(glGenFragmentShadersATI) \
388     USE_GL_FUNC(glPassTexCoordATI) \
389     USE_GL_FUNC(glSampleMapATI) \
390     USE_GL_FUNC(glSetFragmentShaderConstantATI) \
391     /* GL_ATI_separate_stencil */ \
392     USE_GL_FUNC(glStencilOpSeparateATI) \
393     USE_GL_FUNC(glStencilFuncSeparateATI) \
394     /* GL_EXT_blend_color */ \
395     USE_GL_FUNC(glBlendColorEXT) \
396     /* GL_EXT_blend_equation_separate */ \
397     USE_GL_FUNC(glBlendFuncSeparateEXT) \
398     /* GL_EXT_blend_func_separate */ \
399     USE_GL_FUNC(glBlendEquationSeparateEXT) \
400     /* GL_EXT_blend_minmax */ \
401     USE_GL_FUNC(glBlendEquationEXT) \
402     /* GL_EXT_depth_bounds_test */ \
403     USE_GL_FUNC(glDepthBoundsEXT) \
404     /* GL_EXT_draw_buffers2 */ \
405     USE_GL_FUNC(glColorMaskIndexedEXT) \
406     USE_GL_FUNC(glDisableIndexedEXT) \
407     USE_GL_FUNC(glEnableIndexedEXT) \
408     USE_GL_FUNC(glGetBooleanIndexedvEXT) \
409     USE_GL_FUNC(glGetIntegerIndexedvEXT) \
410     USE_GL_FUNC(glIsEnabledIndexedEXT) \
411     /* GL_EXT_fog_coord */ \
412     USE_GL_FUNC(glFogCoordPointerEXT) \
413     USE_GL_FUNC(glFogCoorddEXT) \
414     USE_GL_FUNC(glFogCoorddvEXT) \
415     USE_GL_FUNC(glFogCoordfEXT) \
416     USE_GL_FUNC(glFogCoordfvEXT) \
417     /* GL_EXT_framebuffer_blit */ \
418     USE_GL_FUNC(glBlitFramebufferEXT) \
419     /* GL_EXT_framebuffer_multisample */ \
420     USE_GL_FUNC(glRenderbufferStorageMultisampleEXT) \
421     /* GL_EXT_framebuffer_object */ \
422     USE_GL_FUNC(glBindFramebufferEXT) \
423     USE_GL_FUNC(glBindRenderbufferEXT) \
424     USE_GL_FUNC(glCheckFramebufferStatusEXT) \
425     USE_GL_FUNC(glDeleteFramebuffersEXT) \
426     USE_GL_FUNC(glDeleteRenderbuffersEXT) \
427     USE_GL_FUNC(glFramebufferRenderbufferEXT) \
428     USE_GL_FUNC(glFramebufferTexture1DEXT) \
429     USE_GL_FUNC(glFramebufferTexture2DEXT) \
430     USE_GL_FUNC(glFramebufferTexture3DEXT) \
431     USE_GL_FUNC(glGenFramebuffersEXT) \
432     USE_GL_FUNC(glGenRenderbuffersEXT) \
433     USE_GL_FUNC(glGenerateMipmapEXT) \
434     USE_GL_FUNC(glGetFramebufferAttachmentParameterivEXT) \
435     USE_GL_FUNC(glGetRenderbufferParameterivEXT) \
436     USE_GL_FUNC(glIsFramebufferEXT) \
437     USE_GL_FUNC(glIsRenderbufferEXT) \
438     USE_GL_FUNC(glRenderbufferStorageEXT) \
439     /* GL_EXT_gpu_program_parameters */ \
440     USE_GL_FUNC(glProgramEnvParameters4fvEXT) \
441     USE_GL_FUNC(glProgramLocalParameters4fvEXT) \
442     /* GL_EXT_gpu_shader4 */\
443     USE_GL_FUNC(glBindFragDataLocationEXT) \
444     USE_GL_FUNC(glGetFragDataLocationEXT) \
445     USE_GL_FUNC(glGetUniformuivEXT) \
446     USE_GL_FUNC(glGetVertexAttribIivEXT) \
447     USE_GL_FUNC(glGetVertexAttribIuivEXT) \
448     USE_GL_FUNC(glUniform1uiEXT) \
449     USE_GL_FUNC(glUniform1uivEXT) \
450     USE_GL_FUNC(glUniform2uiEXT) \
451     USE_GL_FUNC(glUniform2uivEXT) \
452     USE_GL_FUNC(glUniform3uiEXT) \
453     USE_GL_FUNC(glUniform3uivEXT) \
454     USE_GL_FUNC(glUniform4uiEXT) \
455     USE_GL_FUNC(glUniform4uivEXT) \
456     USE_GL_FUNC(glVertexAttribI1iEXT) \
457     USE_GL_FUNC(glVertexAttribI1ivEXT) \
458     USE_GL_FUNC(glVertexAttribI1uiEXT) \
459     USE_GL_FUNC(glVertexAttribI1uivEXT) \
460     USE_GL_FUNC(glVertexAttribI2iEXT) \
461     USE_GL_FUNC(glVertexAttribI2ivEXT) \
462     USE_GL_FUNC(glVertexAttribI2uiEXT) \
463     USE_GL_FUNC(glVertexAttribI2uivEXT) \
464     USE_GL_FUNC(glVertexAttribI3iEXT) \
465     USE_GL_FUNC(glVertexAttribI3ivEXT) \
466     USE_GL_FUNC(glVertexAttribI3uiEXT) \
467     USE_GL_FUNC(glVertexAttribI3uivEXT) \
468     USE_GL_FUNC(glVertexAttribI4bvEXT) \
469     USE_GL_FUNC(glVertexAttribI4iEXT) \
470     USE_GL_FUNC(glVertexAttribI4ivEXT) \
471     USE_GL_FUNC(glVertexAttribI4svEXT) \
472     USE_GL_FUNC(glVertexAttribI4ubvEXT) \
473     USE_GL_FUNC(glVertexAttribI4uiEXT) \
474     USE_GL_FUNC(glVertexAttribI4uivEXT) \
475     USE_GL_FUNC(glVertexAttribI4usvEXT) \
476     USE_GL_FUNC(glVertexAttribIPointerEXT) \
477     /* GL_EXT_paletted_texture */ \
478     USE_GL_FUNC(glColorTableEXT) \
479     /* GL_EXT_point_parameters */ \
480     USE_GL_FUNC(glPointParameterfEXT) \
481     USE_GL_FUNC(glPointParameterfvEXT) \
482     /* GL_EXT_provoking_vertex */ \
483     USE_GL_FUNC(glProvokingVertexEXT) \
484     /* GL_EXT_secondary_color */ \
485     USE_GL_FUNC(glSecondaryColor3fEXT) \
486     USE_GL_FUNC(glSecondaryColor3fvEXT) \
487     USE_GL_FUNC(glSecondaryColor3ubEXT) \
488     USE_GL_FUNC(glSecondaryColor3ubvEXT) \
489     USE_GL_FUNC(glSecondaryColorPointerEXT) \
490     /* GL_EXT_stencil_two_side */ \
491     USE_GL_FUNC(glActiveStencilFaceEXT) \
492     /* GL_EXT_texture3D */ \
493     USE_GL_FUNC(glTexImage3D) \
494     USE_GL_FUNC(glTexImage3DEXT) \
495     USE_GL_FUNC(glTexSubImage3D) \
496     USE_GL_FUNC(glTexSubImage3DEXT) \
497     /* GL_NV_fence */ \
498     USE_GL_FUNC(glDeleteFencesNV) \
499     USE_GL_FUNC(glFinishFenceNV) \
500     USE_GL_FUNC(glGenFencesNV) \
501     USE_GL_FUNC(glGetFenceivNV) \
502     USE_GL_FUNC(glIsFenceNV) \
503     USE_GL_FUNC(glSetFenceNV) \
504     USE_GL_FUNC(glTestFenceNV) \
505     /* GL_NV_half_float */ \
506     USE_GL_FUNC(glColor3hNV) \
507     USE_GL_FUNC(glColor3hvNV) \
508     USE_GL_FUNC(glColor4hNV) \
509     USE_GL_FUNC(glColor4hvNV) \
510     USE_GL_FUNC(glFogCoordhNV) \
511     USE_GL_FUNC(glFogCoordhvNV) \
512     USE_GL_FUNC(glMultiTexCoord1hNV) \
513     USE_GL_FUNC(glMultiTexCoord1hvNV) \
514     USE_GL_FUNC(glMultiTexCoord2hNV) \
515     USE_GL_FUNC(glMultiTexCoord2hvNV) \
516     USE_GL_FUNC(glMultiTexCoord3hNV) \
517     USE_GL_FUNC(glMultiTexCoord3hvNV) \
518     USE_GL_FUNC(glMultiTexCoord4hNV) \
519     USE_GL_FUNC(glMultiTexCoord4hvNV) \
520     USE_GL_FUNC(glNormal3hNV) \
521     USE_GL_FUNC(glNormal3hvNV) \
522     USE_GL_FUNC(glSecondaryColor3hNV) \
523     USE_GL_FUNC(glSecondaryColor3hvNV) \
524     USE_GL_FUNC(glTexCoord1hNV) \
525     USE_GL_FUNC(glTexCoord1hvNV) \
526     USE_GL_FUNC(glTexCoord2hNV) \
527     USE_GL_FUNC(glTexCoord2hvNV) \
528     USE_GL_FUNC(glTexCoord3hNV) \
529     USE_GL_FUNC(glTexCoord3hvNV) \
530     USE_GL_FUNC(glTexCoord4hNV) \
531     USE_GL_FUNC(glTexCoord4hvNV) \
532     USE_GL_FUNC(glVertex2hNV) \
533     USE_GL_FUNC(glVertex2hvNV) \
534     USE_GL_FUNC(glVertex3hNV) \
535     USE_GL_FUNC(glVertex3hvNV) \
536     USE_GL_FUNC(glVertex4hNV) \
537     USE_GL_FUNC(glVertex4hvNV) \
538     USE_GL_FUNC(glVertexAttrib1hNV) \
539     USE_GL_FUNC(glVertexAttrib1hvNV) \
540     USE_GL_FUNC(glVertexAttrib2hNV) \
541     USE_GL_FUNC(glVertexAttrib2hvNV) \
542     USE_GL_FUNC(glVertexAttrib3hNV) \
543     USE_GL_FUNC(glVertexAttrib3hvNV) \
544     USE_GL_FUNC(glVertexAttrib4hNV) \
545     USE_GL_FUNC(glVertexAttrib4hvNV) \
546     USE_GL_FUNC(glVertexAttribs1hvNV) \
547     USE_GL_FUNC(glVertexAttribs2hvNV) \
548     USE_GL_FUNC(glVertexAttribs3hvNV) \
549     USE_GL_FUNC(glVertexAttribs4hvNV) \
550     USE_GL_FUNC(glVertexWeighthNV) \
551     USE_GL_FUNC(glVertexWeighthvNV) \
552     /* GL_NV_point_sprite */ \
553     USE_GL_FUNC(glPointParameteri) \
554     USE_GL_FUNC(glPointParameteriNV) \
555     USE_GL_FUNC(glPointParameteriv) \
556     USE_GL_FUNC(glPointParameterivNV) \
557     /* GL_NV_register_combiners */ \
558     USE_GL_FUNC(glCombinerInputNV) \
559     USE_GL_FUNC(glCombinerOutputNV) \
560     USE_GL_FUNC(glCombinerParameterfNV) \
561     USE_GL_FUNC(glCombinerParameterfvNV) \
562     USE_GL_FUNC(glCombinerParameteriNV) \
563     USE_GL_FUNC(glCombinerParameterivNV) \
564     USE_GL_FUNC(glFinalCombinerInputNV) \
565     /* WGL extensions */ \
566     USE_GL_FUNC(wglChoosePixelFormatARB) \
567     USE_GL_FUNC(wglGetExtensionsStringARB) \
568     USE_GL_FUNC(wglGetPixelFormatAttribfvARB) \
569     USE_GL_FUNC(wglGetPixelFormatAttribivARB) \
570     USE_GL_FUNC(wglSetPixelFormatWINE) \
571     USE_GL_FUNC(wglSwapIntervalEXT)
572
573 #endif /* __WINE_WINED3D_GL */