2 * Direct3D wine OpenGL include file
4 * Copyright 2002-2003 The wine-d3d team
5 * Copyright 2002-2004 Jason Edmeades
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
23 #ifndef __WINE_WINED3D_GL_H
24 #define __WINE_WINED3D_GL_H
26 #ifndef __WINE_CONFIG_H
27 # error You must include config.h to use this header
36 #define XMD_H /* This is to prevent the Xmd.h inclusion bug :-/ */
37 #define GL_GLEXT_PROTOTYPES
39 #define GLX_GLXEXT_PROTOTYPES
41 #ifdef HAVE_GL_GLEXT_H
42 # include <GL/glext.h>
49 /****************************************************
50 * OpenGL Extensions (EXT and ARB)
51 * #defines and functions pointer
52 ****************************************************/
54 /* GL_ARB_draw_buffers */
55 #ifndef GL_ARB_draw_buffers
56 #define GL_MAX_DRAW_BUFFERS_ARB 0x8824
57 #define GL_DRAW_BUFFER0_ARB 0x8825
58 #define GL_DRAW_BUFFER1_ARB 0x8826
59 #define GL_DRAW_BUFFER2_ARB 0x8827
60 #define GL_DRAW_BUFFER3_ARB 0x8828
61 #define GL_DRAW_BUFFER4_ARB 0x8829
62 #define GL_DRAW_BUFFER5_ARB 0x882A
63 #define GL_DRAW_BUFFER6_ARB 0x882B
64 #define GL_DRAW_BUFFER7_ARB 0x882C
65 #define GL_DRAW_BUFFER8_ARB 0x882D
66 #define GL_DRAW_BUFFER9_ARB 0x882E
67 #define GL_DRAW_BUFFER10_ARB 0x882F
68 #define GL_DRAW_BUFFER11_ARB 0x8830
69 #define GL_DRAW_BUFFER12_ARB 0x8831
70 #define GL_DRAW_BUFFER13_ARB 0x8832
71 #define GL_DRAW_BUFFER14_ARB 0x8833
72 #define GL_DRAW_BUFFER15_ARB 0x8834
74 typedef void (APIENTRY
*PGLFNDRAWBUFFERSARBPROC
) (GLsizei n
, const GLenum
*bufs
);
77 #ifndef GL_ARB_imaging
78 #define GL_CONSTANT_COLOR 0x8001
79 #define GL_ONE_MINUS_CONSTANT_COLOR 0x8002
80 #define GL_CONSTANT_ALPHA 0x8003
81 #define GL_ONE_MINUS_CONSTANT_ALPHA 0x8004
82 #define GL_BLEND_COLOR 0x8005
83 #define GL_FUNC_ADD 0x8006
86 #define GL_BLEND_EQUATION 0x8009
87 #define GL_FUNC_SUBTRACT 0x800A
88 #define GL_FUNC_REVERSE_SUBTRACT 0x800B
89 #define GL_CONVOLUTION_1D 0x8010
90 #define GL_CONVOLUTION_2D 0x8011
91 #define GL_SEPARABLE_2D 0x8012
92 #define GL_CONVOLUTION_BORDER_MODE 0x8013
93 #define GL_CONVOLUTION_FILTER_SCALE 0x8014
94 #define GL_CONVOLUTION_FILTER_BIAS 0x8015
95 #define GL_REDUCE 0x8016
96 #define GL_CONVOLUTION_FORMAT 0x8017
97 #define GL_CONVOLUTION_WIDTH 0x8018
98 #define GL_CONVOLUTION_HEIGHT 0x8019
99 #define GL_MAX_CONVOLUTION_WIDTH 0x801A
100 #define GL_MAX_CONVOLUTION_HEIGHT 0x801B
101 #define GL_POST_CONVOLUTION_RED_SCALE 0x801C
102 #define GL_POST_CONVOLUTION_GREEN_SCALE 0x801D
103 #define GL_POST_CONVOLUTION_BLUE_SCALE 0x801E
104 #define GL_POST_CONVOLUTION_ALPHA_SCALE 0x801F
105 #define GL_POST_CONVOLUTION_RED_BIAS 0x8020
106 #define GL_POST_CONVOLUTION_GREEN_BIAS 0x8021
107 #define GL_POST_CONVOLUTION_BLUE_BIAS 0x8022
108 #define GL_POST_CONVOLUTION_ALPHA_BIAS 0x8023
109 #define GL_HISTOGRAM 0x8024
110 #define GL_PROXY_HISTOGRAM 0x8025
111 #define GL_HISTOGRAM_WIDTH 0x8026
112 #define GL_HISTOGRAM_FORMAT 0x8027
113 #define GL_HISTOGRAM_RED_SIZE 0x8028
114 #define GL_HISTOGRAM_GREEN_SIZE 0x8029
115 #define GL_HISTOGRAM_BLUE_SIZE 0x802A
116 #define GL_HISTOGRAM_ALPHA_SIZE 0x802B
117 #define GL_HISTOGRAM_LUMINANCE_SIZE 0x802C
118 #define GL_HISTOGRAM_SINK 0x802D
119 #define GL_MINMAX 0x802E
120 #define GL_MINMAX_FORMAT 0x802F
121 #define GL_MINMAX_SINK 0x8030
122 #define GL_TABLE_TOO_LARGE 0x8031
123 #define GL_COLOR_MATRIX 0x80B1
124 #define GL_COLOR_MATRIX_STACK_DEPTH 0x80B2
125 #define GL_MAX_COLOR_MATRIX_STACK_DEPTH 0x80B3
126 #define GL_POST_COLOR_MATRIX_RED_SCALE 0x80B4
127 #define GL_POST_COLOR_MATRIX_GREEN_SCALE 0x80B5
128 #define GL_POST_COLOR_MATRIX_BLUE_SCALE 0x80B6
129 #define GL_POST_COLOR_MATRIX_ALPHA_SCALE 0x80B7
130 #define GL_POST_COLOR_MATRIX_RED_BIAS 0x80B8
131 #define GL_POST_COLOR_MATRIX_GREEN_BIAS 0x80B9
132 #define GL_POST_COLOR_MATRIX_BLUE_BIAS 0x80BA
133 #define GL_POST_COLOR_MATRIX_ALPHA_BIAS 0x80BB
134 #define GL_COLOR_TABLE 0x80D0
135 #define GL_POST_CONVOLUTION_COLOR_TABLE 0x80D1
136 #define GL_POST_COLOR_MATRIX_COLOR_TABLE 0x80D2
137 #define GL_PROXY_COLOR_TABLE 0x80D3
138 #define GL_PROXY_POST_CONVOLUTION_COLOR_TABLE 0x80D4
139 #define GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE 0x80D5
140 #define GL_COLOR_TABLE_SCALE 0x80D6
141 #define GL_COLOR_TABLE_BIAS 0x80D7
142 #define GL_COLOR_TABLE_FORMAT 0x80D8
143 #define GL_COLOR_TABLE_WIDTH 0x80D9
144 #define GL_COLOR_TABLE_RED_SIZE 0x80DA
145 #define GL_COLOR_TABLE_GREEN_SIZE 0x80DB
146 #define GL_COLOR_TABLE_BLUE_SIZE 0x80DC
147 #define GL_COLOR_TABLE_ALPHA_SIZE 0x80DD
148 #define GL_COLOR_TABLE_LUMINANCE_SIZE 0x80DE
149 #define GL_COLOR_TABLE_INTENSITY_SIZE 0x80DF
150 #define GL_CONSTANT_BORDER 0x8151
151 #define GL_REPLICATE_BORDER 0x8153
152 #define GL_CONVOLUTION_BORDER_COLOR 0x8154
154 typedef void (APIENTRY
*PGLFNBLENDCOLORPROC
) (GLclampf red
, GLclampf green
, GLclampf blue
, GLclampf alpha
);
155 typedef void (APIENTRY
*PGLFNBLENDEQUATIONPROC
) (GLenum mode
);
156 /* GL_ARB_multitexture */
157 #ifndef GL_ARB_multitexture
158 #define GL_ARB_multitexture 1
159 #define GL_TEXTURE0_ARB 0x84C0
160 #define GL_TEXTURE1_ARB 0x84C1
161 #define GL_TEXTURE2_ARB 0x84C2
162 #define GL_TEXTURE3_ARB 0x84C3
163 #define GL_TEXTURE4_ARB 0x84C4
164 #define GL_TEXTURE5_ARB 0x84C5
165 #define GL_TEXTURE6_ARB 0x84C6
166 #define GL_TEXTURE7_ARB 0x84C7
167 #define GL_TEXTURE8_ARB 0x84C8
168 #define GL_TEXTURE9_ARB 0x84C9
169 #define GL_TEXTURE10_ARB 0x84CA
170 #define GL_TEXTURE11_ARB 0x84CB
171 #define GL_TEXTURE12_ARB 0x84CC
172 #define GL_TEXTURE13_ARB 0x84CD
173 #define GL_TEXTURE14_ARB 0x84CE
174 #define GL_TEXTURE15_ARB 0x84CF
175 #define GL_TEXTURE16_ARB 0x84D0
176 #define GL_TEXTURE17_ARB 0x84D1
177 #define GL_TEXTURE18_ARB 0x84D2
178 #define GL_TEXTURE19_ARB 0x84D3
179 #define GL_TEXTURE20_ARB 0x84D4
180 #define GL_TEXTURE21_ARB 0x84D5
181 #define GL_TEXTURE22_ARB 0x84D6
182 #define GL_TEXTURE23_ARB 0x84D7
183 #define GL_TEXTURE24_ARB 0x84D8
184 #define GL_TEXTURE25_ARB 0x84D9
185 #define GL_TEXTURE26_ARB 0x84DA
186 #define GL_TEXTURE27_ARB 0x84DB
187 #define GL_TEXTURE28_ARB 0x84DC
188 #define GL_TEXTURE29_ARB 0x84DD
189 #define GL_TEXTURE30_ARB 0x84DE
190 #define GL_TEXTURE31_ARB 0x84DF
191 #define GL_ACTIVE_TEXTURE_ARB 0x84E0
192 #define GL_CLIENT_ACTIVE_TEXTURE_ARB 0x84E1
193 #define GL_MAX_TEXTURE_UNITS_ARB 0x84E2
195 typedef void (APIENTRY
*WINED3D_PFNGLACTIVETEXTUREARBPROC
) (GLenum texture
);
196 typedef void (APIENTRY
*WINED3D_PFNGLCLIENTACTIVETEXTUREARBPROC
) (GLenum texture
);
197 typedef void (APIENTRY
*WINED3D_PFNGLMULTITEXCOORD1FARBPROC
) (GLenum target
, GLfloat s
);
198 typedef void (APIENTRY
*WINED3D_PFNGLMULTITEXCOORD2FARBPROC
) (GLenum target
, GLfloat s
, GLfloat t
);
199 typedef void (APIENTRY
*WINED3D_PFNGLMULTITEXCOORD3FARBPROC
) (GLenum target
, GLfloat s
, GLfloat t
, GLfloat r
);
200 typedef void (APIENTRY
*WINED3D_PFNGLMULTITEXCOORD4FARBPROC
) (GLenum target
, GLfloat s
, GLfloat t
, GLfloat r
, GLfloat q
);
201 /* GL_ARB_point_parameters */
202 #ifndef GL_ARB_point_parameters
203 #define GL_ARB_point_parameters 1
204 #define GL_POINT_SIZE_MIN_ARB 0x8126
205 #define GL_POINT_SIZE_MAX_ARB 0x8127
206 #define GL_POINT_FADE_THRESHOLD_SIZE_ARB 0x8128
207 #define GL_POINT_DISTANCE_ATTENUATION_ARB 0x8129
209 typedef void (APIENTRY
* PGLFNGLPOINTPARAMETERFARBPROC
) (GLenum pname
, GLfloat param
);
210 typedef void (APIENTRY
* PGLFNGLPOINTPARAMETERFVARBPROC
) (GLenum pname
, const GLfloat
*params
);
211 /* GL_ARB_vertex_blend */
212 #ifndef GL_ARB_vertex_blend
213 #define GL_ARB_vertex_blend 1
214 #define GL_MAX_VERTEX_UNITS_ARB 0x86A4
215 #define GL_ACTIVE_VERTEX_UNITS_ARB 0x86A5
216 #define GL_WEIGHT_SUM_UNITY_ARB 0x86A6
217 #define GL_VERTEX_BLEND_ARB 0x86A7
218 #define GL_CURRENT_WEIGHT_ARB 0x86A8
219 #define GL_WEIGHT_ARRAY_TYPE_ARB 0x86A9
220 #define GL_WEIGHT_ARRAY_STRIDE_ARB 0x86AA
221 #define GL_WEIGHT_ARRAY_SIZE_ARB 0x86AB
222 #define GL_WEIGHT_ARRAY_POINTER_ARB 0x86AC
223 #define GL_WEIGHT_ARRAY_ARB 0x86AD
224 #define GL_MODELVIEW0_ARB 0x1700
225 #define GL_MODELVIEW1_ARB 0x850A
226 #define GL_MODELVIEW2_ARB 0x8722
227 #define GL_MODELVIEW3_ARB 0x8723
228 #define GL_MODELVIEW4_ARB 0x8724
229 #define GL_MODELVIEW5_ARB 0x8725
230 #define GL_MODELVIEW6_ARB 0x8726
231 #define GL_MODELVIEW7_ARB 0x8727
232 #define GL_MODELVIEW8_ARB 0x8728
233 #define GL_MODELVIEW9_ARB 0x8729
234 #define GL_MODELVIEW10_ARB 0x872A
235 #define GL_MODELVIEW11_ARB 0x872B
236 #define GL_MODELVIEW12_ARB 0x872C
237 #define GL_MODELVIEW13_ARB 0x872D
238 #define GL_MODELVIEW14_ARB 0x872E
239 #define GL_MODELVIEW15_ARB 0x872F
240 #define GL_MODELVIEW16_ARB 0x8730
241 #define GL_MODELVIEW17_ARB 0x8731
242 #define GL_MODELVIEW18_ARB 0x8732
243 #define GL_MODELVIEW19_ARB 0x8733
244 #define GL_MODELVIEW20_ARB 0x8734
245 #define GL_MODELVIEW21_ARB 0x8735
246 #define GL_MODELVIEW22_ARB 0x8736
247 #define GL_MODELVIEW23_ARB 0x8737
248 #define GL_MODELVIEW24_ARB 0x8738
249 #define GL_MODELVIEW25_ARB 0x8739
250 #define GL_MODELVIEW26_ARB 0x873A
251 #define GL_MODELVIEW27_ARB 0x873B
252 #define GL_MODELVIEW28_ARB 0x873C
253 #define GL_MODELVIEW29_ARB 0x873D
254 #define GL_MODELVIEW30_ARB 0x873E
255 #define GL_MODELVIEW31_ARB 0x873F
257 typedef void (APIENTRY
* PGLFNGLWEIGHTPOINTERARB
) (GLint size
, GLenum type
, GLsizei stride
, GLvoid
* pointer
);
258 /* GL_ARB_pixel_buffer_object */
259 #ifndef GL_ARB_pixel_buffer_object
260 #define GL_ARB_pixel_buffer_object 1
262 #define GL_PIXEL_PACK_BUFFER_ARB 0x88EB
263 #define GL_PIXEL_UNPACK_BUFFER_ARB 0x88EC
264 #define GL_PIXEL_PACK_BUFFER_BINDING_ARB 0x88ED
265 #define GL_PIXEL_UNPACK_BUFFER_BINDING_ARB 0x88EF
266 /* GL_EXT_framebuffer_object */
267 #ifndef GL_EXT_framebuffer_object
268 #define GL_EXT_framebuffer_object 1
269 #define GL_FRAMEBUFFER_EXT 0x8D40
270 #define GL_RENDERBUFFER_EXT 0x8D41
271 #define GL_STENCIL_INDEX1_EXT 0x8D46
272 #define GL_STENCIL_INDEX4_EXT 0x8D47
273 #define GL_STENCIL_INDEX8_EXT 0x8D48
274 #define GL_STENCIL_INDEX16_EXT 0x8D49
275 #define GL_RENDERBUFFER_WIDTH_EXT 0x8D42
276 #define GL_RENDERBUFFER_HEIGHT_EXT 0x8D43
277 #define GL_RENDERBUFFER_INTERNAL_FORMAT_EXT 0x8D44
278 #define GL_RENDERBUFFER_RED_SIZE_EXT 0x8D50
279 #define GL_RENDERBUFFER_GREEN_SIZE_EXT 0x8D51
280 #define GL_RENDERBUFFER_BLUE_SIZE_EXT 0x8D52
281 #define GL_RENDERBUFFER_ALPHA_SIZE_EXT 0x8D53
282 #define GL_RENDERBUFFER_DEPTH_SIZE_EXT 0x8D54
283 #define GL_RENDERBUFFER_STENCIL_SIZE_EXT 0x8D55
284 #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_EXT 0x8CD0
285 #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_EXT 0x8CD1
286 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_EXT 0x8CD2
287 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_EXT 0x8CD3
288 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_EXT 0x8CD4
289 #define GL_COLOR_ATTACHMENT0_EXT 0x8CE0
290 #define GL_COLOR_ATTACHMENT1_EXT 0x8CE1
291 #define GL_COLOR_ATTACHMENT2_EXT 0x8CE2
292 #define GL_COLOR_ATTACHMENT3_EXT 0x8CE3
293 #define GL_COLOR_ATTACHMENT4_EXT 0x8CE4
294 #define GL_COLOR_ATTACHMENT5_EXT 0x8CE5
295 #define GL_COLOR_ATTACHMENT6_EXT 0x8CE6
296 #define GL_COLOR_ATTACHMENT7_EXT 0x8CE7
297 #define GL_COLOR_ATTACHMENT8_EXT 0x8CE8
298 #define GL_COLOR_ATTACHMENT9_EXT 0x8CE9
299 #define GL_COLOR_ATTACHMENT10_EXT 0x8CEA
300 #define GL_COLOR_ATTACHMENT11_EXT 0x8CEB
301 #define GL_COLOR_ATTACHMENT12_EXT 0x8CEC
302 #define GL_COLOR_ATTACHMENT13_EXT 0x8CED
303 #define GL_COLOR_ATTACHMENT14_EXT 0x8CEE
304 #define GL_COLOR_ATTACHMENT15_EXT 0x8CEF
305 #define GL_DEPTH_ATTACHMENT_EXT 0x8D00
306 #define GL_STENCIL_ATTACHMENT_EXT 0x8D20
307 #define GL_FRAMEBUFFER_COMPLETE_EXT 0x8CD5
308 #define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT 0x8CD6
309 #define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT 0x8CD7
310 #define GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT 0x8CD9
311 #define GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT 0x8CDA
312 #define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT 0x8CDB
313 #define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT 0x8CDC
314 #define GL_FRAMEBUFFER_UNSUPPORTED_EXT 0x8CDD
315 #define GL_FRAMEBUFFER_BINDING_EXT 0x8CA6
316 #define GL_RENDERBUFFER_BINDING_EXT 0x8CA7
317 #define GL_MAX_COLOR_ATTACHMENTS_EXT 0x8CDF
318 #define GL_MAX_RENDERBUFFER_SIZE_EXT 0x84E8
319 #define GL_INVALID_FRAMEBUFFER_OPERATION_EXT 0x0506
321 typedef GLboolean (APIENTRY
* PGLFNGLISRENDERBUFFEREXTPROC
)(GLuint renderbuffer
);
322 typedef void (APIENTRY
* PGLFNGLBINDRENDERBUFFEREXTPROC
)(GLenum target
, GLuint renderbuffer
);
323 typedef void (APIENTRY
* PGLFNGLDELETERENDERBUFFERSEXTPROC
)(GLsizei n
, const GLuint
*renderbuffers
);
324 typedef void (APIENTRY
* PGLFNGLGENRENDERBUFFERSEXTPROC
)(GLsizei n
, GLuint
*renderbuffers
);
325 typedef void (APIENTRY
* PGLFNGLRENDERBUFFERSTORAGEEXTPROC
)(GLenum target
, GLenum internalformat
, GLsizei width
, GLsizei height
);
326 typedef void (APIENTRY
* PGLFNGLGETRENDERBUFFERPARAMETERIVEXTPROC
)(GLenum target
, GLenum pname
, GLint
*params
);
327 typedef GLboolean (APIENTRY
* PGLFNGLISFRAMEBUFFEREXTPROC
)(GLuint framebuffer
);
328 typedef void (APIENTRY
* PGLFNGLBINDFRAMEBUFFEREXTPROC
)(GLenum target
, GLuint framebuffer
);
329 typedef void (APIENTRY
* PGLFNGLDELETEFRAMEBUFFERSEXTPROC
)(GLsizei n
, const GLuint
*framebuffers
);
330 typedef void (APIENTRY
* PGLFNGLGENFRAMEBUFFERSEXTPROC
)(GLsizei n
, GLuint
*framebuffers
);
331 typedef GLenum (APIENTRY
* PGLFNGLCHECKFRAMEBUFFERSTATUSEXTPROC
)(GLenum target
);
332 typedef void (APIENTRY
* PGLFNGLFRAMEBUFFERTEXTURE1DEXTPROC
)(GLenum target
, GLenum attachment
, GLenum textarget
, GLuint texture
, GLint level
);
333 typedef void (APIENTRY
* PGLFNGLFRAMEBUFFERTEXTURE2DEXTPROC
)(GLenum target
, GLenum attachment
, GLenum textarget
, GLuint texture
, GLint level
);
334 typedef void (APIENTRY
* PGLFNGLFRAMEBUFFERTEXTURE3DEXTPROC
)(GLenum target
, GLenum attachment
, GLenum textarget
, GLuint texture
, GLint level
, GLint zoffset
);
335 typedef void (APIENTRY
* PGLFNGLFRAMEBUFFERRENDERBUFFEREXTPROC
)(GLenum target
, GLenum attachment
, GLenum renderbuffertarget
, GLuint renderbuffer
);
336 typedef void (APIENTRY
* PGLFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC
)(GLenum target
, GLenum attachment
, GLenum pname
, GLint
*params
);
337 typedef void (APIENTRY
* PGLFNGLGENERATEMIPMAPEXTPROC
)(GLenum target
);
338 /* GL_EXT_secondary_color */
339 #ifndef GL_EXT_secondary_color
340 #define GL_EXT_secondary_color 1
341 #define GL_COLOR_SUM_EXT 0x8458
342 #define GL_CURRENT_SECONDARY_COLOR_EXT 0x8459
343 #define GL_SECONDARY_COLOR_ARRAY_SIZE_EXT 0x845A
344 #define GL_SECONDARY_COLOR_ARRAY_TYPE_EXT 0x845B
345 #define GL_SECONDARY_COLOR_ARRAY_STRIDE_EXT 0x845C
346 #define GL_SECONDARY_COLOR_ARRAY_POINTER_EXT 0x845D
347 #define GL_SECONDARY_COLOR_ARRAY_EXT 0x845E
349 typedef void (APIENTRY
* PGLFNGLSECONDARYCOLOR3FEXTPROC
) (GLfloat red
, GLfloat green
, GLfloat blue
);
350 typedef void (APIENTRY
* PGLFNGLSECONDARYCOLOR3FVEXTPROC
) (const GLfloat
*v
);
351 typedef void (APIENTRY
* PGLFNGLSECONDARYCOLOR3UBEXTPROC
) (GLubyte red
, GLubyte green
, GLubyte blue
);
352 typedef void (APIENTRY
* PGLFNGLSECONDARYCOLORPOINTEREXTPROC
) (GLint size
, GLenum type
, GLsizei stride
, const GLvoid
*pointer
);
353 /* GL_EXT_paletted_texture */
354 #ifndef GL_EXT_paletted_texture
355 #define GL_EXT_paletted_texture 1
356 #define GL_COLOR_INDEX1_EXT 0x80E2
357 #define GL_COLOR_INDEX2_EXT 0x80E3
358 #define GL_COLOR_INDEX4_EXT 0x80E4
359 #define GL_COLOR_INDEX8_EXT 0x80E5
360 #define GL_COLOR_INDEX12_EXT 0x80E6
361 #define GL_COLOR_INDEX16_EXT 0x80E7
362 #define GL_TEXTURE_INDEX_SIZE_EXT 0x80ED
364 typedef void (APIENTRY
* PGLFNGLCOLORTABLEEXTPROC
) (GLenum target
, GLenum internalFormat
, GLsizei width
, GLenum format
, GLenum type
, const GLvoid
*table
);
365 /* GL_EXT_point_parameters */
366 #ifndef GL_EXT_point_parameters
367 #define GL_EXT_point_parameters 1
368 #define GL_POINT_SIZE_MIN_EXT 0x8126
369 #define GL_POINT_SIZE_MAX_EXT 0x8127
370 #define GL_POINT_FADE_THRESHOLD_SIZE_EXT 0x8128
371 #define GL_DISTANCE_ATTENUATION_EXT 0x8129
373 typedef void (APIENTRY
* PGLFNGLPOINTPARAMETERFEXTPROC
) (GLenum pname
, GLfloat param
);
374 typedef void (APIENTRY
* PGLFNGLPOINTPARAMETERFVEXTPROC
) (GLenum pname
, const GLfloat
*params
);
375 /* GL_EXT_texture3D */
376 #ifndef GL_EXT_texture3D
377 #define GL_PACK_SKIP_IMAGES_EXT 0x806B
378 #define GL_PACK_IMAGE_HEIGHT_EXT 0x806C
379 #define GL_UNPACK_SKIP_IMAGES_EXT 0x806D
380 #define GL_UNPACK_IMAGE_HEIGHT_EXT 0x806E
381 #define GL_TEXTURE_3D_EXT 0x806F
382 #define GL_PROXY_TEXTURE_3D_EXT 0x8070
383 #define GL_TEXTURE_DEPTH_EXT 0x8071
384 #define GL_TEXTURE_WRAP_R_EXT 0x8072
385 #define GL_MAX_3D_TEXTURE_SIZE_EXT 0x8073
387 typedef void (APIENTRY
* PGLFNGLTEXIMAGE3DEXTPROC
) (GLenum target
, GLint level
, GLenum internalformat
, GLsizei width
, GLsizei height
, GLsizei depth
, GLint border
, GLenum format
, GLenum type
, const GLvoid
*pixels
);
388 typedef void (APIENTRY
* PGLFNGLTEXSUBIMAGE3DEXTPROC
) (GLenum target
, GLint level
, GLint xoffset
, GLint yoffset
, GLint zoffset
, GLsizei width
, GLsizei height
, GLsizei depth
, GLenum format
, GLenum type
, const GLvoid
*pixels
);
389 /* GL_EXT_texture_env_combine */
390 #ifndef GL_EXT_texture_env_combine
391 #define GL_EXT_texture_env_combine 1
392 #define GL_COMBINE_EXT 0x8570
393 #define GL_COMBINE_RGB_EXT 0x8571
394 #define GL_COMBINE_ALPHA_EXT 0x8572
395 #define GL_RGB_SCALE_EXT 0x8573
396 #define GL_ADD_SIGNED_EXT 0x8574
397 #define GL_INTERPOLATE_EXT 0x8575
398 #define GL_SUBTRACT_EXT 0x84E7
399 #define GL_CONSTANT_EXT 0x8576
400 #define GL_PRIMARY_COLOR_EXT 0x8577
401 #define GL_PREVIOUS_EXT 0x8578
402 #define GL_SOURCE0_RGB_EXT 0x8580
403 #define GL_SOURCE1_RGB_EXT 0x8581
404 #define GL_SOURCE2_RGB_EXT 0x8582
405 #define GL_SOURCE3_RGB_EXT 0x8583
406 #define GL_SOURCE4_RGB_EXT 0x8584
407 #define GL_SOURCE5_RGB_EXT 0x8585
408 #define GL_SOURCE6_RGB_EXT 0x8586
409 #define GL_SOURCE7_RGB_EXT 0x8587
410 #define GL_SOURCE0_ALPHA_EXT 0x8588
411 #define GL_SOURCE1_ALPHA_EXT 0x8589
412 #define GL_SOURCE2_ALPHA_EXT 0x858A
413 #define GL_SOURCE3_ALPHA_EXT 0x858B
414 #define GL_SOURCE4_ALPHA_EXT 0x858C
415 #define GL_SOURCE5_ALPHA_EXT 0x858D
416 #define GL_SOURCE6_ALPHA_EXT 0x858E
417 #define GL_SOURCE7_ALPHA_EXT 0x858F
418 #define GL_OPERAND0_RGB_EXT 0x8590
419 #define GL_OPERAND1_RGB_EXT 0x8591
420 #define GL_OPERAND2_RGB_EXT 0x8592
421 #define GL_OPERAND3_RGB_EXT 0x8593
422 #define GL_OPERAND4_RGB_EXT 0x8594
423 #define GL_OPERAND5_RGB_EXT 0x8595
424 #define GL_OPERAND6_RGB_EXT 0x8596
425 #define GL_OPERAND7_RGB_EXT 0x8597
426 #define GL_OPERAND0_ALPHA_EXT 0x8598
427 #define GL_OPERAND1_ALPHA_EXT 0x8599
428 #define GL_OPERAND2_ALPHA_EXT 0x859A
429 #define GL_OPERAND3_ALPHA_EXT 0x859B
430 #define GL_OPERAND4_ALPHA_EXT 0x859C
431 #define GL_OPERAND5_ALPHA_EXT 0x859D
432 #define GL_OPERAND6_ALPHA_EXT 0x859E
433 #define GL_OPERAND7_ALPHA_EXT 0x859F
435 /* GL_EXT_texture_env_dot3 */
436 #ifndef GL_EXT_texture_env_dot3
437 #define GL_EXT_texture_env_dot3 1
438 #define GL_DOT3_RGB_EXT 0x8740
439 #define GL_DOT3_RGBA_EXT 0x8741
441 /* GL_EXT_texture_lod_bias */
442 #ifndef GL_EXT_texture_lod_bias
443 #define GL_EXT_texture_lod_bias 1
444 #define GL_MAX_TEXTURE_LOD_BIAS_EXT 0x84FD
445 #define GL_TEXTURE_FILTER_CONTROL_EXT 0x8500
446 #define GL_TEXTURE_LOD_BIAS_EXT 0x8501
448 /* GL_ARB_texture_border_clamp */
449 #ifndef GL_ARB_texture_border_clamp
450 #define GL_ARB_texture_border_clamp 1
451 #define GL_CLAMP_TO_BORDER_ARB 0x812D
453 /* GL_ARB_texture_mirrored_repeat (full support GL1.4) */
454 #ifndef GL_ARB_texture_mirrored_repeat
455 #define GL_ARB_texture_mirrored_repeat 1
456 #define GL_MIRRORED_REPEAT_ARB 0x8370
458 /* GL_ATI_texture_mirror_once */
459 #ifndef GL_ATI_texture_mirror_once
460 #define GL_ATI_texture_mirror_once 1
461 #define GL_MIRROR_CLAMP_ATI 0x8742
462 #define GL_MIRROR_CLAMP_TO_EDGE_ATI 0x8743
464 /* GL_ARB_texture_env_dot3 */
465 #ifndef GL_ARB_texture_env_dot3
466 #define GL_ARB_texture_env_dot3 1
467 #define GL_DOT3_RGB_ARB 0x86AE
468 #define GL_DOT3_RGBA_ARB 0x86AF
470 /* GL_EXT_texture_env_dot3 */
471 #ifndef GL_EXT_texture_env_dot3
472 #define GL_EXT_texture_env_dot3 1
473 #define GL_DOT3_RGB_EXT 0x8740
474 #define GL_DOT3_RGBA_EXT 0x8741
476 /* GL_ARB_texture_float */
477 #ifndef GL_ARB_texture_float
478 #define GL_ARB_texture_float 1
479 #define GL_RGBA32F_ARB 0x8814
480 #define GL_RGB32F_ARB 0x8815
481 #define GL_RGBA16F_ARB 0x881A
482 #define GL_RGB16F_ARB 0x881B
484 /* GL_ARB_half_float_pixel */
485 #ifndef GL_ARB_half_float_pixel
486 #define GL_ARB_half_float_pixel
487 #define GL_HALF_FLOAT_ARB 0x140B
489 /* GL_ARB_vertex_program */
490 #ifndef GL_ARB_vertex_program
491 #define GL_ARB_vertex_program 1
492 #define GL_VERTEX_PROGRAM_ARB 0x8620
493 #define GL_VERTEX_PROGRAM_POINT_SIZE_ARB 0x8642
494 #define GL_VERTEX_PROGRAM_TWO_SIDE_ARB 0x8643
495 #define GL_COLOR_SUM_ARB 0x8458
496 #define GL_PROGRAM_FORMAT_ASCII_ARB 0x8875
497 #define GL_VERTEX_ATTRIB_ARRAY_ENABLED_ARB 0x8622
498 #define GL_VERTEX_ATTRIB_ARRAY_SIZE_ARB 0x8623
499 #define GL_VERTEX_ATTRIB_ARRAY_STRIDE_ARB 0x8624
500 #define GL_VERTEX_ATTRIB_ARRAY_TYPE_ARB 0x8625
501 #define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED_ARB 0x886A
502 #define GL_CURRENT_VERTEX_ATTRIB_ARB 0x8626
503 #define GL_VERTEX_ATTRIB_ARRAY_POINTER_ARB 0x8645
504 #define GL_PROGRAM_LENGTH_ARB 0x8627
505 #define GL_PROGRAM_FORMAT_ARB 0x8876
506 #define GL_PROGRAM_BINDING_ARB 0x8677
507 #define GL_PROGRAM_INSTRUCTIONS_ARB 0x88A0
508 #define GL_MAX_PROGRAM_INSTRUCTIONS_ARB 0x88A1
509 #define GL_PROGRAM_NATIVE_INSTRUCTIONS_ARB 0x88A2
510 #define GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB 0x88A3
511 #define GL_PROGRAM_TEMPORARIES_ARB 0x88A4
512 #define GL_MAX_PROGRAM_TEMPORARIES_ARB 0x88A5
513 #define GL_PROGRAM_NATIVE_TEMPORARIES_ARB 0x88A6
514 #define GL_MAX_PROGRAM_NATIVE_TEMPORARIES_ARB 0x88A7
515 #define GL_PROGRAM_PARAMETERS_ARB 0x88A8
516 #define GL_MAX_PROGRAM_PARAMETERS_ARB 0x88A9
517 #define GL_PROGRAM_NATIVE_PARAMETERS_ARB 0x88AA
518 #define GL_MAX_PROGRAM_NATIVE_PARAMETERS_ARB 0x88AB
519 #define GL_PROGRAM_ATTRIBS_ARB 0x88AC
520 #define GL_MAX_PROGRAM_ATTRIBS_ARB 0x88AD
521 #define GL_PROGRAM_NATIVE_ATTRIBS_ARB 0x88AE
522 #define GL_MAX_PROGRAM_NATIVE_ATTRIBS_ARB 0x88AF
523 #define GL_PROGRAM_ADDRESS_REGISTERS_ARB 0x88B0
524 #define GL_MAX_PROGRAM_ADDRESS_REGISTERS_ARB 0x88B1
525 #define GL_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB 0x88B2
526 #define GL_MAX_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB 0x88B3
527 #define GL_MAX_PROGRAM_LOCAL_PARAMETERS_ARB 0x88B4
528 #define GL_MAX_PROGRAM_ENV_PARAMETERS_ARB 0x88B5
529 #define GL_PROGRAM_UNDER_NATIVE_LIMITS_ARB 0x88B6
530 #define GL_PROGRAM_STRING_ARB 0x8628
531 #define GL_PROGRAM_ERROR_POSITION_ARB 0x864B
532 #define GL_CURRENT_MATRIX_ARB 0x8641
533 #define GL_TRANSPOSE_CURRENT_MATRIX_ARB 0x88B7
534 #define GL_CURRENT_MATRIX_STACK_DEPTH_ARB 0x8640
535 #define GL_MAX_VERTEX_ATTRIBS_ARB 0x8869
536 #define GL_MAX_PROGRAM_MATRICES_ARB 0x862F
537 #define GL_MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB 0x862E
538 #define GL_PROGRAM_ERROR_STRING_ARB 0x8874
539 #define GL_MATRIX0_ARB 0x88C0
540 #define GL_MATRIX1_ARB 0x88C1
541 #define GL_MATRIX2_ARB 0x88C2
542 #define GL_MATRIX3_ARB 0x88C3
543 #define GL_MATRIX4_ARB 0x88C4
544 #define GL_MATRIX5_ARB 0x88C5
545 #define GL_MATRIX6_ARB 0x88C6
546 #define GL_MATRIX7_ARB 0x88C7
547 #define GL_MATRIX8_ARB 0x88C8
548 #define GL_MATRIX9_ARB 0x88C9
549 #define GL_MATRIX10_ARB 0x88CA
550 #define GL_MATRIX11_ARB 0x88CB
551 #define GL_MATRIX12_ARB 0x88CC
552 #define GL_MATRIX13_ARB 0x88CD
553 #define GL_MATRIX14_ARB 0x88CE
554 #define GL_MATRIX15_ARB 0x88CF
555 #define GL_MATRIX16_ARB 0x88D0
556 #define GL_MATRIX17_ARB 0x88D1
557 #define GL_MATRIX18_ARB 0x88D2
558 #define GL_MATRIX19_ARB 0x88D3
559 #define GL_MATRIX20_ARB 0x88D4
560 #define GL_MATRIX21_ARB 0x88D5
561 #define GL_MATRIX22_ARB 0x88D6
562 #define GL_MATRIX23_ARB 0x88D7
563 #define GL_MATRIX24_ARB 0x88D8
564 #define GL_MATRIX25_ARB 0x88D9
565 #define GL_MATRIX26_ARB 0x88DA
566 #define GL_MATRIX27_ARB 0x88DB
567 #define GL_MATRIX28_ARB 0x88DC
568 #define GL_MATRIX29_ARB 0x88DD
569 #define GL_MATRIX30_ARB 0x88DE
570 #define GL_MATRIX31_ARB 0x88DF
572 typedef void (APIENTRY
* PGLFNVERTEXATTRIB1DARBPROC
) (GLuint index
, GLdouble x
);
573 typedef void (APIENTRY
* PGLFNVERTEXATTRIB1DVARBPROC
) (GLuint index
, const GLdouble
*v
);
574 typedef void (APIENTRY
* PGLFNVERTEXATTRIB1FARBPROC
) (GLuint index
, GLfloat x
);
575 typedef void (APIENTRY
* PGLFNVERTEXATTRIB1FVARBPROC
) (GLuint index
, const GLfloat
*v
);
576 typedef void (APIENTRY
* PGLFNVERTEXATTRIB1SARBPROC
) (GLuint index
, GLshort x
);
577 typedef void (APIENTRY
* PGLFNVERTEXATTRIB1SVARBPROC
) (GLuint index
, const GLshort
*v
);
578 typedef void (APIENTRY
* PGLFNVERTEXATTRIB2DARBPROC
) (GLuint index
, GLdouble x
, GLdouble y
);
579 typedef void (APIENTRY
* PGLFNVERTEXATTRIB2DVARBPROC
) (GLuint index
, const GLdouble
*v
);
580 typedef void (APIENTRY
* PGLFNVERTEXATTRIB2FARBPROC
) (GLuint index
, GLfloat x
, GLfloat y
);
581 typedef void (APIENTRY
* PGLFNVERTEXATTRIB2FVARBPROC
) (GLuint index
, const GLfloat
*v
);
582 typedef void (APIENTRY
* PGLFNVERTEXATTRIB2SARBPROC
) (GLuint index
, GLshort x
, GLshort y
);
583 typedef void (APIENTRY
* PGLFNVERTEXATTRIB2SVARBPROC
) (GLuint index
, const GLshort
*v
);
584 typedef void (APIENTRY
* PGLFNVERTEXATTRIB3DARBPROC
) (GLuint index
, GLdouble x
, GLdouble y
, GLdouble z
);
585 typedef void (APIENTRY
* PGLFNVERTEXATTRIB3DVARBPROC
) (GLuint index
, const GLdouble
*v
);
586 typedef void (APIENTRY
* PGLFNVERTEXATTRIB3FARBPROC
) (GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
);
587 typedef void (APIENTRY
* PGLFNVERTEXATTRIB3FVARBPROC
) (GLuint index
, const GLfloat
*v
);
588 typedef void (APIENTRY
* PGLFNVERTEXATTRIB3SARBPROC
) (GLuint index
, GLshort x
, GLshort y
, GLshort z
);
589 typedef void (APIENTRY
* PGLFNVERTEXATTRIB3SVARBPROC
) (GLuint index
, const GLshort
*v
);
590 typedef void (APIENTRY
* PGLFNVERTEXATTRIB4NBVARBPROC
) (GLuint index
, const GLbyte
*v
);
591 typedef void (APIENTRY
* PGLFNVERTEXATTRIB4NIVARBPROC
) (GLuint index
, const GLint
*v
);
592 typedef void (APIENTRY
* PGLFNVERTEXATTRIB4NSVARBPROC
) (GLuint index
, const GLshort
*v
);
593 typedef void (APIENTRY
* PGLFNVERTEXATTRIB4NUBARBPROC
) (GLuint index
, GLubyte x
, GLubyte y
, GLubyte z
, GLubyte w
);
594 typedef void (APIENTRY
* PGLFNVERTEXATTRIB4NUBVARBPROC
) (GLuint index
, const GLubyte
*v
);
595 typedef void (APIENTRY
* PGLFNVERTEXATTRIB4NUIVARBPROC
) (GLuint index
, const GLuint
*v
);
596 typedef void (APIENTRY
* PGLFNVERTEXATTRIB4NUSVARBPROC
) (GLuint index
, const GLushort
*v
);
597 typedef void (APIENTRY
* PGLFNVERTEXATTRIB4BVARBPROC
) (GLuint index
, const GLbyte
*v
);
598 typedef void (APIENTRY
* PGLFNVERTEXATTRIB4DARBPROC
) (GLuint index
, GLdouble x
, GLdouble y
, GLdouble z
, GLdouble w
);
599 typedef void (APIENTRY
* PGLFNVERTEXATTRIB4DVARBPROC
) (GLuint index
, const GLdouble
*v
);
600 typedef void (APIENTRY
* PGLFNVERTEXATTRIB4FARBPROC
) (GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
);
601 typedef void (APIENTRY
* PGLFNVERTEXATTRIB4FVARBPROC
) (GLuint index
, const GLfloat
*v
);
602 typedef void (APIENTRY
* PGLFNVERTEXATTRIB4IVARBPROC
) (GLuint index
, const GLint
*v
);
603 typedef void (APIENTRY
* PGLFNVERTEXATTRIB4SARBPROC
) (GLuint index
, GLshort x
, GLshort y
, GLshort z
, GLshort w
);
604 typedef void (APIENTRY
* PGLFNVERTEXATTRIB4SVARBPROC
) (GLuint index
, const GLshort
*v
);
605 typedef void (APIENTRY
* PGLFNVERTEXATTRIB4UBVARBPROC
) (GLuint index
, const GLubyte
*v
);
606 typedef void (APIENTRY
* PGLFNVERTEXATTRIB4UIVARBPROC
) (GLuint index
, const GLuint
*v
);
607 typedef void (APIENTRY
* PGLFNVERTEXATTRIB4USVARBPROC
) (GLuint index
, const GLushort
*v
);
608 typedef void (APIENTRY
* PGLFNVERTEXATTRIBPOINTERARBPROC
) (GLuint index
, GLint size
, GLenum type
, GLboolean normalized
, GLsizei stride
, const GLvoid
*pointer
);
609 typedef void (APIENTRY
* PGLFNENABLEVERTEXATTRIBARRAYARBPROC
) (GLuint index
);
610 typedef void (APIENTRY
* PGLFNDISABLEVERTEXATTRIBARRAYARBPROC
) (GLuint index
);
611 typedef void (APIENTRY
* PGLFNPROGRAMSTRINGARBPROC
) (GLenum target
, GLenum format
, GLsizei len
, const GLvoid
*string
);
612 typedef void (APIENTRY
* PGLFNBINDPROGRAMARBPROC
) (GLenum target
, GLuint program
);
613 typedef void (APIENTRY
* PGLFNDELETEPROGRAMSARBPROC
) (GLsizei n
, const GLuint
*programs
);
614 typedef void (APIENTRY
* PGLFNGENPROGRAMSARBPROC
) (GLsizei n
, GLuint
*programs
);
615 typedef void (APIENTRY
* PGLFNPROGRAMENVPARAMETER4DARBPROC
) (GLenum target
, GLuint index
, GLdouble x
, GLdouble y
, GLdouble z
, GLdouble w
);
616 typedef void (APIENTRY
* PGLFNPROGRAMENVPARAMETER4DVARBPROC
) (GLenum target
, GLuint index
, const GLdouble
*params
);
617 typedef void (APIENTRY
* PGLFNPROGRAMENVPARAMETER4FARBPROC
) (GLenum target
, GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
);
618 typedef void (APIENTRY
* PGLFNPROGRAMENVPARAMETER4FVARBPROC
) (GLenum target
, GLuint index
, const GLfloat
*params
);
619 typedef void (APIENTRY
* PGLFNPROGRAMLOCALPARAMETER4DARBPROC
) (GLenum target
, GLuint index
, GLdouble x
, GLdouble y
, GLdouble z
, GLdouble w
);
620 typedef void (APIENTRY
* PGLFNPROGRAMLOCALPARAMETER4DVARBPROC
) (GLenum target
, GLuint index
, const GLdouble
*params
);
621 typedef void (APIENTRY
* PGLFNPROGRAMLOCALPARAMETER4FARBPROC
) (GLenum target
, GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
);
622 typedef void (APIENTRY
* PGLFNPROGRAMLOCALPARAMETER4FVARBPROC
) (GLenum target
, GLuint index
, const GLfloat
*params
);
623 typedef void (APIENTRY
* PGLFNGETPROGRAMENVPARAMETERDVARBPROC
) (GLenum target
, GLuint index
, GLdouble
*params
);
624 typedef void (APIENTRY
* PGLFNGETPROGRAMENVPARAMETERFVARBPROC
) (GLenum target
, GLuint index
, GLfloat
*params
);
625 typedef void (APIENTRY
* PGLFNGETPROGRAMLOCALPARAMETERDVARBPROC
) (GLenum target
, GLuint index
, GLdouble
*params
);
626 typedef void (APIENTRY
* PGLFNGETPROGRAMLOCALPARAMETERFVARBPROC
) (GLenum target
, GLuint index
, GLfloat
*params
);
627 typedef void (APIENTRY
* PGLFNGETPROGRAMIVARBPROC
) (GLenum target
, GLenum pname
, GLint
*params
);
628 typedef void (APIENTRY
* PGLFNGETPROGRAMSTRINGARBPROC
) (GLenum target
, GLenum pname
, GLvoid
*string
);
629 typedef void (APIENTRY
* PGLFNGETVERTEXATTRIBDVARBPROC
) (GLuint index
, GLenum pname
, GLdouble
*params
);
630 typedef void (APIENTRY
* PGLFNGETVERTEXATTRIBFVARBPROC
) (GLuint index
, GLenum pname
, GLfloat
*params
);
631 typedef void (APIENTRY
* PGLFNGETVERTEXATTRIBIVARBPROC
) (GLuint index
, GLenum pname
, GLint
*params
);
632 typedef void (APIENTRY
* PGLFNGETVERTEXATTRIBPOINTERVARBPROC
) (GLuint index
, GLenum pname
, GLvoid
* *pointer
);
633 typedef GLboolean (APIENTRY
* PGLFNISPROGRAMARBPROC
) (GLuint program
);
634 #ifndef GL_ARB_fragment_program
635 #define GL_ARB_fragment_program 1
636 #define GL_FRAGMENT_PROGRAM_ARB 0x8804
637 #define GL_PROGRAM_ALU_INSTRUCTIONS_ARB 0x8805
638 #define GL_PROGRAM_TEX_INSTRUCTIONS_ARB 0x8806
639 #define GL_PROGRAM_TEX_INDIRECTIONS_ARB 0x8807
640 #define GL_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB 0x8808
641 #define GL_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB 0x8809
642 #define GL_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB 0x880A
643 #define GL_MAX_PROGRAM_ALU_INSTRUCTIONS_ARB 0x880B
644 #define GL_MAX_PROGRAM_TEX_INSTRUCTIONS_ARB 0x880C
645 #define GL_MAX_PROGRAM_TEX_INDIRECTIONS_ARB 0x880D
646 #define GL_MAX_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB 0x880E
647 #define GL_MAX_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB 0x880F
648 #define GL_MAX_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB 0x8810
649 #define GL_MAX_TEXTURE_COORDS_ARB 0x8871
650 #define GL_MAX_TEXTURE_IMAGE_UNITS_ARB 0x8872
651 /* All ARB_fragment_program entry points are shared with ARB_vertex_program. */
653 /* GL_ARB_vertex_buffer_object */
654 #ifndef GL_ARB_vertex_buffer_object
655 #define GL_BUFFER_SIZE_ARB 0x8764
656 #define GL_BUFFER_USAGE_ARB 0x8765
657 #define GL_ARRAY_BUFFER_ARB 0x8892
658 #define GL_ELEMENT_ARRAY_BUFFER_ARB 0x8893
659 #define GL_ARRAY_BUFFER_BINDING_ARB 0x8894
660 #define GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB 0x8895
661 #define GL_VERTEX_ARRAY_BUFFER_BINDING_ARB 0x8896
662 #define GL_NORMAL_ARRAY_BUFFER_BINDING_ARB 0x8897
663 #define GL_COLOR_ARRAY_BUFFER_BINDING_ARB 0x8898
664 #define GL_INDEX_ARRAY_BUFFER_BINDING_ARB 0x8899
665 #define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB 0x889A
666 #define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING_ARB 0x889B
667 #define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING_ARB 0x889C
668 #define GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING_ARB 0x889D
669 #define GL_WEIGHT_ARRAY_BUFFER_BINDING_ARB 0x889E
670 #define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB 0x889F
671 #define GL_READ_ONLY_ARB 0x88B8
672 #define GL_WRITE_ONLY_ARB 0x88B9
673 #define GL_READ_WRITE_ARB 0x88BA
674 #define GL_BUFFER_ACCESS_ARB 0x88BB
675 #define GL_BUFFER_MAPPED_ARB 0x88BC
676 #define GL_BUFFER_MAP_POINTER_ARB 0x88BD
677 #define GL_STREAM_DRAW_ARB 0x88E0
678 #define GL_STREAM_READ_ARB 0x88E1
679 #define GL_STREAM_COPY_ARB 0x88E2
680 #define GL_STATIC_DRAW_ARB 0x88E4
681 #define GL_STATIC_READ_ARB 0x88E5
682 #define GL_STATIC_COPY_ARB 0x88E6
683 #define GL_DYNAMIC_DRAW_ARB 0x88E8
684 #define GL_DYNAMIC_READ_ARB 0x88E9
685 #define GL_DYNAMIC_COPY_ARB 0x88EA
687 typedef void (APIENTRY
* PGLFNBINDBUFFERARBPROC
) (GLenum target
, GLuint buffer
);
688 typedef void (APIENTRY
* PGLFNDELETEBUFFERSARBPROC
) (GLsizei n
, const GLuint
*buffers
);
689 typedef void (APIENTRY
* PGLFNGENBUFFERSARBPROC
) (GLsizei n
, GLuint
*buffers
);
690 typedef GLboolean (APIENTRY
* PGLFNISBUFFERARBPROC
) (GLuint buffer
);
691 typedef void (APIENTRY
* PGLFNBUFFERDATAARBPROC
) (GLenum target
, ptrdiff_t size
, const GLvoid
*data
, GLenum usage
);
692 typedef void (APIENTRY
* PGLFNBUFFERSUBDATAARBPROC
) (GLenum target
, ptrdiff_t offset
, ptrdiff_t size
, const GLvoid
*data
);
693 typedef void (APIENTRY
* PGLFNGETBUFFERSUBDATAARBPROC
) (GLenum target
, ptrdiff_t offset
, ptrdiff_t size
, GLvoid
*data
);
694 typedef GLvoid
* (APIENTRY
* PGLFNMAPBUFFERARBPROC
) (GLenum target
, GLenum access
);
695 typedef GLboolean (APIENTRY
* PGLFNUNMAPBUFFERARBPROC
) (GLenum target
);
696 typedef void (APIENTRY
* PGLFNGETBUFFERPARAMETERIVARBPROC
) (GLenum target
, GLenum pname
, GLint
*params
);
697 typedef void (APIENTRY
* PGLFNGETBUFFERPOINTERVARBPROC
) (GLenum target
, GLenum pname
, GLvoid
* *params
);
698 /* GL_EXT_fog_coord */
699 #ifndef GL_EXT_fog_coord
700 #define GL_EXT_fog_coord 1
701 #define GL_FOG_COORDINATE_SOURCE_EXT 0x8450
702 #define GL_FOG_COORDINATE_EXT 0x8451
703 #define GL_FRAGMENT_DEPTH_EXT 0x8452
704 #define GL_CURRENT_FOG_COORDINATE_EXT 0x8453
705 #define GL_FOG_COORDINATE_ARRAY_TYPE_EXT 0x8454
706 #define GL_FOG_COORDINATE_ARRAY_STRIDE_EXT 0x8455
707 #define GL_FOG_COORDINATE_ARRAY_POINTER_EXT 0x8456
708 #define GL_FOG_COORDINATE_ARRAY_EXT 0x8457
709 #endif /* GL_EXT_fog_coord */
710 typedef void (APIENTRY
* PGLFNGLFOGCOORDFEXTPROC
) (GLfloat intesity
);
711 typedef void (APIENTRY
* PGLFNGLFOGCOORDFVEXTPROC
) (GLfloat intesity
);
712 typedef void (APIENTRY
* PGLFNGLFOGCOORDDEXTPROC
) (GLfloat intesity
);
713 typedef void (APIENTRY
* PGLFNGLFOGCOORDDVEXTPROC
) (GLfloat intesity
);
714 typedef void (APIENTRY
* PGLFNGLFOGCOORDPOINTEREXTPROC
) (GLenum type
, GLsizei stride
, GLvoid
*data
);
715 /* GL_ARB_shader_objects (GLSL) */
716 #ifndef GL_ARB_shader_objects
717 #define GL_ARB_shader_objects 1
718 typedef char GLcharARB
;
719 typedef unsigned int GLhandleARB
;
720 #define GL_OBJECT_DELETE_STATUS_ARB 0x8B80
721 #define GL_OBJECT_COMPILE_STATUS_ARB 0x8B81
722 #define GL_OBJECT_LINK_STATUS_ARB 0x8B82
723 #define GL_OBJECT_VALIDATE_STATUS_ARB 0x8B83
724 #define GL_OBJECT_INFO_LOG_LENGTH_ARB 0x8B84
725 #define GL_OBJECT_ATTACHED_OBJECTS_ARB 0x8B85
726 #define GL_OBJECT_ACTIVE_UNIFORMS_ARB 0x8B86
727 #define GL_OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB 0x8B87
728 #define GL_OBJECT_SHADER_SOURCE_LENGTH_ARB 0x8B88
730 #ifndef GL_ARB_shading_language_100
731 #define GL_ARB_shading_language_100 1
732 #define GL_SHADING_LANGUAGE_VERSION_ARB 0x8B8C
734 #ifndef GL_ARB_fragment_shader
735 #define GL_ARB_fragment_shader 1
736 #define GL_FRAGMENT_SHADER_ARB 0x8B30
737 #define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB 0x8B49
739 #ifndef GL_ARB_vertex_shader
740 #define GL_ARB_vertex_shader 1
741 #define GL_VERTEX_SHADER_ARB 0x8B31
742 #define GL_MAX_VERTEX_UNIFORM_COMPONENTS_ARB 0x8B4A
743 #define GL_PROGRAM_OBJECT_ARB 0x8B40
744 #define GL_SHADER_OBJECT_ARB 0x8B48
745 #define GL_OBJECT_TYPE_ARB 0x8B4E
746 #define GL_OBJECT_SUBTYPE_ARB 0x8B4F
747 #define GL_FLOAT_VEC2_ARB 0x8B50
748 #define GL_FLOAT_VEC3_ARB 0x8B51
749 #define GL_FLOAT_VEC4_ARB 0x8B52
750 #define GL_INT_VEC2_ARB 0x8B53
751 #define GL_INT_VEC3_ARB 0x8B54
752 #define GL_INT_VEC4_ARB 0x8B55
753 #define GL_BOOL_ARB 0x8B56
754 #define GL_BOOL_VEC2_ARB 0x8B57
755 #define GL_BOOL_VEC3_ARB 0x8B58
756 #define GL_BOOL_VEC4_ARB 0x8B59
757 #define GL_FLOAT_MAT2_ARB 0x8B5A
758 #define GL_FLOAT_MAT3_ARB 0x8B5B
759 #define GL_FLOAT_MAT4_ARB 0x8B5C
760 #define GL_SAMPLER_1D_ARB 0x8B5D
761 #define GL_SAMPLER_2D_ARB 0x8B5E
762 #define GL_SAMPLER_3D_ARB 0x8B5F
763 #define GL_SAMPLER_CUBE_ARB 0x8B60
764 #define GL_SAMPLER_1D_SHADOW_ARB 0x8B61
765 #define GL_SAMPLER_2D_SHADOW_ARB 0x8B62
767 typedef void (APIENTRY
* WINED3D_PFNGLGETOBJECTPARAMETERIVARBPROC
) (GLhandleARB obj
, GLenum pname
, GLint
*params
);
768 typedef void (APIENTRY
* WINED3D_PFNGLGETOBJECTPARAMETERFVARBPROC
) (GLhandleARB obj
, GLenum pname
, GLfloat
*params
);
769 typedef GLint (APIENTRY
* WINED3D_PFNGLGETUNIFORMLOCATIONARBPROC
) (GLhandleARB programObj
, const GLcharARB
*name
);
770 typedef void (APIENTRY
* WINED3D_PFNGLGETACTIVEUNIFORMARBPROC
) (GLhandleARB programObj
, GLuint index
, GLsizei maxLength
, GLsizei
*length
, GLint
*size
, GLenum
*type
, GLcharARB
*name
);
771 typedef void (APIENTRY
* WINED3D_PFNGLUNIFORM1IARBPROC
) (GLint location
, GLint v0
);
772 typedef void (APIENTRY
* WINED3D_PFNGLUNIFORM2IARBPROC
) (GLint location
, GLint v0
, GLint v1
);
773 typedef void (APIENTRY
* WINED3D_PFNGLUNIFORM3IARBPROC
) (GLint location
, GLint v0
, GLint v1
, GLint v2
);
774 typedef void (APIENTRY
* WINED3D_PFNGLUNIFORM4IARBPROC
) (GLint location
, GLint v0
, GLint v1
, GLint v2
, GLint v3
);
775 typedef void (APIENTRY
* WINED3D_PFNGLUNIFORM1FARBPROC
) (GLint location
, GLfloat v0
);
776 typedef void (APIENTRY
* WINED3D_PFNGLUNIFORM2FARBPROC
) (GLint location
, GLfloat v0
, GLfloat v1
);
777 typedef void (APIENTRY
* WINED3D_PFNGLUNIFORM3FARBPROC
) (GLint location
, GLfloat v0
, GLfloat v1
, GLfloat v2
);
778 typedef void (APIENTRY
* WINED3D_PFNGLUNIFORM4FARBPROC
) (GLint location
, GLfloat v0
, GLfloat v1
, GLfloat v2
, GLfloat v3
);
779 typedef void (APIENTRY
* WINED3D_PFNGLUNIFORM1IVARBPROC
) (GLint location
, GLsizei count
, const GLint
*value
);
780 typedef void (APIENTRY
* WINED3D_PFNGLUNIFORM2IVARBPROC
) (GLint location
, GLsizei count
, const GLint
*value
);
781 typedef void (APIENTRY
* WINED3D_PFNGLUNIFORM3IVARBPROC
) (GLint location
, GLsizei count
, const GLint
*value
);
782 typedef void (APIENTRY
* WINED3D_PFNGLUNIFORM4IVARBPROC
) (GLint location
, GLsizei count
, const GLint
*value
);
783 typedef void (APIENTRY
* WINED3D_PFNGLUNIFORM1FVARBPROC
) (GLint location
, GLsizei count
, const GLfloat
*value
);
784 typedef void (APIENTRY
* WINED3D_PFNGLUNIFORM2FVARBPROC
) (GLint location
, GLsizei count
, const GLfloat
*value
);
785 typedef void (APIENTRY
* WINED3D_PFNGLUNIFORM3FVARBPROC
) (GLint location
, GLsizei count
, const GLfloat
*value
);
786 typedef void (APIENTRY
* WINED3D_PFNGLUNIFORM4FVARBPROC
) (GLint location
, GLsizei count
, const GLfloat
*value
);
787 typedef void (APIENTRY
* WINED3D_PFNGLUNIFORMMATRIX2FVARBPROC
) (GLint location
, GLsizei count
, GLboolean transpose
, const GLfloat
*value
);
788 typedef void (APIENTRY
* WINED3D_PFNGLUNIFORMMATRIX3FVARBPROC
) (GLint location
, GLsizei count
, GLboolean transpose
, const GLfloat
*value
);
789 typedef void (APIENTRY
* WINED3D_PFNGLUNIFORMMATRIX4FVARBPROC
) (GLint location
, GLsizei count
, GLboolean transpose
, const GLfloat
*value
);
790 typedef void (APIENTRY
* WINED3D_PFNGLGETUNIFORMFVARBPROC
) (GLhandleARB programObj
, GLint location
, GLfloat
*params
);
791 typedef void (APIENTRY
* WINED3D_PFNGLGETUNIFORMIVARBPROC
) (GLhandleARB programObj
, GLint location
, GLint
*params
);
792 typedef void (APIENTRY
* WINED3D_PFNGLGETINFOLOGARBPROC
) (GLhandleARB obj
, GLsizei maxLength
, GLsizei
*length
, GLcharARB
*infoLog
);
793 typedef void (APIENTRY
* WINED3D_PFNGLUSEPROGRAMOBJECTARBPROC
) (GLhandleARB programObj
);
794 typedef GLhandleARB (APIENTRY
* WINED3D_PFNGLCREATESHADEROBJECTARBPROC
) (GLenum shaderType
);
795 typedef void (APIENTRY
* WINED3D_PFNGLSHADERSOURCEARBPROC
) (GLhandleARB shaderObj
, GLsizei count
, const GLcharARB
* *string
, const GLint
*length
);
796 typedef void (APIENTRY
* WINED3D_PFNGLCOMPILESHADERARBPROC
) (GLhandleARB shaderObj
);
797 typedef GLhandleARB (APIENTRY
* WINED3D_PFNGLCREATEPROGRAMOBJECTARBPROC
) (void);
798 typedef void (APIENTRY
* WINED3D_PFNGLATTACHOBJECTARBPROC
) (GLhandleARB containerObj
, GLhandleARB obj
);
799 typedef void (APIENTRY
* WINED3D_PFNGLLINKPROGRAMARBPROC
) (GLhandleARB programObj
);
800 typedef void (APIENTRY
* WINED3D_PFNGLDETACHOBJECTARBPROC
) (GLhandleARB containerObj
, GLhandleARB attachedObj
);
801 typedef void (APIENTRY
* WINED3D_PFNGLDELETEOBJECTARBPROC
) (GLhandleARB obj
);
802 typedef void (APIENTRY
* WINED3D_PFNGLVALIDATEPROGRAMARBPROC
) (GLhandleARB programObj
);
803 typedef void (APIENTRY
* WINED3D_PFNGLGETATTACHEDOBJECTSARBPROC
) (GLhandleARB containerObj
, GLsizei maxCount
, GLsizei
*count
, GLhandleARB
*obj
);
804 typedef GLhandleARB (APIENTRY
* WINED3D_PFNGLGETHANDLEARBPROC
) (GLenum pname
);
805 typedef void (APIENTRY
* WINED3D_PFNGLGETSHADERSOURCEARBPROC
) (GLhandleARB obj
, GLsizei maxLength
, GLsizei
*length
, GLcharARB
*source
);
806 typedef void (APIENTRY
* WINED3D_PFNGLBINDATTRIBLOCATIONARBPROC
) (GLhandleARB programObj
, GLuint index
, const GLcharARB
*name
);
807 typedef GLint (APIENTRY
* WINED3D_PFNGLGETATTRIBLOCATIONARBPROC
) (GLhandleARB programObj
, const GLcharARB
*name
);
808 /* GL_EXT_texture_compression_s3tc */
809 #ifndef GL_EXT_texture_compression_s3tc
810 #define GL_EXT_texture_compression_s3tc 1
811 #define GL_COMPRESSED_RGB_S3TC_DXT1_EXT 0x83F0
812 #define GL_COMPRESSED_RGBA_S3TC_DXT1_EXT 0x83F1
813 #define GL_COMPRESSED_RGBA_S3TC_DXT3_EXT 0x83F2
814 #define GL_COMPRESSED_RGBA_S3TC_DXT5_EXT 0x83F3
816 typedef void (APIENTRY
* PGLFNCOMPRESSEDTEXIMAGE3DPROC
) (GLenum target
, GLint level
, GLenum internalformat
, GLsizei width
, GLsizei height
, GLsizei depth
, GLint border
, GLsizei imageSize
, const GLvoid
*data
);
817 typedef void (APIENTRY
* PGLFNCOMPRESSEDTEXIMAGE2DPROC
) (GLenum target
, GLint level
, GLenum internalformat
, GLsizei width
, GLsizei height
, GLint border
, GLsizei imageSize
, const GLvoid
*data
);
818 typedef void (APIENTRY
* PGLFNCOMPRESSEDTEXIMAGE1DPROC
) (GLenum target
, GLint level
, GLenum internalformat
, GLsizei width
, GLint border
, GLsizei imageSize
, const GLvoid
*data
);
819 typedef void (APIENTRY
* PGLFNCOMPRESSEDTEXSUBIMAGE3DPROC
) (GLenum target
, GLint level
, GLint xoffset
, GLint yoffset
, GLint zoffset
, GLsizei width
, GLsizei height
, GLsizei depth
, GLenum format
, GLsizei imageSize
, const GLvoid
*data
);
820 typedef void (APIENTRY
* PGLFNCOMPRESSEDTEXSUBIMAGE2DPROC
) (GLenum target
, GLint level
, GLint xoffset
, GLint yoffset
, GLsizei width
, GLsizei height
, GLenum format
, GLsizei imageSize
, const GLvoid
*data
);
821 typedef void (APIENTRY
* PGLFNCOMPRESSEDTEXSUBIMAGE1DPROC
) (GLenum target
, GLint level
, GLint xoffset
, GLsizei width
, GLenum format
, GLsizei imageSize
, const GLvoid
*data
);
822 typedef void (APIENTRY
* PGLFNGETCOMPRESSEDTEXIMAGEPROC
) (GLenum target
, GLint level
, void *img
);
823 /* GL_EXT_stencil_wrap */
824 #ifndef GL_EXT_stencil_wrap
825 #define GL_EXT_stencil_wrap 1
826 #define GL_INCR_WRAP_EXT 0x8507
827 #define GL_DECR_WRAP_EXT 0x8508
829 /* GL_NV_fog_distance */
830 #ifndef GL_NV_fog_distance
831 #define GL_NV_fog_distance 1
832 #define GL_FOG_DISTANCE_MODE_NV 0x855A
833 #define GL_EYE_RADIAL_NV 0x855B
834 #define GL_EYE_PLANE_ABSOLUTE_NV 0x855C
835 /* reuse GL_EYE_PLANE */
837 /* GL_NV_texgen_reflection */
838 #ifndef GL_NV_texgen_reflection
839 #define GL_NV_texgen_reflection 1
840 #define GL_NORMAL_MAP_NV 0x8511
841 #define GL_REFLECTION_MAP_NV 0x8512
843 /* GL_NV_register_combiners */
844 #ifndef GL_NV_register_combiners
845 #define GL_NV_register_combiners 1
846 #define GL_REGISTER_COMBINERS_NV 0x8522
847 #define GL_VARIABLE_A_NV 0x8523
848 #define GL_VARIABLE_B_NV 0x8524
849 #define GL_VARIABLE_C_NV 0x8525
850 #define GL_VARIABLE_D_NV 0x8526
851 #define GL_VARIABLE_E_NV 0x8527
852 #define GL_VARIABLE_F_NV 0x8528
853 #define GL_VARIABLE_G_NV 0x8529
854 #define GL_CONSTANT_COLOR0_NV 0x852A
855 #define GL_CONSTANT_COLOR1_NV 0x852B
856 #define GL_PRIMARY_COLOR_NV 0x852C
857 #define GL_SECONDARY_COLOR_NV 0x852D
858 #define GL_SPARE0_NV 0x852E
859 #define GL_SPARE1_NV 0x852F
860 #define GL_DISCARD_NV 0x8530
861 #define GL_E_TIMES_F_NV 0x8531
862 #define GL_SPARE0_PLUS_SECONDARY_COLOR_NV 0x8532
863 #define GL_UNSIGNED_IDENTITY_NV 0x8536
864 #define GL_UNSIGNED_INVERT_NV 0x8537
865 #define GL_EXPAND_NORMAL_NV 0x8538
866 #define GL_EXPAND_NEGATE_NV 0x8539
867 #define GL_HALF_BIAS_NORMAL_NV 0x853A
868 #define GL_HALF_BIAS_NEGATE_NV 0x853B
869 #define GL_SIGNED_IDENTITY_NV 0x853C
870 #define GL_SIGNED_NEGATE_NV 0x853D
871 #define GL_SCALE_BY_TWO_NV 0x853E
872 #define GL_SCALE_BY_FOUR_NV 0x853F
873 #define GL_SCALE_BY_ONE_HALF_NV 0x8540
874 #define GL_BIAS_BY_NEGATIVE_ONE_HALF_NV 0x8541
875 #define GL_COMBINER_INPUT_NV 0x8542
876 #define GL_COMBINER_MAPPING_NV 0x8543
877 #define GL_COMBINER_COMPONENT_USAGE_NV 0x8544
878 #define GL_COMBINER_AB_DOT_PRODUCT_NV 0x8545
879 #define GL_COMBINER_CD_DOT_PRODUCT_NV 0x8546
880 #define GL_COMBINER_MUX_SUM_NV 0x8547
881 #define GL_COMBINER_SCALE_NV 0x8548
882 #define GL_COMBINER_BIAS_NV 0x8549
883 #define GL_COMBINER_AB_OUTPUT_NV 0x854A
884 #define GL_COMBINER_CD_OUTPUT_NV 0x854B
885 #define GL_COMBINER_SUM_OUTPUT_NV 0x854C
886 #define GL_MAX_GENERAL_COMBINERS_NV 0x854D
887 #define GL_NUM_GENERAL_COMBINERS_NV 0x854E
888 #define GL_COLOR_SUM_CLAMP_NV 0x854F
889 #define GL_COMBINER0_NV 0x8550
890 #define GL_COMBINER1_NV 0x8551
891 #define GL_COMBINER2_NV 0x8552
892 #define GL_COMBINER3_NV 0x8553
893 #define GL_COMBINER4_NV 0x8554
894 #define GL_COMBINER5_NV 0x8555
895 #define GL_COMBINER6_NV 0x8556
896 #define GL_COMBINER7_NV 0x8557
897 /* reuse GL_TEXTURE0_ARB */
898 /* reuse GL_TEXTURE1_ARB */
903 typedef void (APIENTRY
* PGLFNCOMBINERPARAMETERFVNVPROC
) (GLenum pname
, const GLfloat
*params
);
904 typedef void (APIENTRY
* PGLFNCOMBINERPARAMETERFNVPROC
) (GLenum pname
, GLfloat param
);
905 typedef void (APIENTRY
* PGLFNCOMBINERPARAMETERIVNVPROC
) (GLenum pname
, const GLint
*params
);
906 typedef void (APIENTRY
* PGLFNCOMBINERPARAMETERINVPROC
) (GLenum pname
, GLint param
);
907 typedef void (APIENTRY
* PGLFNCOMBINERINPUTNVPROC
) (GLenum stage
, GLenum portion
, GLenum variable
, GLenum input
, GLenum mapping
, GLenum componentUsage
);
908 typedef void (APIENTRY
* PGLFNCOMBINEROUTPUTNVPROC
) (GLenum stage
, GLenum portion
, GLenum abOutput
, GLenum cdOutput
, GLenum sumOutput
, GLenum scale
, GLenum bias
, GLboolean abDotProduct
, GLboolean cdDotProduct
, GLboolean muxSum
);
909 typedef void (APIENTRY
* PGLFNFINALCOMBINERINPUTNVPROC
) (GLenum variable
, GLenum input
, GLenum mapping
, GLenum componentUsage
);
910 typedef void (APIENTRY
* PGLFNGETCOMBINERINPUTPARAMETERFVNVPROC
) (GLenum stage
, GLenum portion
, GLenum variable
, GLenum pname
, GLfloat
*params
);
911 typedef void (APIENTRY
* PGLFNGETCOMBINERINPUTPARAMETERIVNVPROC
) (GLenum stage
, GLenum portion
, GLenum variable
, GLenum pname
, GLint
*params
);
912 typedef void (APIENTRY
* PGLFNGETCOMBINEROUTPUTPARAMETERFVNVPROC
) (GLenum stage
, GLenum portion
, GLenum pname
, GLfloat
*params
);
913 typedef void (APIENTRY
* PGLFNGETCOMBINEROUTPUTPARAMETERIVNVPROC
) (GLenum stage
, GLenum portion
, GLenum pname
, GLint
*params
);
914 typedef void (APIENTRY
* PGLFNGETFINALCOMBINERINPUTPARAMETERFVNVPROC
) (GLenum variable
, GLenum pname
, GLfloat
*params
);
915 typedef void (APIENTRY
* PGLFNGETFINALCOMBINERINPUTPARAMETERIVNVPROC
) (GLenum variable
, GLenum pname
, GLint
*params
);
916 /* GL_NV_register_combiners2 */
917 #ifndef GL_NV_register_combiners2
918 #define GL_NV_register_combiners2 1
919 #define GL_PER_STAGE_CONSTANTS_NV 0x8535
921 typedef void (APIENTRY
* PGLFNCOMBINERSTAGEPARAMETERFVNVPROC
) (GLenum stage
, GLenum pname
, const GLfloat
*params
);
922 typedef void (APIENTRY
* PGLFNGETCOMBINERSTAGEPARAMETERFVNVPROC
) (GLenum stage
, GLenum pname
, GLfloat
*params
);
923 /* GL_NV_texture_shader */
924 #ifndef GL_NV_texture_shader
925 #define GL_NV_texture_shader 1
926 #define GL_OFFSET_TEXTURE_RECTANGLE_NV 0x864C
927 #define GL_OFFSET_TEXTURE_RECTANGLE_SCALE_NV 0x864D
928 #define GL_DOT_PRODUCT_TEXTURE_RECTANGLE_NV 0x864E
929 #define GL_RGBA_UNSIGNED_DOT_PRODUCT_MAPPING_NV 0x86D9
930 #define GL_UNSIGNED_INT_S8_S8_8_8_NV 0x86DA
931 #define GL_UNSIGNED_INT_8_8_S8_S8_REV_NV 0x86DB
932 #define GL_DSDT_MAG_INTENSITY_NV 0x86DC
933 #define GL_SHADER_CONSISTENT_NV 0x86DD
934 #define GL_TEXTURE_SHADER_NV 0x86DE
935 #define GL_SHADER_OPERATION_NV 0x86DF
936 #define GL_CULL_MODES_NV 0x86E0
937 #define GL_OFFSET_TEXTURE_MATRIX_NV 0x86E1
938 #define GL_OFFSET_TEXTURE_SCALE_NV 0x86E2
939 #define GL_OFFSET_TEXTURE_BIAS_NV 0x86E3
940 #define GL_OFFSET_TEXTURE_2D_MATRIX_NV GL_OFFSET_TEXTURE_MATRIX_NV
941 #define GL_OFFSET_TEXTURE_2D_SCALE_NV GL_OFFSET_TEXTURE_SCALE_NV
942 #define GL_OFFSET_TEXTURE_2D_BIAS_NV GL_OFFSET_TEXTURE_BIAS_NV
943 #define GL_PREVIOUS_TEXTURE_INPUT_NV 0x86E4
944 #define GL_CONST_EYE_NV 0x86E5
945 #define GL_PASS_THROUGH_NV 0x86E6
946 #define GL_CULL_FRAGMENT_NV 0x86E7
947 #define GL_OFFSET_TEXTURE_2D_NV 0x86E8
948 #define GL_DEPENDENT_AR_TEXTURE_2D_NV 0x86E9
949 #define GL_DEPENDENT_GB_TEXTURE_2D_NV 0x86EA
950 #define GL_DOT_PRODUCT_NV 0x86EC
951 #define GL_DOT_PRODUCT_DEPTH_REPLACE_NV 0x86ED
952 #define GL_DOT_PRODUCT_TEXTURE_2D_NV 0x86EE
953 #define GL_DOT_PRODUCT_TEXTURE_CUBE_MAP_NV 0x86F0
954 #define GL_DOT_PRODUCT_DIFFUSE_CUBE_MAP_NV 0x86F1
955 #define GL_DOT_PRODUCT_REFLECT_CUBE_MAP_NV 0x86F2
956 #define GL_DOT_PRODUCT_CONST_EYE_REFLECT_CUBE_MAP_NV 0x86F3
957 #define GL_HILO_NV 0x86F4
958 #define GL_DSDT_NV 0x86F5
959 #define GL_DSDT_MAG_NV 0x86F6
960 #define GL_DSDT_MAG_VIB_NV 0x86F7
961 #define GL_HILO16_NV 0x86F8
962 #define GL_SIGNED_HILO_NV 0x86F9
963 #define GL_SIGNED_HILO16_NV 0x86FA
964 #define GL_SIGNED_RGBA_NV 0x86FB
965 #define GL_SIGNED_RGBA8_NV 0x86FC
966 #define GL_SIGNED_RGB_NV 0x86FE
967 #define GL_SIGNED_RGB8_NV 0x86FF
968 #define GL_SIGNED_LUMINANCE_NV 0x8701
969 #define GL_SIGNED_LUMINANCE8_NV 0x8702
970 #define GL_SIGNED_LUMINANCE_ALPHA_NV 0x8703
971 #define GL_SIGNED_LUMINANCE8_ALPHA8_NV 0x8704
972 #define GL_SIGNED_ALPHA_NV 0x8705
973 #define GL_SIGNED_ALPHA8_NV 0x8706
974 #define GL_SIGNED_INTENSITY_NV 0x8707
975 #define GL_SIGNED_INTENSITY8_NV 0x8708
976 #define GL_DSDT8_NV 0x8709
977 #define GL_DSDT8_MAG8_NV 0x870A
978 #define GL_DSDT8_MAG8_INTENSITY8_NV 0x870B
979 #define GL_SIGNED_RGB_UNSIGNED_ALPHA_NV 0x870C
980 #define GL_SIGNED_RGB8_UNSIGNED_ALPHA8_NV 0x870D
981 #define GL_HI_SCALE_NV 0x870E
982 #define GL_LO_SCALE_NV 0x870F
983 #define GL_DS_SCALE_NV 0x8710
984 #define GL_DT_SCALE_NV 0x8711
985 #define GL_MAGNITUDE_SCALE_NV 0x8712
986 #define GL_VIBRANCE_SCALE_NV 0x8713
987 #define GL_HI_BIAS_NV 0x8714
988 #define GL_LO_BIAS_NV 0x8715
989 #define GL_DS_BIAS_NV 0x8716
990 #define GL_DT_BIAS_NV 0x8717
991 #define GL_MAGNITUDE_BIAS_NV 0x8718
992 #define GL_VIBRANCE_BIAS_NV 0x8719
993 #define GL_TEXTURE_BORDER_VALUES_NV 0x871A
994 #define GL_TEXTURE_HI_SIZE_NV 0x871B
995 #define GL_TEXTURE_LO_SIZE_NV 0x871C
996 #define GL_TEXTURE_DS_SIZE_NV 0x871D
997 #define GL_TEXTURE_DT_SIZE_NV 0x871E
998 #define GL_TEXTURE_MAG_SIZE_NV 0x871F
1000 /* GL_NV_texture_shader2 */
1001 #ifndef GL_NV_texture_shader2
1002 #define GL_NV_texture_shader2 1
1003 #define GL_DOT_PRODUCT_TEXTURE_3D_NV 0x86EF
1005 /* GL_NV_texture_shader3 */
1006 #ifndef GL_NV_texture_shader3
1007 #define GL_NV_texture_shader3 1
1008 #define GL_OFFSET_PROJECTIVE_TEXTURE_2D_NV 0x8850
1009 #define GL_OFFSET_PROJECTIVE_TEXTURE_2D_SCALE_NV 0x8851
1010 #define GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_NV 0x8852
1011 #define GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_SCALE_NV 0x8853
1012 #define GL_OFFSET_HILO_TEXTURE_2D_NV 0x8854
1013 #define GL_OFFSET_HILO_TEXTURE_RECTANGLE_NV 0x8855
1014 #define GL_OFFSET_HILO_PROJECTIVE_TEXTURE_2D_NV 0x8856
1015 #define GL_OFFSET_HILO_PROJECTIVE_TEXTURE_RECTANGLE_NV 0x8857
1016 #define GL_DEPENDENT_HILO_TEXTURE_2D_NV 0x8858
1017 #define GL_DEPENDENT_RGB_TEXTURE_3D_NV 0x8859
1018 #define GL_DEPENDENT_RGB_TEXTURE_CUBE_MAP_NV 0x885A
1019 #define GL_DOT_PRODUCT_PASS_THROUGH_NV 0x885B
1020 #define GL_DOT_PRODUCT_TEXTURE_1D_NV 0x885C
1021 #define GL_DOT_PRODUCT_AFFINE_DEPTH_REPLACE_NV 0x885D
1022 #define GL_HILO8_NV 0x885E
1023 #define GL_SIGNED_HILO8_NV 0x885F
1024 #define GL_FORCE_BLUE_TO_ONE_NV 0x8860
1026 /* GL_ATI_texture_env_combine3 */
1027 #ifndef GL_ATI_texture_env_combine3
1028 #define GL_ATI_texture_env_combine3 1
1029 #define GL_MODULATE_ADD_ATI 0x8744
1030 #define GL_MODULATE_SIGNED_ADD_ATI 0x8745
1031 #define GL_MODULATE_SUBTRACT_ATI 0x8746
1039 /* GL_ARB_point_sprite */
1040 #ifndef GL_ARB_point_sprite
1041 #define GL_ARB_point_sprite 1
1042 #define GL_POINT_SPRITE_ARB 0x8861
1043 #define GL_COORD_REPLACE_ARB 0x8862
1046 * @TODO: GL_NV_point_sprite
1052 /* GL_ARB_occlusion_query */
1053 #ifndef GL_ARB_occlusion_query
1054 #define GL_ARB_occlusion_query 1
1055 #define GL_SAMPLES_PASSED_ARB 0x8914
1056 #define GL_QUERY_COUNTER_BITS_ARB 0x8864
1057 #define GL_CURRENT_QUERY_ARB 0x8865
1058 #define GL_QUERY_RESULT_ARB 0x8866
1059 #define GL_QUERY_RESULT_AVAILABLE_ARB 0x8867
1061 typedef void (APIENTRY
* PGLFNGENQUERIESARBPROC
) (GLsizei n
, GLuint
*queries
);
1062 typedef void (APIENTRY
* PGLFNDELETEQUERIESARBPROC
) (GLsizei n
, const GLuint
*queries
);
1063 typedef GLboolean (APIENTRY
* PGLFNISQUERYARBPROC
) (GLuint query
);
1064 typedef void (APIENTRY
* PGLFNBEGINQUERYARBPROC
) (GLenum target
, GLuint query
);
1065 typedef void (APIENTRY
* PGLFNENDQUERYARBPROC
) (GLenum target
);
1066 typedef void (APIENTRY
* PGLFNGETQUERYIVARBPROC
) (GLenum target
, GLenum pname
, GLint
*params
);
1067 typedef void (APIENTRY
* PGLFNGETQUERYOBJECTIVARBPROC
) (GLuint query
, GLenum pname
, GLint
*params
);
1068 typedef void (APIENTRY
* PGLFNGETQUERYOBJECTUIVARBPROC
) (GLuint query
, GLenum pname
, GLuint
*params
);
1069 /* GL_HP_occlusion_test isn't complete, but it's constants are used by GL_NV_occlusion_query */
1070 #ifndef GL_HP_occlusion_test
1071 #define GL_HP_occlusion_test 1
1072 #define GL_OCCLUSION_TEST_HP 0x8165
1073 #define GL_OCCLUSION_TEST_RESULT_HP 0x8165
1075 /* GL_NV_occlusion_query */
1076 #ifndef GL_NV_occlusion_query
1077 #define GL_NV_occlusion_query 1
1078 #define GL_PIXEL_COUNTER_BITS_NV 0x8864
1079 #define GL_CURRENT_OCCLUSION_QUERY_ID_NV 0x8865
1080 #define GL_PIXEL_COUNT_NV 0x8866
1081 #define GL_PIXEL_COUNT_AVAILABLE_NV 0x8867
1083 typedef void (APIENTRY
* PGLFNGENOCCLUSIONQUERIESNVPROC
) (GLsizei n
, GLuint
*ids
);
1084 typedef void (APIENTRY
* PGLFNDELETEOCCLUSIONQUERIESNVPROC
) (GLsizei n
, const GLuint
*ids
);
1085 typedef GLboolean (APIENTRY
* PGLFNISOCCLUSIONQUERYNVPROC
) (GLuint id
);
1086 typedef void (APIENTRY
* PGLFNBEGINOCCLUSIONQUERYNVPROC
) (GLuint id
);
1087 typedef void (APIENTRY
* PGLFNENDOCCLUSIONQUERYNVPROC
) (void);
1088 typedef void (APIENTRY
* PGLFNGETOCCLUSIONQUERYIVNVPROC
) (GLuint id
, GLenum pname
, GLint
*params
);
1089 typedef void (APIENTRY
* PGLFNGETOCCLUSIONQUERYUIVNVPROC
) (GLuint id
, GLenum pname
, GLuint
*params
);
1090 /* GL_EXT_stencil_two_side */
1091 #ifndef GL_EXT_stencil_two_side
1092 #define GL_EXT_stencil_two_side 1
1093 #define GL_STENCIL_TEST_TWO_SIDE_EXT 0x8910
1094 #define GL_ACTIVE_STENCIL_FACE_EXT 0x8911
1096 typedef void (APIENTRY
* PGLFNACTIVESTENCILFACEEXTPROC
) (GLenum face
);
1097 /* GL_ATI_separate_stencil */
1098 #ifndef GL_ATI_separate_stencil
1099 #define GL_ATI_separate_stencil 1
1100 #define GL_STENCIL_BACK_FUNC_ATI 0x8800
1101 #define GL_STENCIL_BACK_FAIL_ATI 0x8801
1102 #define GL_STENCIL_BACK_PASS_DEPTH_FAIL_ATI 0x8802
1103 #define GL_STENCIL_BACK_PASS_DEPTH_PASS_ATI 0x8803
1105 typedef void (APIENTRY
* PGLFNSTENCILOPSEPARATEATIPROC
) (GLenum
, GLenum
, GLenum
, GLenum
);
1106 typedef void (APIENTRY
* PGLFNSTENCILFUNCSEPARATEATIPROC
) (GLenum
, GLenum
, GLint
, GLuint
);
1107 /* GL_VERSION_2_0 */
1108 #ifndef GL_VERSION_2_0
1109 #define GL_VERSION_2_0 1
1110 #define GL_BLEND_EQUATION_RGB GL_BLEND_EQUATION
1111 #define GL_VERTEX_ATTRIB_ARRAY_ENABLED 0x8622
1112 #define GL_VERTEX_ATTRIB_ARRAY_SIZE 0x8623
1113 #define GL_VERTEX_ATTRIB_ARRAY_STRIDE 0x8624
1114 #define GL_VERTEX_ATTRIB_ARRAY_TYPE 0x8625
1115 #define GL_CURRENT_VERTEX_ATTRIB 0x8626
1116 #define GL_VERTEX_PROGRAM_POINT_SIZE 0x8642
1117 #define GL_VERTEX_PROGRAM_TWO_SIDE 0x8643
1118 #define GL_VERTEX_ATTRIB_ARRAY_POINTER 0x8645
1119 #define GL_STENCIL_BACK_FUNC 0x8800
1120 #define GL_STENCIL_BACK_FAIL 0x8801
1121 #define GL_STENCIL_BACK_PASS_DEPTH_FAIL 0x8802
1122 #define GL_STENCIL_BACK_PASS_DEPTH_PASS 0x8803
1123 #define GL_MAX_DRAW_BUFFERS 0x8824
1124 #define GL_DRAW_BUFFER0 0x8825
1125 #define GL_DRAW_BUFFER1 0x8826
1126 #define GL_DRAW_BUFFER2 0x8827
1127 #define GL_DRAW_BUFFER3 0x8828
1128 #define GL_DRAW_BUFFER4 0x8829
1129 #define GL_DRAW_BUFFER5 0x882A
1130 #define GL_DRAW_BUFFER6 0x882B
1131 #define GL_DRAW_BUFFER7 0x882C
1132 #define GL_DRAW_BUFFER8 0x882D
1133 #define GL_DRAW_BUFFER9 0x882E
1134 #define GL_DRAW_BUFFER10 0x882F
1135 #define GL_DRAW_BUFFER11 0x8830
1136 #define GL_DRAW_BUFFER12 0x8831
1137 #define GL_DRAW_BUFFER13 0x8832
1138 #define GL_DRAW_BUFFER14 0x8833
1139 #define GL_DRAW_BUFFER15 0x8834
1140 #define GL_BLEND_EQUATION_ALPHA 0x883D
1141 #define GL_POINT_SPRITE 0x8861
1142 #define GL_COORD_REPLACE 0x8862
1143 #define GL_MAX_VERTEX_ATTRIBS 0x8869
1144 #define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886A
1145 #define GL_MAX_TEXTURE_COORDS 0x8871
1146 #define GL_MAX_TEXTURE_IMAGE_UNITS 0x8872
1147 #define GL_FRAGMENT_SHADER 0x8B30
1148 #define GL_VERTEX_SHADER 0x8B31
1149 #define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS 0x8B49
1150 #define GL_MAX_VERTEX_UNIFORM_COMPONENTS 0x8B4A
1151 #define GL_MAX_VARYING_FLOATS 0x8B4B
1152 #define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8B4C
1153 #define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D
1154 #define GL_SHADER_TYPE 0x8B4F
1155 #define GL_FLOAT_VEC2 0x8B50
1156 #define GL_FLOAT_VEC3 0x8B51
1157 #define GL_FLOAT_VEC4 0x8B52
1158 #define GL_INT_VEC2 0x8B53
1159 #define GL_INT_VEC3 0x8B54
1160 #define GL_INT_VEC4 0x8B55
1161 #define GL_BOOL 0x8B56
1162 #define GL_BOOL_VEC2 0x8B57
1163 #define GL_BOOL_VEC3 0x8B58
1164 #define GL_BOOL_VEC4 0x8B59
1165 #define GL_FLOAT_MAT2 0x8B5A
1166 #define GL_FLOAT_MAT3 0x8B5B
1167 #define GL_FLOAT_MAT4 0x8B5C
1168 #define GL_SAMPLER_1D 0x8B5D
1169 #define GL_SAMPLER_2D 0x8B5E
1170 #define GL_SAMPLER_3D 0x8B5F
1171 #define GL_SAMPLER_CUBE 0x8B60
1172 #define GL_SAMPLER_1D_SHADOW 0x8B61
1173 #define GL_SAMPLER_2D_SHADOW 0x8B62
1174 #define GL_DELETE_STATUS 0x8B80
1175 #define GL_COMPILE_STATUS 0x8B81
1176 #define GL_LINK_STATUS 0x8B82
1177 #define GL_VALIDATE_STATUS 0x8B83
1178 #define GL_INFO_LOG_LENGTH 0x8B84
1179 #define GL_ATTACHED_SHADERS 0x8B85
1180 #define GL_ACTIVE_UNIFORMS 0x8B86
1181 #define GL_ACTIVE_UNIFORM_MAX_LENGTH 0x8B87
1182 #define GL_SHADER_SOURCE_LENGTH 0x8B88
1183 #define GL_ACTIVE_ATTRIBUTES 0x8B89
1184 #define GL_ACTIVE_ATTRIBUTE_MAX_LENGTH 0x8B8A
1185 #define GL_FRAGMENT_SHADER_DERIVATIVE_HINT 0x8B8B
1186 #define GL_SHADING_LANGUAGE_VERSION 0x8B8C
1187 #define GL_CURRENT_PROGRAM 0x8B8D
1188 #define GL_POINT_SPRITE_COORD_ORIGIN 0x8CA0
1189 #define GL_LOWER_LEFT 0x8CA1
1190 #define GL_UPPER_LEFT 0x8CA2
1191 #define GL_STENCIL_BACK_REF 0x8CA3
1192 #define GL_STENCIL_BACK_VALUE_MASK 0x8CA4
1193 #define GL_STENCIL_BACK_WRITEMASK 0x8CA5
1194 typedef char GLchar
;
1196 typedef void (APIENTRY
* PGLFNBLENDEQUATIONSEPARATEPROC
) (GLenum modeRGB
, GLenum modeAlpha
);
1197 typedef void (APIENTRY
* PGLFNDRAWBUFFERSPROC
) (GLsizei n
, const GLenum
*bufs
);
1198 typedef void (APIENTRY
* PGLFNSTENCILOPSEPARATEPROC
) (GLenum face
, GLenum sfail
, GLenum dpfail
, GLenum dppass
);
1199 typedef void (APIENTRY
* PGLFNSTENCILFUNCSEPARATEPROC
) (GLenum frontfunc
, GLenum backfunc
, GLint ref
, GLuint mask
);
1200 typedef void (APIENTRY
* PGLFNSTENCILMASKSEPARATEPROC
) (GLenum face
, GLuint mask
);
1201 typedef void (APIENTRY
* PGLFNATTACHSHADERPROC
) (GLuint program
, GLuint shader
);
1202 typedef void (APIENTRY
* PGLFNBINDATTRIBLOCATIONPROC
) (GLuint program
, GLuint index
, const GLchar
*name
);
1203 typedef void (APIENTRY
* PGLFNCOMPILESHADERPROC
) (GLuint shader
);
1204 typedef GLuint (APIENTRY
* PGLFNCREATEPROGRAMPROC
) (void);
1205 typedef GLuint (APIENTRY
* PGLFNCREATESHADERPROC
) (GLenum type
);
1206 typedef void (APIENTRY
* PGLFNDELETEPROGRAMPROC
) (GLuint program
);
1207 typedef void (APIENTRY
* PGLFNDELETESHADERPROC
) (GLuint shader
);
1208 typedef void (APIENTRY
* PGLFNDETACHSHADERPROC
) (GLuint program
, GLuint shader
);
1209 typedef void (APIENTRY
* PGLFNDISABLEVERTEXATTRIBARRAYPROC
) (GLuint index
);
1210 typedef void (APIENTRY
* PGLFNENABLEVERTEXATTRIBARRAYPROC
) (GLuint index
);
1211 typedef void (APIENTRY
* PGLFNGETACTIVEATTRIBPROC
) (GLuint program
, GLuint index
, GLsizei bufSize
, GLsizei
*length
, GLint
*size
, GLenum
*type
, GLchar
*name
);
1212 typedef void (APIENTRY
* PGLFNGETACTIVEUNIFORMPROC
) (GLuint program
, GLuint index
, GLsizei bufSize
, GLsizei
*length
, GLint
*size
, GLenum
*type
, GLchar
*name
);
1213 typedef void (APIENTRY
* PGLFNGETATTACHEDSHADERSPROC
) (GLuint program
, GLsizei maxCount
, GLsizei
*count
, GLuint
*obj
);
1214 typedef GLint (APIENTRY
* PGLFNGETATTRIBLOCATIONPROC
) (GLuint program
, const GLchar
*name
);
1215 typedef void (APIENTRY
* PGLFNGETPROGRAMIVPROC
) (GLuint program
, GLenum pname
, GLint
*params
);
1216 typedef void (APIENTRY
* PGLFNGETPROGRAMINFOLOGPROC
) (GLuint program
, GLsizei bufSize
, GLsizei
*length
, GLchar
*infoLog
);
1217 typedef void (APIENTRY
* PGLFNGETSHADERIVPROC
) (GLuint shader
, GLenum pname
, GLint
*params
);
1218 typedef void (APIENTRY
* PGLFNGETSHADERINFOLOGPROC
) (GLuint shader
, GLsizei bufSize
, GLsizei
*length
, GLchar
*infoLog
);
1219 typedef void (APIENTRY
* PGLFNGETSHADERSOURCEPROC
) (GLuint shader
, GLsizei bufSize
, GLsizei
*length
, GLchar
*source
);
1220 typedef GLint (APIENTRY
* PGLFNGETUNIFORMLOCATIONPROC
) (GLuint program
, const GLchar
*name
);
1221 typedef void (APIENTRY
* PGLFNGETUNIFORMFVPROC
) (GLuint program
, GLint location
, GLfloat
*params
);
1222 typedef void (APIENTRY
* PGLFNGETUNIFORMIVPROC
) (GLuint program
, GLint location
, GLint
*params
);
1223 typedef void (APIENTRY
* PGLFNGETVERTEXATTRIBDVPROC
) (GLuint index
, GLenum pname
, GLdouble
*params
);
1224 typedef void (APIENTRY
* PGLFNGETVERTEXATTRIBFVPROC
) (GLuint index
, GLenum pname
, GLfloat
*params
);
1225 typedef void (APIENTRY
* PGLFNGETVERTEXATTRIBIVPROC
) (GLuint index
, GLenum pname
, GLint
*params
);
1226 typedef void (APIENTRY
* PGLFNGETVERTEXATTRIBPOINTERVPROC
) (GLuint index
, GLenum pname
, GLvoid
* *pointer
);
1227 typedef GLboolean (APIENTRY
* PGLFNISPROGRAMPROC
) (GLuint program
);
1228 typedef GLboolean (APIENTRY
* PGLFNISSHADERPROC
) (GLuint shader
);
1229 typedef void (APIENTRY
* PGLFNLINKPROGRAMPROC
) (GLuint program
);
1230 typedef void (APIENTRY
* PGLFNSHADERSOURCEPROC
) (GLuint shader
, GLsizei count
, const GLchar
* *string
, const GLint
*length
);
1231 typedef void (APIENTRY
* PGLFNUSEPROGRAMPROC
) (GLuint program
);
1232 typedef void (APIENTRY
* PGLFNUNIFORM1FPROC
) (GLint location
, GLfloat v0
);
1233 typedef void (APIENTRY
* PGLFNUNIFORM2FPROC
) (GLint location
, GLfloat v0
, GLfloat v1
);
1234 typedef void (APIENTRY
* PGLFNUNIFORM3FPROC
) (GLint location
, GLfloat v0
, GLfloat v1
, GLfloat v2
);
1235 typedef void (APIENTRY
* PGLFNUNIFORM4FPROC
) (GLint location
, GLfloat v0
, GLfloat v1
, GLfloat v2
, GLfloat v3
);
1236 typedef void (APIENTRY
* PGLFNUNIFORM1IPROC
) (GLint location
, GLint v0
);
1237 typedef void (APIENTRY
* PGLFNUNIFORM2IPROC
) (GLint location
, GLint v0
, GLint v1
);
1238 typedef void (APIENTRY
* PGLFNUNIFORM3IPROC
) (GLint location
, GLint v0
, GLint v1
, GLint v2
);
1239 typedef void (APIENTRY
* PGLFNUNIFORM4IPROC
) (GLint location
, GLint v0
, GLint v1
, GLint v2
, GLint v3
);
1240 typedef void (APIENTRY
* PGLFNUNIFORM1FVPROC
) (GLint location
, GLsizei count
, const GLfloat
*value
);
1241 typedef void (APIENTRY
* PGLFNUNIFORM2FVPROC
) (GLint location
, GLsizei count
, const GLfloat
*value
);
1242 typedef void (APIENTRY
* PGLFNUNIFORM3FVPROC
) (GLint location
, GLsizei count
, const GLfloat
*value
);
1243 typedef void (APIENTRY
* PGLFNUNIFORM4FVPROC
) (GLint location
, GLsizei count
, const GLfloat
*value
);
1244 typedef void (APIENTRY
* PGLFNUNIFORM1IVPROC
) (GLint location
, GLsizei count
, const GLint
*value
);
1245 typedef void (APIENTRY
* PGLFNUNIFORM2IVPROC
) (GLint location
, GLsizei count
, const GLint
*value
);
1246 typedef void (APIENTRY
* PGLFNUNIFORM3IVPROC
) (GLint location
, GLsizei count
, const GLint
*value
);
1247 typedef void (APIENTRY
* PGLFNUNIFORM4IVPROC
) (GLint location
, GLsizei count
, const GLint
*value
);
1248 typedef void (APIENTRY
* PGLFNUNIFORMMATRIX2FVPROC
) (GLint location
, GLsizei count
, GLboolean transpose
, const GLfloat
*value
);
1249 typedef void (APIENTRY
* PGLFNUNIFORMMATRIX3FVPROC
) (GLint location
, GLsizei count
, GLboolean transpose
, const GLfloat
*value
);
1250 typedef void (APIENTRY
* PGLFNUNIFORMMATRIX4FVPROC
) (GLint location
, GLsizei count
, GLboolean transpose
, const GLfloat
*value
);
1251 typedef void (APIENTRY
* PGLFNVALIDATEPROGRAMPROC
) (GLuint program
);
1252 typedef void (APIENTRY
* PGLFNVERTEXATTRIB1DPROC
) (GLuint index
, GLdouble x
);
1253 typedef void (APIENTRY
* PGLFNVERTEXATTRIB1DVPROC
) (GLuint index
, const GLdouble
*v
);
1254 typedef void (APIENTRY
* PGLFNVERTEXATTRIB1FPROC
) (GLuint index
, GLfloat x
);
1255 typedef void (APIENTRY
* PGLFNVERTEXATTRIB1FVPROC
) (GLuint index
, const GLfloat
*v
);
1256 typedef void (APIENTRY
* PGLFNVERTEXATTRIB1SPROC
) (GLuint index
, GLshort x
);
1257 typedef void (APIENTRY
* PGLFNVERTEXATTRIB1SVPROC
) (GLuint index
, const GLshort
*v
);
1258 typedef void (APIENTRY
* PGLFNVERTEXATTRIB2DPROC
) (GLuint index
, GLdouble x
, GLdouble y
);
1259 typedef void (APIENTRY
* PGLFNVERTEXATTRIB2DVPROC
) (GLuint index
, const GLdouble
*v
);
1260 typedef void (APIENTRY
* PGLFNVERTEXATTRIB2FPROC
) (GLuint index
, GLfloat x
, GLfloat y
);
1261 typedef void (APIENTRY
* PGLFNVERTEXATTRIB2FVPROC
) (GLuint index
, const GLfloat
*v
);
1262 typedef void (APIENTRY
* PGLFNVERTEXATTRIB2SPROC
) (GLuint index
, GLshort x
, GLshort y
);
1263 typedef void (APIENTRY
* PGLFNVERTEXATTRIB2SVPROC
) (GLuint index
, const GLshort
*v
);
1264 typedef void (APIENTRY
* PGLFNVERTEXATTRIB3DPROC
) (GLuint index
, GLdouble x
, GLdouble y
, GLdouble z
);
1265 typedef void (APIENTRY
* PGLFNVERTEXATTRIB3DVPROC
) (GLuint index
, const GLdouble
*v
);
1266 typedef void (APIENTRY
* PGLFNVERTEXATTRIB3FPROC
) (GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
);
1267 typedef void (APIENTRY
* PGLFNVERTEXATTRIB3FVPROC
) (GLuint index
, const GLfloat
*v
);
1268 typedef void (APIENTRY
* PGLFNVERTEXATTRIB3SPROC
) (GLuint index
, GLshort x
, GLshort y
, GLshort z
);
1269 typedef void (APIENTRY
* PGLFNVERTEXATTRIB3SVPROC
) (GLuint index
, const GLshort
*v
);
1270 typedef void (APIENTRY
* PGLFNVERTEXATTRIB4NBVPROC
) (GLuint index
, const GLbyte
*v
);
1271 typedef void (APIENTRY
* PGLFNVERTEXATTRIB4NIVPROC
) (GLuint index
, const GLint
*v
);
1272 typedef void (APIENTRY
* PGLFNVERTEXATTRIB4NSVPROC
) (GLuint index
, const GLshort
*v
);
1273 typedef void (APIENTRY
* PGLFNVERTEXATTRIB4NUBPROC
) (GLuint index
, GLubyte x
, GLubyte y
, GLubyte z
, GLubyte w
);
1274 typedef void (APIENTRY
* PGLFNVERTEXATTRIB4NUBVPROC
) (GLuint index
, const GLubyte
*v
);
1275 typedef void (APIENTRY
* PGLFNVERTEXATTRIB4NUIVPROC
) (GLuint index
, const GLuint
*v
);
1276 typedef void (APIENTRY
* PGLFNVERTEXATTRIB4NUSVPROC
) (GLuint index
, const GLushort
*v
);
1277 typedef void (APIENTRY
* PGLFNVERTEXATTRIB4BVPROC
) (GLuint index
, const GLbyte
*v
);
1278 typedef void (APIENTRY
* PGLFNVERTEXATTRIB4DPROC
) (GLuint index
, GLdouble x
, GLdouble y
, GLdouble z
, GLdouble w
);
1279 typedef void (APIENTRY
* PGLFNVERTEXATTRIB4DVPROC
) (GLuint index
, const GLdouble
*v
);
1280 typedef void (APIENTRY
* PGLFNVERTEXATTRIB4FPROC
) (GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
);
1281 typedef void (APIENTRY
* PGLFNVERTEXATTRIB4FVPROC
) (GLuint index
, const GLfloat
*v
);
1282 typedef void (APIENTRY
* PGLFNVERTEXATTRIB4IVPROC
) (GLuint index
, const GLint
*v
);
1283 typedef void (APIENTRY
* PGLFNVERTEXATTRIB4SPROC
) (GLuint index
, GLshort x
, GLshort y
, GLshort z
, GLshort w
);
1284 typedef void (APIENTRY
* PGLFNVERTEXATTRIB4SVPROC
) (GLuint index
, const GLshort
*v
);
1285 typedef void (APIENTRY
* PGLFNVERTEXATTRIB4UBVPROC
) (GLuint index
, const GLubyte
*v
);
1286 typedef void (APIENTRY
* PGLFNVERTEXATTRIB4UIVPROC
) (GLuint index
, const GLuint
*v
);
1287 typedef void (APIENTRY
* PGLFNVERTEXATTRIB4USVPROC
) (GLuint index
, const GLushort
*v
);
1288 typedef void (APIENTRY
* PGLFNVERTEXATTRIBPOINTERPROC
) (GLuint index
, GLint size
, GLenum type
, GLboolean normalized
, GLsizei stride
, const GLvoid
*pointer
);
1290 /****************************************************
1291 * OpenGL Official Version
1293 ****************************************************/
1294 /* GL_VERSION_1_3 */
1295 #if !defined(GL_DOT3_RGBA)
1296 # define GL_DOT3_RGBA 0x8741
1298 #if !defined(GL_SUBTRACT)
1299 # define GL_SUBTRACT 0x84E7
1303 /****************************************************
1304 * OpenGL GLX Extensions
1305 * defines and functions pointer
1306 ****************************************************/
1309 /****************************************************
1310 * OpenGL GLX Official Version
1311 * defines and functions pointer
1312 ****************************************************/
1313 /* GLX_VERSION_1_3 */
1314 typedef GLXFBConfig
* (APIENTRY
* PGLXFNGLXGETFBCONFIGSPROC
) (Display
*dpy
, int screen
, int *nelements
);
1315 typedef GLXFBConfig
* (APIENTRY
* PGLXFNGLXCHOOSEFBCONFIGPROC
) (Display
*dpy
, int screen
, const int *attrib_list
, int *nelements
);
1316 typedef int (APIENTRY
* PGLXFNGLXGETFBCONFIGATTRIBPROC
) (Display
*dpy
, GLXFBConfig config
, int attribute
, int *value
);
1317 typedef XVisualInfo
* (APIENTRY
* PGLXFNGLXGETVISUALFROMFBCONFIGPROC
) (Display
*dpy
, GLXFBConfig config
);
1318 typedef GLXWindow (APIENTRY
* PGLXFNGLXCREATEWINDOWPROC
) (Display
*dpy
, GLXFBConfig config
, Window win
, const int *attrib_list
);
1319 typedef void (APIENTRY
* PGLXFNGLXDESTROYWINDOWPROC
) (Display
*dpy
, GLXWindow win
);
1320 typedef GLXPixmap (APIENTRY
* PGLXFNGLXCREATEPIXMAPPROC
) (Display
*dpy
, GLXFBConfig config
, Pixmap pixmap
, const int *attrib_list
);
1321 typedef void (APIENTRY
* PGLXFNGLXDESTROYPIXMAPPROC
) (Display
*dpy
, GLXPixmap pixmap
);
1322 typedef GLXPbuffer (APIENTRY
* PGLXFNGLXCREATEPBUFFERPROC
) (Display
*dpy
, GLXFBConfig config
, const int *attrib_list
);
1323 typedef void (APIENTRY
* PGLXFNGLXDESTROYPBUFFERPROC
) (Display
*dpy
, GLXPbuffer pbuf
);
1324 typedef void (APIENTRY
* PGLXFNGLXQUERYDRAWABLEPROC
) (Display
*dpy
, GLXDrawable draw
, int attribute
, unsigned int *value
);
1325 typedef GLXContext (APIENTRY
* PGLXFNGLXCREATENEWCONTEXTPROC
) (Display
*dpy
, GLXFBConfig config
, int render_type
, GLXContext share_list
, Bool direct
);
1326 typedef Bool (APIENTRY
* PGLXFNGLXMAKECONTEXTCURRENTPROC
) (Display
*dpy
, GLXDrawable draw
, GLXDrawable read
, GLXContext ctx
);
1327 typedef GLXDrawable (APIENTRY
* PGLXFNGLXGETCURRENTREADDRAWABLEPROC
) (void);
1328 typedef Display
* (APIENTRY
* PGLXFNGLXGETCURRENTDISPLAYPROC
) (void);
1329 typedef int (APIENTRY
* PGLXFNGLXQUERYCONTEXTPROC
) (Display
*dpy
, GLXContext ctx
, int attribute
, int *value
);
1330 typedef void (APIENTRY
* PGLXFNGLXSELECTEVENTPROC
) (Display
*dpy
, GLXDrawable draw
, unsigned long event_mask
);
1331 typedef void (APIENTRY
* PGLXFNGLXGETSELECTEDEVENTPROC
) (Display
*dpy
, GLXDrawable draw
, unsigned long *event_mask
);
1334 /****************************************************
1336 ****************************************************/
1337 typedef enum _GL_Vendors
{
1340 VENDOR_ATI
= 0x1002,
1341 VENDOR_NVIDIA
= 0x10de,
1342 VENDOR_INTEL
= 0x8086
1345 typedef enum _GL_Cards
{
1348 CARD_ATI_RAGE_128PRO
= 0x5246,
1349 CARD_ATI_RADEON_7200
= 0x5144,
1350 CARD_ATI_RADEON_8500
= 0x514c,
1351 CARD_ATI_RADEON_9500
= 0x4144,
1352 CARD_ATI_RADEON_X700
= 0x5e4c,
1353 CARD_ATI_RADEON_X1600
= 0x71c2,
1355 CARD_NVIDIA_RIVA_128
= 0x0018,
1356 CARD_NVIDIA_RIVA_TNT
= 0x0020,
1357 CARD_NVIDIA_RIVA_TNT2
= 0x0028,
1358 CARD_NVIDIA_GEFORCE
= 0x0100,
1359 CARD_NVIDIA_GEFORCE2_MX
= 0x0110,
1360 CARD_NVIDIA_GEFORCE2
= 0x0150,
1361 CARD_NVIDIA_GEFORCE3
= 0x0200,
1362 CARD_NVIDIA_GEFORCE4_MX
= 0x0170,
1363 CARD_NVIDIA_GEFORCE4_TI4200
= 0x0253,
1364 CARD_NVIDIA_GEFORCEFX_5200
= 0x0320,
1365 CARD_NVIDIA_GEFORCEFX_5600
= 0x0312,
1366 CARD_NVIDIA_GEFORCEFX_5800
= 0x0302,
1367 CARD_NVIDIA_GEFORCE_6200
= 0x014f,
1368 CARD_NVIDIA_GEFORCE_6600GT
= 0x0140,
1369 CARD_NVIDIA_GEFORCE_6800
= 0x0041,
1370 CARD_NVIDIA_GEFORCE_7800GT
= 0x0092,
1372 CARD_INTEL_845G
= 0x2562,
1373 CARD_INTEL_I830G
= 0x3577,
1374 CARD_INTEL_I855G
= 0x3582,
1375 CARD_INTEL_I865G
= 0x2572,
1376 CARD_INTEL_I915G
= 0x2582,
1377 CARD_INTEL_I915GM
= 0x2592
1380 typedef enum _GL_VSVersion
{
1381 VS_VERSION_NOT_SUPPORTED
= 0x0,
1382 VS_VERSION_10
= 0x10,
1383 VS_VERSION_11
= 0x11,
1384 VS_VERSION_20
= 0x20,
1385 VS_VERSION_30
= 0x30,
1387 VS_VERSION_FORCE_DWORD
= 0x7FFFFFFF
1390 typedef enum _GL_PSVersion
{
1391 PS_VERSION_NOT_SUPPORTED
= 0x0,
1392 PS_VERSION_10
= 0x10,
1393 PS_VERSION_11
= 0x11,
1394 PS_VERSION_12
= 0x12,
1395 PS_VERSION_13
= 0x13,
1396 PS_VERSION_14
= 0x14,
1397 PS_VERSION_20
= 0x20,
1398 PS_VERSION_30
= 0x30,
1400 PS_VERSION_FORCE_DWORD
= 0x7FFFFFFF
1403 #define MAKEDWORD_VERSION(maj, min) ((maj & 0x0000FFFF) << 16) | (min & 0x0000FFFF)
1405 /* OpenGL Supported Extensions (ARB and EXT) */
1406 typedef enum _GL_SupportedExt
{
1409 ARB_FRAGMENT_PROGRAM
,
1410 ARB_FRAGMENT_SHADER
,
1414 ARB_OCCLUSION_QUERY
,
1415 ARB_POINT_PARAMETERS
,
1416 ARB_PIXEL_BUFFER_OBJECT
,
1418 ARB_TEXTURE_COMPRESSION
,
1419 ARB_TEXTURE_CUBE_MAP
,
1420 ARB_TEXTURE_ENV_ADD
,
1421 ARB_TEXTURE_ENV_COMBINE
,
1422 ARB_TEXTURE_ENV_DOT3
,
1424 ARB_HALF_FLOAT_PIXEL
,
1425 ARB_TEXTURE_BORDER_CLAMP
,
1426 ARB_TEXTURE_MIRRORED_REPEAT
,
1427 ARB_TEXTURE_NON_POWER_OF_TWO
,
1430 ARB_VERTEX_BUFFER_OBJECT
,
1435 EXT_FRAMEBUFFER_OBJECT
,
1436 EXT_PALETTED_TEXTURE
,
1437 EXT_PIXEL_BUFFER_OBJECT
,
1438 EXT_POINT_PARAMETERS
,
1439 EXT_SECONDARY_COLOR
,
1440 EXT_STENCIL_TWO_SIDE
,
1443 EXT_TEXTURE_COMPRESSION_S3TC
,
1444 EXT_TEXTURE_FILTER_ANISOTROPIC
,
1446 EXT_TEXTURE_LOD_BIAS
,
1447 EXT_TEXTURE_ENV_ADD
,
1448 EXT_TEXTURE_ENV_COMBINE
,
1449 EXT_TEXTURE_ENV_DOT3
,
1450 EXT_VERTEX_WEIGHTING
,
1453 NV_FRAGMENT_PROGRAM
,
1455 NV_REGISTER_COMBINERS
,
1456 NV_REGISTER_COMBINERS2
,
1457 NV_TEXGEN_REFLECTION
,
1458 NV_TEXTURE_ENV_COMBINE4
,
1464 ATI_SEPARATE_STENCIL
,
1465 ATI_TEXTURE_ENV_COMBINE3
,
1466 ATI_TEXTURE_MIRROR_ONCE
,
1469 OPENGL_SUPPORTED_EXT_END
1473 /****************************************************
1475 ****************************************************/
1476 #define GL_EXT_FUNCS_GEN \
1477 /** ARB Extensions **/ \
1478 /* GL_ARB_draw_buffers */ \
1479 USE_GL_FUNC(PGLFNDRAWBUFFERSARBPROC, glDrawBuffersARB); \
1480 /* GL_ARB_imaging */ \
1481 USE_GL_FUNC(PGLFNBLENDCOLORPROC, glBlendColor); \
1482 USE_GL_FUNC(PGLFNBLENDEQUATIONPROC, glBlendEquation); \
1483 /* GL_ARB_multitexture */ \
1484 USE_GL_FUNC(WINED3D_PFNGLACTIVETEXTUREARBPROC, glActiveTextureARB); \
1485 USE_GL_FUNC(WINED3D_PFNGLCLIENTACTIVETEXTUREARBPROC, glClientActiveTextureARB); \
1486 USE_GL_FUNC(WINED3D_PFNGLMULTITEXCOORD1FARBPROC, glMultiTexCoord1fARB); \
1487 USE_GL_FUNC(WINED3D_PFNGLMULTITEXCOORD2FARBPROC, glMultiTexCoord2fARB); \
1488 USE_GL_FUNC(WINED3D_PFNGLMULTITEXCOORD3FARBPROC, glMultiTexCoord3fARB); \
1489 USE_GL_FUNC(WINED3D_PFNGLMULTITEXCOORD4FARBPROC, glMultiTexCoord4fARB); \
1490 /* GL_ARB_occlusion_query */ \
1491 USE_GL_FUNC(PGLFNGENQUERIESARBPROC, glGenQueriesARB); \
1492 USE_GL_FUNC(PGLFNDELETEQUERIESARBPROC, glDeleteQueriesARB); \
1493 USE_GL_FUNC(PGLFNBEGINQUERYARBPROC, glBeginQueryARB); \
1494 USE_GL_FUNC(PGLFNENDQUERYARBPROC, glEndQueryARB); \
1495 USE_GL_FUNC(PGLFNGETQUERYOBJECTIVARBPROC, glGetQueryObjectivARB); \
1496 USE_GL_FUNC(PGLFNGETQUERYOBJECTUIVARBPROC, glGetQueryObjectuivARB); \
1497 /* GL_ARB_point_parameters */ \
1498 USE_GL_FUNC(PGLFNGLPOINTPARAMETERFARBPROC, glPointParameterfARB); \
1499 USE_GL_FUNC(PGLFNGLPOINTPARAMETERFVARBPROC, glPointParameterfvARB); \
1500 /* GL_ARB_texture_compression */ \
1501 USE_GL_FUNC(PGLFNCOMPRESSEDTEXIMAGE2DPROC, glCompressedTexImage2DARB); \
1502 USE_GL_FUNC(PGLFNCOMPRESSEDTEXIMAGE3DPROC, glCompressedTexImage3DARB); \
1503 USE_GL_FUNC(PGLFNCOMPRESSEDTEXSUBIMAGE2DPROC, glCompressedTexSubImage2DARB); \
1504 USE_GL_FUNC(PGLFNCOMPRESSEDTEXSUBIMAGE3DPROC, glCompressedTexSubImage3DARB); \
1505 USE_GL_FUNC(PGLFNGETCOMPRESSEDTEXIMAGEPROC, glGetCompressedTexImageARB); \
1506 /* GL_ARB_vertex_blend */ \
1507 USE_GL_FUNC(PGLFNGLWEIGHTPOINTERARB, glWeightPointerARB); \
1508 /* GL_ARB_vertex_buffer_object */ \
1509 USE_GL_FUNC(PGLFNBINDBUFFERARBPROC, glBindBufferARB); \
1510 USE_GL_FUNC(PGLFNDELETEBUFFERSARBPROC, glDeleteBuffersARB); \
1511 USE_GL_FUNC(PGLFNGENBUFFERSARBPROC, glGenBuffersARB); \
1512 USE_GL_FUNC(PGLFNISBUFFERARBPROC, glIsBufferARB); \
1513 USE_GL_FUNC(PGLFNBUFFERDATAARBPROC, glBufferDataARB); \
1514 USE_GL_FUNC(PGLFNBUFFERSUBDATAARBPROC, glBufferSubDataARB); \
1515 USE_GL_FUNC(PGLFNGETBUFFERSUBDATAARBPROC, glGetBufferSubDataARB); \
1516 USE_GL_FUNC(PGLFNMAPBUFFERARBPROC, glMapBufferARB); \
1517 USE_GL_FUNC(PGLFNUNMAPBUFFERARBPROC, glUnmapBufferARB); \
1518 USE_GL_FUNC(PGLFNGETBUFFERPARAMETERIVARBPROC, glGetBufferParameterivARB); \
1519 USE_GL_FUNC(PGLFNGETBUFFERPOINTERVARBPROC, glGetBufferPointervARB); \
1520 /** EXT Extensions **/ \
1521 /* GL_EXT_fog_coord */ \
1522 USE_GL_FUNC(PGLFNGLFOGCOORDFEXTPROC, glFogCoordfEXT); \
1523 USE_GL_FUNC(PGLFNGLFOGCOORDFVEXTPROC, glFogCoordfvEXT); \
1524 USE_GL_FUNC(PGLFNGLFOGCOORDDEXTPROC, glFogCoorddEXT); \
1525 USE_GL_FUNC(PGLFNGLFOGCOORDDVEXTPROC, glFogCoordvEXT); \
1526 USE_GL_FUNC(PGLFNGLFOGCOORDPOINTEREXTPROC, glFogCoordPointerEXT); \
1527 /* GL_EXT_framebuffer_object */ \
1528 USE_GL_FUNC(PGLFNGLISRENDERBUFFEREXTPROC, glIsRenderbufferEXT); \
1529 USE_GL_FUNC(PGLFNGLBINDRENDERBUFFEREXTPROC, glBindRenderbufferEXT); \
1530 USE_GL_FUNC(PGLFNGLDELETERENDERBUFFERSEXTPROC, glDeleteRenderbuffersEXT); \
1531 USE_GL_FUNC(PGLFNGLGENRENDERBUFFERSEXTPROC, glGenRenderbuffersEXT); \
1532 USE_GL_FUNC(PGLFNGLRENDERBUFFERSTORAGEEXTPROC, glRenderbufferStorageEXT); \
1533 USE_GL_FUNC(PGLFNGLISFRAMEBUFFEREXTPROC, glIsFramebufferEXT); \
1534 USE_GL_FUNC(PGLFNGLBINDFRAMEBUFFEREXTPROC, glBindFramebufferEXT); \
1535 USE_GL_FUNC(PGLFNGLDELETEFRAMEBUFFERSEXTPROC, glDeleteFramebuffersEXT); \
1536 USE_GL_FUNC(PGLFNGLGENFRAMEBUFFERSEXTPROC, glGenFramebuffersEXT); \
1537 USE_GL_FUNC(PGLFNGLCHECKFRAMEBUFFERSTATUSEXTPROC, glCheckFramebufferStatusEXT); \
1538 USE_GL_FUNC(PGLFNGLFRAMEBUFFERTEXTURE1DEXTPROC, glFramebufferTexture1DEXT); \
1539 USE_GL_FUNC(PGLFNGLFRAMEBUFFERTEXTURE2DEXTPROC, glFramebufferTexture2DEXT); \
1540 USE_GL_FUNC(PGLFNGLFRAMEBUFFERTEXTURE3DEXTPROC, glFramebufferTexture3DEXT); \
1541 USE_GL_FUNC(PGLFNGLFRAMEBUFFERRENDERBUFFEREXTPROC, glFramebufferRenderbufferEXT); \
1542 USE_GL_FUNC(PGLFNGLGENERATEMIPMAPEXTPROC, glGenerateMipmapEXT); \
1543 USE_GL_FUNC(PGLFNGLGETRENDERBUFFERPARAMETERIVEXTPROC, glGetRenderbufferParameterivEXT); \
1544 USE_GL_FUNC(PGLFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC, glGetFramebufferAttachmentParameterivEXT); \
1545 /* GL_EXT_paletted_texture */ \
1546 USE_GL_FUNC(PGLFNGLCOLORTABLEEXTPROC, glColorTableEXT); \
1547 /* GL_EXT_point_parameters */ \
1548 USE_GL_FUNC(PGLFNGLPOINTPARAMETERFEXTPROC, glPointParameterfEXT); \
1549 USE_GL_FUNC(PGLFNGLPOINTPARAMETERFVEXTPROC, glPointParameterfvEXT); \
1550 /* GL_EXT_secondary_color */ \
1551 USE_GL_FUNC(PGLFNGLSECONDARYCOLOR3UBEXTPROC, glSecondaryColor3ubEXT); \
1552 USE_GL_FUNC(PGLFNGLSECONDARYCOLOR3FEXTPROC, glSecondaryColor3fEXT); \
1553 USE_GL_FUNC(PGLFNGLSECONDARYCOLOR3FVEXTPROC, glSecondaryColor3fvEXT); \
1554 USE_GL_FUNC(PGLFNGLSECONDARYCOLORPOINTEREXTPROC, glSecondaryColorPointerEXT); \
1555 /* GL_EXT_texture3D */ \
1556 USE_GL_FUNC(PGLFNGLTEXIMAGE3DEXTPROC, glTexImage3DEXT); \
1557 USE_GL_FUNC(PGLFNGLTEXSUBIMAGE3DEXTPROC, glTexSubImage3DEXT); \
1558 /* GL_ARB_vertex_program */ \
1559 USE_GL_FUNC(PGLFNGENPROGRAMSARBPROC, glGenProgramsARB); \
1560 USE_GL_FUNC(PGLFNBINDPROGRAMARBPROC, glBindProgramARB); \
1561 USE_GL_FUNC(PGLFNPROGRAMSTRINGARBPROC, glProgramStringARB); \
1562 USE_GL_FUNC(PGLFNDELETEPROGRAMSARBPROC, glDeleteProgramsARB); \
1563 USE_GL_FUNC(PGLFNPROGRAMENVPARAMETER4FVARBPROC, glProgramEnvParameter4fvARB); \
1564 USE_GL_FUNC(PGLFNVERTEXATTRIBPOINTERARBPROC, glVertexAttribPointerARB); \
1565 USE_GL_FUNC(PGLFNENABLEVERTEXATTRIBARRAYARBPROC, glEnableVertexAttribArrayARB); \
1566 USE_GL_FUNC(PGLFNDISABLEVERTEXATTRIBARRAYARBPROC, glDisableVertexAttribArrayARB); \
1567 USE_GL_FUNC(PGLFNGETPROGRAMIVARBPROC, glGetProgramivARB); \
1568 /* GL_ARB_shader_objects */ \
1569 USE_GL_FUNC(WINED3D_PFNGLGETOBJECTPARAMETERIVARBPROC, glGetObjectParameterivARB); \
1570 USE_GL_FUNC(WINED3D_PFNGLGETOBJECTPARAMETERFVARBPROC, glGetObjectParameterfvARB); \
1571 USE_GL_FUNC(WINED3D_PFNGLGETUNIFORMLOCATIONARBPROC, glGetUniformLocationARB); \
1572 USE_GL_FUNC(WINED3D_PFNGLGETACTIVEUNIFORMARBPROC, glGetActiveUniformARB); \
1573 USE_GL_FUNC(WINED3D_PFNGLUNIFORM1IARBPROC, glUniform1iARB); \
1574 USE_GL_FUNC(WINED3D_PFNGLUNIFORM2IARBPROC, glUniform2iARB); \
1575 USE_GL_FUNC(WINED3D_PFNGLUNIFORM3IARBPROC, glUniform3iARB); \
1576 USE_GL_FUNC(WINED3D_PFNGLUNIFORM4IARBPROC, glUniform4iARB); \
1577 USE_GL_FUNC(WINED3D_PFNGLUNIFORM1IARBPROC, glUniform1fARB); \
1578 USE_GL_FUNC(WINED3D_PFNGLUNIFORM2FARBPROC, glUniform2fARB); \
1579 USE_GL_FUNC(WINED3D_PFNGLUNIFORM3FARBPROC, glUniform3fARB); \
1580 USE_GL_FUNC(WINED3D_PFNGLUNIFORM4FARBPROC, glUniform4fARB); \
1581 USE_GL_FUNC(WINED3D_PFNGLUNIFORM1IVARBPROC, glUniform1fvARB); \
1582 USE_GL_FUNC(WINED3D_PFNGLUNIFORM2IVARBPROC, glUniform2fvARB); \
1583 USE_GL_FUNC(WINED3D_PFNGLUNIFORM3IVARBPROC, glUniform3fvARB); \
1584 USE_GL_FUNC(WINED3D_PFNGLUNIFORM4FVARBPROC, glUniform4fvARB); \
1585 USE_GL_FUNC(WINED3D_PFNGLUNIFORM1IVARBPROC, glUniform1ivARB); \
1586 USE_GL_FUNC(WINED3D_PFNGLUNIFORM2IVARBPROC, glUniform2ivARB); \
1587 USE_GL_FUNC(WINED3D_PFNGLUNIFORM3IVARBPROC, glUniform3ivARB); \
1588 USE_GL_FUNC(WINED3D_PFNGLUNIFORM4IVARBPROC, glUniform4ivARB); \
1589 USE_GL_FUNC(WINED3D_PFNGLUNIFORMMATRIX2FVARBPROC, glUniformMatrix2fvARB); \
1590 USE_GL_FUNC(WINED3D_PFNGLUNIFORMMATRIX3FVARBPROC, glUniformMatrix3fvARB); \
1591 USE_GL_FUNC(WINED3D_PFNGLUNIFORMMATRIX4FVARBPROC, glUniformMatrix4fvARB); \
1592 USE_GL_FUNC(WINED3D_PFNGLGETUNIFORMFVARBPROC, glGetUniform4fvARB); \
1593 USE_GL_FUNC(WINED3D_PFNGLGETUNIFORMIVARBPROC, glGetUniform4ivARB); \
1594 USE_GL_FUNC(WINED3D_PFNGLGETINFOLOGARBPROC, glGetInfoLogARB); \
1595 USE_GL_FUNC(WINED3D_PFNGLUSEPROGRAMOBJECTARBPROC, glUseProgramObjectARB); \
1596 USE_GL_FUNC(WINED3D_PFNGLCREATESHADEROBJECTARBPROC, glCreateShaderObjectARB); \
1597 USE_GL_FUNC(WINED3D_PFNGLSHADERSOURCEARBPROC, glShaderSourceARB); \
1598 USE_GL_FUNC(WINED3D_PFNGLCOMPILESHADERARBPROC, glCompileShaderARB); \
1599 USE_GL_FUNC(WINED3D_PFNGLCREATEPROGRAMOBJECTARBPROC, glCreateProgramObjectARB); \
1600 USE_GL_FUNC(WINED3D_PFNGLATTACHOBJECTARBPROC, glAttachObjectARB); \
1601 USE_GL_FUNC(WINED3D_PFNGLLINKPROGRAMARBPROC, glLinkProgramARB); \
1602 USE_GL_FUNC(WINED3D_PFNGLDETACHOBJECTARBPROC, glDetachObjectARB); \
1603 USE_GL_FUNC(WINED3D_PFNGLDELETEOBJECTARBPROC, glDeleteObjectARB); \
1604 USE_GL_FUNC(WINED3D_PFNGLVALIDATEPROGRAMARBPROC, glValidateProgramARB); \
1605 USE_GL_FUNC(WINED3D_PFNGLGETATTACHEDOBJECTSARBPROC, glGetAttachedObjectsARB); \
1606 USE_GL_FUNC(WINED3D_PFNGLGETHANDLEARBPROC, glGetHandleARB); \
1607 USE_GL_FUNC(WINED3D_PFNGLGETSHADERSOURCEARBPROC, glGetShaderSourceARB); \
1608 USE_GL_FUNC(WINED3D_PFNGLBINDATTRIBLOCATIONARBPROC, glBindAttribLocationARB); \
1609 USE_GL_FUNC(WINED3D_PFNGLGETATTRIBLOCATIONARBPROC, glGetAttribLocationARB); \
1610 /* GL_EXT_stencil_two_side */ \
1611 USE_GL_FUNC(PGLFNACTIVESTENCILFACEEXTPROC, glActiveStencilFaceEXT); \
1612 /* GL_ATI_separate_stencil */ \
1613 USE_GL_FUNC(PGLFNSTENCILOPSEPARATEATIPROC, glStencilOpSeparateATI); \
1614 USE_GL_FUNC(PGLFNSTENCILFUNCSEPARATEATIPROC, glStencilFuncSeparateATI); \
1615 /* GL_NV_register_combiners */ \
1616 USE_GL_FUNC(PGLFNCOMBINERINPUTNVPROC, glCombinerInputNV); \
1617 USE_GL_FUNC(PGLFNCOMBINEROUTPUTNVPROC, glCombinerOutputNV); \
1618 USE_GL_FUNC(PGLFNCOMBINERPARAMETERFNVPROC, glCombinerParameterfNV); \
1619 USE_GL_FUNC(PGLFNCOMBINERPARAMETERFVNVPROC, glCombinerParameterfvNV); \
1620 USE_GL_FUNC(PGLFNCOMBINERPARAMETERINVPROC, glCombinerParameteriNV); \
1621 USE_GL_FUNC(PGLFNCOMBINERPARAMETERIVNVPROC, glCombinerParameterivNV); \
1622 USE_GL_FUNC(PGLFNFINALCOMBINERINPUTNVPROC, glFinalCombinerInputNV); \
1624 /* OpenGL 2.0 functions */
1625 #define GL2_FUNCS_GEN \
1626 USE_GL_FUNC(PGLFNBLENDEQUATIONSEPARATEPROC, glBlendEquationSeparate); \
1627 USE_GL_FUNC(PGLFNDRAWBUFFERSPROC, glDrawBuffers); \
1628 USE_GL_FUNC(PGLFNSTENCILOPSEPARATEPROC, glStencilOpSeparate); \
1629 USE_GL_FUNC(PGLFNSTENCILFUNCSEPARATEPROC, glStencilFuncSeparate); \
1630 USE_GL_FUNC(PGLFNSTENCILMASKSEPARATEPROC, glStencilMaskSeparate); \
1631 USE_GL_FUNC(PGLFNATTACHSHADERPROC, glAttachShader); \
1632 USE_GL_FUNC(PGLFNBINDATTRIBLOCATIONPROC, glBindAttribLocation); \
1633 USE_GL_FUNC(PGLFNCOMPILESHADERPROC, glCompileShader); \
1634 USE_GL_FUNC(PGLFNCREATEPROGRAMPROC, glCreateProgram); \
1635 USE_GL_FUNC(PGLFNCREATESHADERPROC, glCreateShader); \
1636 USE_GL_FUNC(PGLFNDELETEPROGRAMPROC, glDeleteProgram); \
1637 USE_GL_FUNC(PGLFNDELETESHADERPROC, glDeleteShader); \
1638 USE_GL_FUNC(PGLFNDETACHSHADERPROC, glDetachShader); \
1639 USE_GL_FUNC(PGLFNDISABLEVERTEXATTRIBARRAYPROC, glDisableVertexAttribArray); \
1640 USE_GL_FUNC(PGLFNENABLEVERTEXATTRIBARRAYPROC, glEnableVertexAttribArray); \
1641 USE_GL_FUNC(PGLFNGETACTIVEATTRIBPROC, glGetActiveAttrib); \
1642 USE_GL_FUNC(PGLFNGETACTIVEUNIFORMPROC, glGetActiveUniform); \
1643 USE_GL_FUNC(PGLFNGETATTACHEDSHADERSPROC, glGetAttachedShaders); \
1644 USE_GL_FUNC(PGLFNGETATTRIBLOCATIONPROC, glGetAttribLocation); \
1645 USE_GL_FUNC(PGLFNGETPROGRAMIVPROC, glGetProgramiv); \
1646 USE_GL_FUNC(PGLFNGETPROGRAMINFOLOGPROC, glGetProgramInfoLog); \
1647 USE_GL_FUNC(PGLFNGETSHADERIVPROC, glGetShaderiv); \
1648 USE_GL_FUNC(PGLFNGETSHADERINFOLOGPROC, glGetShaderInfoLog); \
1649 USE_GL_FUNC(PGLFNGETSHADERSOURCEPROC, glGetShaderSource); \
1650 USE_GL_FUNC(PGLFNGETUNIFORMLOCATIONPROC, glGetUniformLocation); \
1651 USE_GL_FUNC(PGLFNGETUNIFORMFVPROC, glGetUniformfv); \
1652 USE_GL_FUNC(PGLFNGETUNIFORMIVPROC, glGetUniformiv); \
1653 USE_GL_FUNC(PGLFNGETVERTEXATTRIBDVPROC, glGetVertexAttribdv); \
1654 USE_GL_FUNC(PGLFNGETVERTEXATTRIBFVPROC, glGetVertexAttribfv); \
1655 USE_GL_FUNC(PGLFNGETVERTEXATTRIBIVPROC, glGetVertexAttribiv); \
1656 USE_GL_FUNC(PGLFNGETVERTEXATTRIBPOINTERVPROC, glGetVertexAttribPointerv); \
1657 USE_GL_FUNC(PGLFNISPROGRAMPROC, glIsProgram); \
1658 USE_GL_FUNC(PGLFNISSHADERPROC, glIsShader); \
1659 USE_GL_FUNC(PGLFNLINKPROGRAMPROC, glLinkProgram); \
1660 USE_GL_FUNC(PGLFNSHADERSOURCEPROC, glShaderSource); \
1661 USE_GL_FUNC(PGLFNUSEPROGRAMPROC, glUseProgram); \
1662 USE_GL_FUNC(PGLFNUNIFORM1FPROC, glUniform1f); \
1663 USE_GL_FUNC(PGLFNUNIFORM2FPROC, glUniform2f); \
1664 USE_GL_FUNC(PGLFNUNIFORM3FPROC, glUniform3f); \
1665 USE_GL_FUNC(PGLFNUNIFORM4FPROC, glUniform4f); \
1666 USE_GL_FUNC(PGLFNUNIFORM1IPROC, glUniform1i); \
1667 USE_GL_FUNC(PGLFNUNIFORM2IPROC, glUniform2i); \
1668 USE_GL_FUNC(PGLFNUNIFORM3IPROC, glUniform3i); \
1669 USE_GL_FUNC(PGLFNUNIFORM4IPROC, glUniform4i); \
1670 USE_GL_FUNC(PGLFNUNIFORM1FVPROC, glUniform1fv); \
1671 USE_GL_FUNC(PGLFNUNIFORM2FVPROC, glUniform2fv); \
1672 USE_GL_FUNC(PGLFNUNIFORM3FVPROC, glUniform3fv); \
1673 USE_GL_FUNC(PGLFNUNIFORM4FVPROC, glUniform4fv); \
1674 USE_GL_FUNC(PGLFNUNIFORM1IVPROC, glUniform1iv); \
1675 USE_GL_FUNC(PGLFNUNIFORM2IVPROC, glUniform2iv); \
1676 USE_GL_FUNC(PGLFNUNIFORM3IVPROC, glUniform3iv); \
1677 USE_GL_FUNC(PGLFNUNIFORM4IVPROC, glUniform4iv); \
1678 USE_GL_FUNC(PGLFNUNIFORMMATRIX2FVPROC, glUniformMatrix2fv); \
1679 USE_GL_FUNC(PGLFNUNIFORMMATRIX3FVPROC, glUniformMatrix3fv); \
1680 USE_GL_FUNC(PGLFNUNIFORMMATRIX4FVPROC, glUniformMatrix4fv); \
1681 USE_GL_FUNC(PGLFNVALIDATEPROGRAMPROC, glValidateProgram); \
1682 USE_GL_FUNC(PGLFNVERTEXATTRIB1DPROC, glVertexAttrib1d); \
1683 USE_GL_FUNC(PGLFNVERTEXATTRIB1DVPROC, glVertexAttrib1dv); \
1684 USE_GL_FUNC(PGLFNVERTEXATTRIB1FPROC, glVertexAttrib1f); \
1685 USE_GL_FUNC(PGLFNVERTEXATTRIB1FVPROC, glVertexAttrib1fv); \
1686 USE_GL_FUNC(PGLFNVERTEXATTRIB1SPROC, glVertexAttrib1s); \
1687 USE_GL_FUNC(PGLFNVERTEXATTRIB1SVPROC, glVertexAttrib1sv); \
1688 USE_GL_FUNC(PGLFNVERTEXATTRIB2DPROC, glVertexAttrib2d); \
1689 USE_GL_FUNC(PGLFNVERTEXATTRIB2DVPROC, glVertexAttrib2dv); \
1690 USE_GL_FUNC(PGLFNVERTEXATTRIB2FPROC, glVertexAttrib2f); \
1691 USE_GL_FUNC(PGLFNVERTEXATTRIB2FVPROC, glVertexAttrib2fv); \
1692 USE_GL_FUNC(PGLFNVERTEXATTRIB2SPROC, glVertexAttrib2s); \
1693 USE_GL_FUNC(PGLFNVERTEXATTRIB2SVPROC, glVertexAttrib2sv); \
1694 USE_GL_FUNC(PGLFNVERTEXATTRIB3DPROC, glVertexAttrib3d); \
1695 USE_GL_FUNC(PGLFNVERTEXATTRIB3DVPROC, glVertexAttrib3dv); \
1696 USE_GL_FUNC(PGLFNVERTEXATTRIB3FPROC, glVertexAttrib3f); \
1697 USE_GL_FUNC(PGLFNVERTEXATTRIB3FVPROC, glVertexAttrib3fv); \
1698 USE_GL_FUNC(PGLFNVERTEXATTRIB3SPROC, glVertexAttrib3s); \
1699 USE_GL_FUNC(PGLFNVERTEXATTRIB3SVPROC, glVertexAttrib3sv); \
1700 USE_GL_FUNC(PGLFNVERTEXATTRIB4NBVPROC, glVertexAttrib4Nbv); \
1701 USE_GL_FUNC(PGLFNVERTEXATTRIB4NIVPROC, glVertexAttrib4Niv); \
1702 USE_GL_FUNC(PGLFNVERTEXATTRIB4NSVPROC, glVertexAttrib4Nsv); \
1703 USE_GL_FUNC(PGLFNVERTEXATTRIB4NUBPROC, glVertexAttrib4Nub); \
1704 USE_GL_FUNC(PGLFNVERTEXATTRIB4NUBVPROC, glVertexAttrib4Nubv); \
1705 USE_GL_FUNC(PGLFNVERTEXATTRIB4NUIVPROC, glVertexAttrib4Nuiv); \
1706 USE_GL_FUNC(PGLFNVERTEXATTRIB4NUSVPROC, glVertexAttrib4Nusv); \
1707 USE_GL_FUNC(PGLFNVERTEXATTRIB4BVPROC, glVertexAttrib4bv); \
1708 USE_GL_FUNC(PGLFNVERTEXATTRIB4DPROC, glVertexAttrib4d); \
1709 USE_GL_FUNC(PGLFNVERTEXATTRIB4DVPROC, glVertexAttrib4dv); \
1710 USE_GL_FUNC(PGLFNVERTEXATTRIB4FPROC, glVertexAttrib4f); \
1711 USE_GL_FUNC(PGLFNVERTEXATTRIB4FVPROC, glVertexAttrib4fv); \
1712 USE_GL_FUNC(PGLFNVERTEXATTRIB4IVPROC, glVertexAttrib4iv); \
1713 USE_GL_FUNC(PGLFNVERTEXATTRIB4SVPROC, glVertexAttrib4sv); \
1714 USE_GL_FUNC(PGLFNVERTEXATTRIB4UBVPROC, glVertexAttrib4ubv); \
1715 USE_GL_FUNC(PGLFNVERTEXATTRIB4UIVPROC, glVertexAttrib4uiv); \
1716 USE_GL_FUNC(PGLFNVERTEXATTRIB4USVPROC, glVertexAttrib4usv); \
1717 USE_GL_FUNC(PGLFNVERTEXATTRIBPOINTERPROC, glVertexAttribPointer); \
1719 #define GLX_EXT_FUNCS_GEN \
1720 /** GLX_VERSION_1_3 **/ \
1721 USE_GL_FUNC(PGLXFNGLXCREATEPBUFFERPROC, glXCreatePbuffer); \
1722 USE_GL_FUNC(PGLXFNGLXDESTROYPBUFFERPROC, glXDestroyPbuffer); \
1723 USE_GL_FUNC(PGLXFNGLXCREATEPIXMAPPROC, glXCreatePixmap); \
1724 USE_GL_FUNC(PGLXFNGLXDESTROYPIXMAPPROC, glXDestroyPixmap); \
1725 USE_GL_FUNC(PGLXFNGLXCREATENEWCONTEXTPROC, glXCreateNewContext); \
1726 USE_GL_FUNC(PGLXFNGLXMAKECONTEXTCURRENTPROC, glXMakeContextCurrent); \
1727 USE_GL_FUNC(PGLXFNGLXCHOOSEFBCONFIGPROC, glXChooseFBConfig); \
1733 /* Redefines the constants */
1734 #define CALLBACK __stdcall
1735 #define WINAPI __stdcall
1736 #define APIENTRY WINAPI
1738 /****************************************************
1740 ****************************************************/
1741 #define USE_GL_FUNC(type, pfn) type pfn;
1742 typedef struct _WineD3D_GL_Info
{
1747 GL_Vendors gl_vendor
;
1749 DWORD gl_driver_version
;
1750 CHAR gl_renderer
[255];
1757 UINT max_texture_stages
;
1759 UINT max_sampler_stages
;
1760 UINT max_clipplanes
;
1761 UINT max_texture_size
;
1762 UINT max_texture3d_size
;
1763 float max_pointsize
;
1765 UINT max_anisotropy
;
1767 unsigned max_vshader_constantsF
;
1768 unsigned max_pshader_constantsF
;
1770 unsigned vs_arb_constantsF
;
1771 unsigned vs_arb_max_instructions
;
1772 unsigned vs_arb_max_temps
;
1773 unsigned ps_arb_constantsF
;
1774 unsigned ps_arb_max_instructions
;
1775 unsigned ps_arb_max_temps
;
1776 unsigned vs_glsl_constantsF
;
1777 unsigned ps_glsl_constantsF
;
1779 GL_PSVersion ps_arb_version
;
1780 GL_PSVersion ps_nv_version
;
1782 GL_VSVersion vs_arb_version
;
1783 GL_VSVersion vs_nv_version
;
1784 GL_VSVersion vs_ati_version
;
1786 BOOL supported
[OPENGL_SUPPORTED_EXT_END
+ 1];
1788 /** OpenGL EXT and ARB functions ptr */
1790 /** OpenGL GLX functions ptr */
1792 /** OpenGL 2.0 functions ptr */
1793 /* GL2_FUNCS_GEN; */
1798 typedef struct _WineD3D_GLContext
{
1805 #endif /* HAVE_OPENGL */
1807 #endif /* __WINE_WINED3D_GL */