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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 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_vertex_blend */
55 #ifndef GL_ARB_vertex_blend
56 #define GL_ARB_vertex_blend 1
57 #define GL_MAX_VERTEX_UNITS_ARB 0x86A4
58 #define GL_ACTIVE_VERTEX_UNITS_ARB 0x86A5
59 #define GL_WEIGHT_SUM_UNITY_ARB 0x86A6
60 #define GL_VERTEX_BLEND_ARB 0x86A7
61 #define GL_CURRENT_WEIGHT_ARB 0x86A8
62 #define GL_WEIGHT_ARRAY_TYPE_ARB 0x86A9
63 #define GL_WEIGHT_ARRAY_STRIDE_ARB 0x86AA
64 #define GL_WEIGHT_ARRAY_SIZE_ARB 0x86AB
65 #define GL_WEIGHT_ARRAY_POINTER_ARB 0x86AC
66 #define GL_WEIGHT_ARRAY_ARB 0x86AD
67 #define GL_MODELVIEW0_ARB 0x1700
68 #define GL_MODELVIEW1_ARB 0x850A
69 #define GL_MODELVIEW2_ARB 0x8722
70 #define GL_MODELVIEW3_ARB 0x8723
71 #define GL_MODELVIEW4_ARB 0x8724
72 #define GL_MODELVIEW5_ARB 0x8725
73 #define GL_MODELVIEW6_ARB 0x8726
74 #define GL_MODELVIEW7_ARB 0x8727
75 #define GL_MODELVIEW8_ARB 0x8728
76 #define GL_MODELVIEW9_ARB 0x8729
77 #define GL_MODELVIEW10_ARB 0x872A
78 #define GL_MODELVIEW11_ARB 0x872B
79 #define GL_MODELVIEW12_ARB 0x872C
80 #define GL_MODELVIEW13_ARB 0x872D
81 #define GL_MODELVIEW14_ARB 0x872E
82 #define GL_MODELVIEW15_ARB 0x872F
83 #define GL_MODELVIEW16_ARB 0x8730
84 #define GL_MODELVIEW17_ARB 0x8731
85 #define GL_MODELVIEW18_ARB 0x8732
86 #define GL_MODELVIEW19_ARB 0x8733
87 #define GL_MODELVIEW20_ARB 0x8734
88 #define GL_MODELVIEW21_ARB 0x8735
89 #define GL_MODELVIEW22_ARB 0x8736
90 #define GL_MODELVIEW23_ARB 0x8737
91 #define GL_MODELVIEW24_ARB 0x8738
92 #define GL_MODELVIEW25_ARB 0x8739
93 #define GL_MODELVIEW26_ARB 0x873A
94 #define GL_MODELVIEW27_ARB 0x873B
95 #define GL_MODELVIEW28_ARB 0x873C
96 #define GL_MODELVIEW29_ARB 0x873D
97 #define GL_MODELVIEW30_ARB 0x873E
98 #define GL_MODELVIEW31_ARB 0x873F
100 typedef void (APIENTRY * PGLFNGLWEIGHTPOINTERARB) (GLint size, GLenum type, GLsizei stride, GLvoid* pointer);
101 /* GL_ARB_pixel_buffer_object */
102 #ifndef GL_ARB_pixel_buffer_object
103 #define GL_ARB_pixel_buffer_object 1
105 #define GL_PIXEL_PACK_BUFFER_ARB 0x88EB
106 #define GL_PIXEL_UNPACK_BUFFER_ARB 0x88EC
107 #define GL_PIXEL_PACK_BUFFER_BINDING_ARB 0x88ED
108 #define GL_PIXEL_UNPACK_BUFFER_BINDING_ARB 0x88EF
109 /* GL_EXT_framebuffer_object */
110 #ifndef GL_EXT_framebuffer_object
111 #define GL_EXT_framebuffer_object 1
112 #define GL_FRAMEBUFFER_EXT 0x8D40
113 #define GL_RENDERBUFFER_EXT 0x8D41
114 #define GL_STENCIL_INDEX1_EXT 0x8D46
115 #define GL_STENCIL_INDEX4_EXT 0x8D47
116 #define GL_STENCIL_INDEX8_EXT 0x8D48
117 #define GL_STENCIL_INDEX16_EXT 0x8D49
118 #define GL_RENDERBUFFER_WIDTH_EXT 0x8D42
119 #define GL_RENDERBUFFER_HEIGHT_EXT 0x8D43
120 #define GL_RENDERBUFFER_INTERNAL_FORMAT_EXT 0x8D44
121 #define GL_RENDERBUFFER_RED_SIZE_EXT 0x8D50
122 #define GL_RENDERBUFFER_GREEN_SIZE_EXT 0x8D51
123 #define GL_RENDERBUFFER_BLUE_SIZE_EXT 0x8D52
124 #define GL_RENDERBUFFER_ALPHA_SIZE_EXT 0x8D53
125 #define GL_RENDERBUFFER_DEPTH_SIZE_EXT 0x8D54
126 #define GL_RENDERBUFFER_STENCIL_SIZE_EXT 0x8D55
127 #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_EXT 0x8CD0
128 #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_EXT 0x8CD1
129 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_EXT 0x8CD2
130 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_EXT 0x8CD3
131 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_EXT 0x8CD4
132 #define GL_COLOR_ATTACHMENT0_EXT 0x8CE0
133 #define GL_COLOR_ATTACHMENT1_EXT 0x8CE1
134 #define GL_COLOR_ATTACHMENT2_EXT 0x8CE2
135 #define GL_COLOR_ATTACHMENT3_EXT 0x8CE3
136 #define GL_COLOR_ATTACHMENT4_EXT 0x8CE4
137 #define GL_COLOR_ATTACHMENT5_EXT 0x8CE5
138 #define GL_COLOR_ATTACHMENT6_EXT 0x8CE6
139 #define GL_COLOR_ATTACHMENT7_EXT 0x8CE7
140 #define GL_COLOR_ATTACHMENT8_EXT 0x8CE8
141 #define GL_COLOR_ATTACHMENT9_EXT 0x8CE9
142 #define GL_COLOR_ATTACHMENT10_EXT 0x8CEA
143 #define GL_COLOR_ATTACHMENT11_EXT 0x8CEB
144 #define GL_COLOR_ATTACHMENT12_EXT 0x8CEC
145 #define GL_COLOR_ATTACHMENT13_EXT 0x8CED
146 #define GL_COLOR_ATTACHMENT14_EXT 0x8CEE
147 #define GL_COLOR_ATTACHMENT15_EXT 0x8CEF
148 #define GL_DEPTH_ATTACHMENT_EXT 0x8D00
149 #define GL_STENCIL_ATTACHMENT_EXT 0x8D20
150 #define GL_FRAMEBUFFER_COMPLETE_EXT 0x8CD5
151 #define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT 0x8CD6
152 #define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT 0x8CD7
153 #define GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT 0x8CD9
154 #define GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT 0x8CDA
155 #define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT 0x8CDB
156 #define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT 0x8CDC
157 #define GL_FRAMEBUFFER_UNSUPPORTED_EXT 0x8CDD
158 #define GL_FRAMEBUFFER_BINDING_EXT 0x8CA6
159 #define GL_RENDERBUFFER_BINDING_EXT 0x8CA7
160 #define GL_MAX_COLOR_ATTACHMENTS_EXT 0x8CDF
161 #define GL_MAX_RENDERBUFFER_SIZE_EXT 0x84E8
162 #define GL_INVALID_FRAMEBUFFER_OPERATION_EXT 0x0506
164 typedef GLboolean (APIENTRY * PGLFNGLISRENDERBUFFEREXTPROC)(GLuint renderbuffer);
165 typedef void (APIENTRY * PGLFNGLBINDRENDERBUFFEREXTPROC)(GLenum target, GLuint renderbuffer);
166 typedef void (APIENTRY * PGLFNGLDELETERENDERBUFFERSEXTPROC)(GLsizei n, const GLuint *renderbuffers);
167 typedef void (APIENTRY * PGLFNGLGENRENDERBUFFERSEXTPROC)(GLsizei n, GLuint *renderbuffers);
168 typedef void (APIENTRY * PGLFNGLRENDERBUFFERSTORAGEEXTPROC)(GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
169 typedef void (APIENTRY * PGLFNGLGETRENDERBUFFERPARAMETERIVEXTPROC)(GLenum target, GLenum pname, GLint *params);
170 typedef GLboolean (APIENTRY * PGLFNGLISFRAMEBUFFEREXTPROC)(GLuint framebuffer);
171 typedef void (APIENTRY * PGLFNGLBINDFRAMEBUFFEREXTPROC)(GLenum target, GLuint framebuffer);
172 typedef void (APIENTRY * PGLFNGLDELETEFRAMEBUFFERSEXTPROC)(GLsizei n, const GLuint *framebuffers);
173 typedef void (APIENTRY * PGLFNGLGENFRAMEBUFFERSEXTPROC)(GLsizei n, GLuint *framebuffers);
174 typedef GLenum (APIENTRY * PGLFNGLCHECKFRAMEBUFFERSTATUSEXTPROC)(GLenum target);
175 typedef void (APIENTRY * PGLFNGLFRAMEBUFFERTEXTURE1DEXTPROC)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
176 typedef void (APIENTRY * PGLFNGLFRAMEBUFFERTEXTURE2DEXTPROC)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
177 typedef void (APIENTRY * PGLFNGLFRAMEBUFFERTEXTURE3DEXTPROC)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
178 typedef void (APIENTRY * PGLFNGLFRAMEBUFFERRENDERBUFFEREXTPROC)(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
179 typedef void (APIENTRY * PGLFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC)(GLenum target, GLenum attachment, GLenum pname, GLint *params);
180 typedef void (APIENTRY * PGLFNGLGENERATEMIPMAPEXTPROC)(GLenum target);
181 /* GL_EXT_secondary_color */
182 #ifndef GL_EXT_secondary_color
183 #define GL_EXT_secondary_color 1
184 #define GL_COLOR_SUM_EXT 0x8458
185 #define GL_CURRENT_SECONDARY_COLOR_EXT 0x8459
186 #define GL_SECONDARY_COLOR_ARRAY_SIZE_EXT 0x845A
187 #define GL_SECONDARY_COLOR_ARRAY_TYPE_EXT 0x845B
188 #define GL_SECONDARY_COLOR_ARRAY_STRIDE_EXT 0x845C
189 #define GL_SECONDARY_COLOR_ARRAY_POINTER_EXT 0x845D
190 #define GL_SECONDARY_COLOR_ARRAY_EXT 0x845E
192 typedef void (APIENTRY * PGLFNGLSECONDARYCOLOR3FEXTPROC) (GLfloat red, GLfloat green, GLfloat blue);
193 typedef void (APIENTRY * PGLFNGLSECONDARYCOLOR3FVEXTPROC) (const GLfloat *v);
194 typedef void (APIENTRY * PGLFNGLSECONDARYCOLOR3UBEXTPROC) (GLubyte red, GLubyte green, GLubyte blue);
195 typedef void (APIENTRY * PGLFNGLSECONDARYCOLORPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
196 /* GL_EXT_paletted_texture */
197 #ifndef GL_EXT_paletted_texture
198 #define GL_EXT_paletted_texture 1
199 #define GL_COLOR_INDEX1_EXT 0x80E2
200 #define GL_COLOR_INDEX2_EXT 0x80E3
201 #define GL_COLOR_INDEX4_EXT 0x80E4
202 #define GL_COLOR_INDEX8_EXT 0x80E5
203 #define GL_COLOR_INDEX12_EXT 0x80E6
204 #define GL_COLOR_INDEX16_EXT 0x80E7
205 #define GL_TEXTURE_INDEX_SIZE_EXT 0x80ED
207 typedef void (APIENTRY * PGLFNGLCOLORTABLEEXTPROC) (GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum type, const GLvoid *table);
208 /* GL_EXT_point_parameters */
209 #ifndef GL_EXT_point_parameters
210 #define GL_EXT_point_parameters 1
211 #define GL_POINT_SIZE_MIN_EXT 0x8126
212 #define GL_POINT_SIZE_MAX_EXT 0x8127
213 #define GL_POINT_FADE_THRESHOLD_SIZE_EXT 0x8128
214 #define GL_DISTANCE_ATTENUATION_EXT 0x8129
216 typedef void (APIENTRY * PGLFNGLPOINTPARAMETERFEXTPROC) (GLenum pname, GLfloat param);
217 typedef void (APIENTRY * PGLFNGLPOINTPARAMETERFVEXTPROC) (GLenum pname, const GLfloat *params);
218 /* GL_EXT_texture_env_combine */
219 #ifndef GL_EXT_texture_env_combine
220 #define GL_EXT_texture_env_combine 1
221 #define GL_COMBINE_EXT 0x8570
222 #define GL_COMBINE_RGB_EXT 0x8571
223 #define GL_COMBINE_ALPHA_EXT 0x8572
224 #define GL_RGB_SCALE_EXT 0x8573
225 #define GL_ADD_SIGNED_EXT 0x8574
226 #define GL_INTERPOLATE_EXT 0x8575
227 #define GL_SUBTRACT_EXT 0x84E7
228 #define GL_CONSTANT_EXT 0x8576
229 #define GL_PRIMARY_COLOR_EXT 0x8577
230 #define GL_PREVIOUS_EXT 0x8578
231 #define GL_SOURCE0_RGB_EXT 0x8580
232 #define GL_SOURCE1_RGB_EXT 0x8581
233 #define GL_SOURCE2_RGB_EXT 0x8582
234 #define GL_SOURCE3_RGB_EXT 0x8583
235 #define GL_SOURCE4_RGB_EXT 0x8584
236 #define GL_SOURCE5_RGB_EXT 0x8585
237 #define GL_SOURCE6_RGB_EXT 0x8586
238 #define GL_SOURCE7_RGB_EXT 0x8587
239 #define GL_SOURCE0_ALPHA_EXT 0x8588
240 #define GL_SOURCE1_ALPHA_EXT 0x8589
241 #define GL_SOURCE2_ALPHA_EXT 0x858A
242 #define GL_SOURCE3_ALPHA_EXT 0x858B
243 #define GL_SOURCE4_ALPHA_EXT 0x858C
244 #define GL_SOURCE5_ALPHA_EXT 0x858D
245 #define GL_SOURCE6_ALPHA_EXT 0x858E
246 #define GL_SOURCE7_ALPHA_EXT 0x858F
247 #define GL_OPERAND0_RGB_EXT 0x8590
248 #define GL_OPERAND1_RGB_EXT 0x8591
249 #define GL_OPERAND2_RGB_EXT 0x8592
250 #define GL_OPERAND3_RGB_EXT 0x8593
251 #define GL_OPERAND4_RGB_EXT 0x8594
252 #define GL_OPERAND5_RGB_EXT 0x8595
253 #define GL_OPERAND6_RGB_EXT 0x8596
254 #define GL_OPERAND7_RGB_EXT 0x8597
255 #define GL_OPERAND0_ALPHA_EXT 0x8598
256 #define GL_OPERAND1_ALPHA_EXT 0x8599
257 #define GL_OPERAND2_ALPHA_EXT 0x859A
258 #define GL_OPERAND3_ALPHA_EXT 0x859B
259 #define GL_OPERAND4_ALPHA_EXT 0x859C
260 #define GL_OPERAND5_ALPHA_EXT 0x859D
261 #define GL_OPERAND6_ALPHA_EXT 0x859E
262 #define GL_OPERAND7_ALPHA_EXT 0x859F
264 /* GL_EXT_texture_env_dot3 */
265 #ifndef GL_EXT_texture_env_dot3
266 #define GL_EXT_texture_env_dot3 1
267 #define GL_DOT3_RGB_EXT 0x8740
268 #define GL_DOT3_RGBA_EXT 0x8741
270 /* GL_EXT_texture_lod_bias */
271 #ifndef GL_EXT_texture_lod_bias
272 #define GL_EXT_texture_lod_bias 1
273 #define GL_MAX_TEXTURE_LOD_BIAS_EXT 0x84FD
274 #define GL_TEXTURE_FILTER_CONTROL_EXT 0x8500
275 #define GL_TEXTURE_LOD_BIAS_EXT 0x8501
277 /* GL_ARB_texture_border_clamp */
278 #ifndef GL_ARB_texture_border_clamp
279 #define GL_ARB_texture_border_clamp 1
280 #define GL_CLAMP_TO_BORDER_ARB 0x812D
282 /* GL_ARB_texture_mirrored_repeat (full support GL1.4) */
283 #ifndef GL_ARB_texture_mirrored_repeat
284 #define GL_ARB_texture_mirrored_repeat 1
285 #define GL_MIRRORED_REPEAT_ARB 0x8370
287 /* GL_ATI_texture_mirror_once */
288 #ifndef GL_ATI_texture_mirror_once
289 #define GL_ATI_texture_mirror_once 1
290 #define GL_MIRROR_CLAMP_ATI 0x8742
291 #define GL_MIRROR_CLAMP_TO_EDGE_ATI 0x8743
293 /* GL_ARB_texture_env_dot3 */
294 #ifndef GL_ARB_texture_env_dot3
295 #define GL_ARB_texture_env_dot3 1
296 #define GL_DOT3_RGB_ARB 0x86AE
297 #define GL_DOT3_RGBA_ARB 0x86AF
299 /* GL_EXT_texture_env_dot3 */
300 #ifndef GL_EXT_texture_env_dot3
301 #define GL_EXT_texture_env_dot3 1
302 #define GL_DOT3_RGB_EXT 0x8740
303 #define GL_DOT3_RGBA_EXT 0x8741
305 /* GL_ARB_vertex_program */
306 #ifndef GL_ARB_vertex_program
307 #define GL_ARB_vertex_program 1
308 #define GL_VERTEX_PROGRAM_ARB 0x8620
309 #define GL_VERTEX_PROGRAM_POINT_SIZE_ARB 0x8642
310 #define GL_VERTEX_PROGRAM_TWO_SIDE_ARB 0x8643
311 #define GL_COLOR_SUM_ARB 0x8458
312 #define GL_PROGRAM_FORMAT_ASCII_ARB 0x8875
313 #define GL_VERTEX_ATTRIB_ARRAY_ENABLED_ARB 0x8622
314 #define GL_VERTEX_ATTRIB_ARRAY_SIZE_ARB 0x8623
315 #define GL_VERTEX_ATTRIB_ARRAY_STRIDE_ARB 0x8624
316 #define GL_VERTEX_ATTRIB_ARRAY_TYPE_ARB 0x8625
317 #define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED_ARB 0x886A
318 #define GL_CURRENT_VERTEX_ATTRIB_ARB 0x8626
319 #define GL_VERTEX_ATTRIB_ARRAY_POINTER_ARB 0x8645
320 #define GL_PROGRAM_LENGTH_ARB 0x8627
321 #define GL_PROGRAM_FORMAT_ARB 0x8876
322 #define GL_PROGRAM_BINDING_ARB 0x8677
323 #define GL_PROGRAM_INSTRUCTIONS_ARB 0x88A0
324 #define GL_MAX_PROGRAM_INSTRUCTIONS_ARB 0x88A1
325 #define GL_PROGRAM_NATIVE_INSTRUCTIONS_ARB 0x88A2
326 #define GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB 0x88A3
327 #define GL_PROGRAM_TEMPORARIES_ARB 0x88A4
328 #define GL_MAX_PROGRAM_TEMPORARIES_ARB 0x88A5
329 #define GL_PROGRAM_NATIVE_TEMPORARIES_ARB 0x88A6
330 #define GL_MAX_PROGRAM_NATIVE_TEMPORARIES_ARB 0x88A7
331 #define GL_PROGRAM_PARAMETERS_ARB 0x88A8
332 #define GL_MAX_PROGRAM_PARAMETERS_ARB 0x88A9
333 #define GL_PROGRAM_NATIVE_PARAMETERS_ARB 0x88AA
334 #define GL_MAX_PROGRAM_NATIVE_PARAMETERS_ARB 0x88AB
335 #define GL_PROGRAM_ATTRIBS_ARB 0x88AC
336 #define GL_MAX_PROGRAM_ATTRIBS_ARB 0x88AD
337 #define GL_PROGRAM_NATIVE_ATTRIBS_ARB 0x88AE
338 #define GL_MAX_PROGRAM_NATIVE_ATTRIBS_ARB 0x88AF
339 #define GL_PROGRAM_ADDRESS_REGISTERS_ARB 0x88B0
340 #define GL_MAX_PROGRAM_ADDRESS_REGISTERS_ARB 0x88B1
341 #define GL_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB 0x88B2
342 #define GL_MAX_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB 0x88B3
343 #define GL_MAX_PROGRAM_LOCAL_PARAMETERS_ARB 0x88B4
344 #define GL_MAX_PROGRAM_ENV_PARAMETERS_ARB 0x88B5
345 #define GL_PROGRAM_UNDER_NATIVE_LIMITS_ARB 0x88B6
346 #define GL_PROGRAM_STRING_ARB 0x8628
347 #define GL_PROGRAM_ERROR_POSITION_ARB 0x864B
348 #define GL_CURRENT_MATRIX_ARB 0x8641
349 #define GL_TRANSPOSE_CURRENT_MATRIX_ARB 0x88B7
350 #define GL_CURRENT_MATRIX_STACK_DEPTH_ARB 0x8640
351 #define GL_MAX_VERTEX_ATTRIBS_ARB 0x8869
352 #define GL_MAX_PROGRAM_MATRICES_ARB 0x862F
353 #define GL_MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB 0x862E
354 #define GL_PROGRAM_ERROR_STRING_ARB 0x8874
355 #define GL_MATRIX0_ARB 0x88C0
356 #define GL_MATRIX1_ARB 0x88C1
357 #define GL_MATRIX2_ARB 0x88C2
358 #define GL_MATRIX3_ARB 0x88C3
359 #define GL_MATRIX4_ARB 0x88C4
360 #define GL_MATRIX5_ARB 0x88C5
361 #define GL_MATRIX6_ARB 0x88C6
362 #define GL_MATRIX7_ARB 0x88C7
363 #define GL_MATRIX8_ARB 0x88C8
364 #define GL_MATRIX9_ARB 0x88C9
365 #define GL_MATRIX10_ARB 0x88CA
366 #define GL_MATRIX11_ARB 0x88CB
367 #define GL_MATRIX12_ARB 0x88CC
368 #define GL_MATRIX13_ARB 0x88CD
369 #define GL_MATRIX14_ARB 0x88CE
370 #define GL_MATRIX15_ARB 0x88CF
371 #define GL_MATRIX16_ARB 0x88D0
372 #define GL_MATRIX17_ARB 0x88D1
373 #define GL_MATRIX18_ARB 0x88D2
374 #define GL_MATRIX19_ARB 0x88D3
375 #define GL_MATRIX20_ARB 0x88D4
376 #define GL_MATRIX21_ARB 0x88D5
377 #define GL_MATRIX22_ARB 0x88D6
378 #define GL_MATRIX23_ARB 0x88D7
379 #define GL_MATRIX24_ARB 0x88D8
380 #define GL_MATRIX25_ARB 0x88D9
381 #define GL_MATRIX26_ARB 0x88DA
382 #define GL_MATRIX27_ARB 0x88DB
383 #define GL_MATRIX28_ARB 0x88DC
384 #define GL_MATRIX29_ARB 0x88DD
385 #define GL_MATRIX30_ARB 0x88DE
386 #define GL_MATRIX31_ARB 0x88DF
388 typedef void (APIENTRY * PGLFNVERTEXATTRIB1DARBPROC) (GLuint index, GLdouble x);
389 typedef void (APIENTRY * PGLFNVERTEXATTRIB1DVARBPROC) (GLuint index, const GLdouble *v);
390 typedef void (APIENTRY * PGLFNVERTEXATTRIB1FARBPROC) (GLuint index, GLfloat x);
391 typedef void (APIENTRY * PGLFNVERTEXATTRIB1FVARBPROC) (GLuint index, const GLfloat *v);
392 typedef void (APIENTRY * PGLFNVERTEXATTRIB1SARBPROC) (GLuint index, GLshort x);
393 typedef void (APIENTRY * PGLFNVERTEXATTRIB1SVARBPROC) (GLuint index, const GLshort *v);
394 typedef void (APIENTRY * PGLFNVERTEXATTRIB2DARBPROC) (GLuint index, GLdouble x, GLdouble y);
395 typedef void (APIENTRY * PGLFNVERTEXATTRIB2DVARBPROC) (GLuint index, const GLdouble *v);
396 typedef void (APIENTRY * PGLFNVERTEXATTRIB2FARBPROC) (GLuint index, GLfloat x, GLfloat y);
397 typedef void (APIENTRY * PGLFNVERTEXATTRIB2FVARBPROC) (GLuint index, const GLfloat *v);
398 typedef void (APIENTRY * PGLFNVERTEXATTRIB2SARBPROC) (GLuint index, GLshort x, GLshort y);
399 typedef void (APIENTRY * PGLFNVERTEXATTRIB2SVARBPROC) (GLuint index, const GLshort *v);
400 typedef void (APIENTRY * PGLFNVERTEXATTRIB3DARBPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z);
401 typedef void (APIENTRY * PGLFNVERTEXATTRIB3DVARBPROC) (GLuint index, const GLdouble *v);
402 typedef void (APIENTRY * PGLFNVERTEXATTRIB3FARBPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z);
403 typedef void (APIENTRY * PGLFNVERTEXATTRIB3FVARBPROC) (GLuint index, const GLfloat *v);
404 typedef void (APIENTRY * PGLFNVERTEXATTRIB3SARBPROC) (GLuint index, GLshort x, GLshort y, GLshort z);
405 typedef void (APIENTRY * PGLFNVERTEXATTRIB3SVARBPROC) (GLuint index, const GLshort *v);
406 typedef void (APIENTRY * PGLFNVERTEXATTRIB4NBVARBPROC) (GLuint index, const GLbyte *v);
407 typedef void (APIENTRY * PGLFNVERTEXATTRIB4NIVARBPROC) (GLuint index, const GLint *v);
408 typedef void (APIENTRY * PGLFNVERTEXATTRIB4NSVARBPROC) (GLuint index, const GLshort *v);
409 typedef void (APIENTRY * PGLFNVERTEXATTRIB4NUBARBPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
410 typedef void (APIENTRY * PGLFNVERTEXATTRIB4NUBVARBPROC) (GLuint index, const GLubyte *v);
411 typedef void (APIENTRY * PGLFNVERTEXATTRIB4NUIVARBPROC) (GLuint index, const GLuint *v);
412 typedef void (APIENTRY * PGLFNVERTEXATTRIB4NUSVARBPROC) (GLuint index, const GLushort *v);
413 typedef void (APIENTRY * PGLFNVERTEXATTRIB4BVARBPROC) (GLuint index, const GLbyte *v);
414 typedef void (APIENTRY * PGLFNVERTEXATTRIB4DARBPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
415 typedef void (APIENTRY * PGLFNVERTEXATTRIB4DVARBPROC) (GLuint index, const GLdouble *v);
416 typedef void (APIENTRY * PGLFNVERTEXATTRIB4FARBPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
417 typedef void (APIENTRY * PGLFNVERTEXATTRIB4FVARBPROC) (GLuint index, const GLfloat *v);
418 typedef void (APIENTRY * PGLFNVERTEXATTRIB4IVARBPROC) (GLuint index, const GLint *v);
419 typedef void (APIENTRY * PGLFNVERTEXATTRIB4SARBPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
420 typedef void (APIENTRY * PGLFNVERTEXATTRIB4SVARBPROC) (GLuint index, const GLshort *v);
421 typedef void (APIENTRY * PGLFNVERTEXATTRIB4UBVARBPROC) (GLuint index, const GLubyte *v);
422 typedef void (APIENTRY * PGLFNVERTEXATTRIB4UIVARBPROC) (GLuint index, const GLuint *v);
423 typedef void (APIENTRY * PGLFNVERTEXATTRIB4USVARBPROC) (GLuint index, const GLushort *v);
424 typedef void (APIENTRY * PGLFNVERTEXATTRIBPOINTERARBPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer);
425 typedef void (APIENTRY * PGLFNENABLEVERTEXATTRIBARRAYARBPROC) (GLuint index);
426 typedef void (APIENTRY * PGLFNDISABLEVERTEXATTRIBARRAYARBPROC) (GLuint index);
427 typedef void (APIENTRY * PGLFNPROGRAMSTRINGARBPROC) (GLenum target, GLenum format, GLsizei len, const GLvoid *string);
428 typedef void (APIENTRY * PGLFNBINDPROGRAMARBPROC) (GLenum target, GLuint program);
429 typedef void (APIENTRY * PGLFNDELETEPROGRAMSARBPROC) (GLsizei n, const GLuint *programs);
430 typedef void (APIENTRY * PGLFNGENPROGRAMSARBPROC) (GLsizei n, GLuint *programs);
431 typedef void (APIENTRY * PGLFNPROGRAMENVPARAMETER4DARBPROC) (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
432 typedef void (APIENTRY * PGLFNPROGRAMENVPARAMETER4DVARBPROC) (GLenum target, GLuint index, const GLdouble *params);
433 typedef void (APIENTRY * PGLFNPROGRAMENVPARAMETER4FARBPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
434 typedef void (APIENTRY * PGLFNPROGRAMENVPARAMETER4FVARBPROC) (GLenum target, GLuint index, const GLfloat *params);
435 typedef void (APIENTRY * PGLFNPROGRAMLOCALPARAMETER4DARBPROC) (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
436 typedef void (APIENTRY * PGLFNPROGRAMLOCALPARAMETER4DVARBPROC) (GLenum target, GLuint index, const GLdouble *params);
437 typedef void (APIENTRY * PGLFNPROGRAMLOCALPARAMETER4FARBPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
438 typedef void (APIENTRY * PGLFNPROGRAMLOCALPARAMETER4FVARBPROC) (GLenum target, GLuint index, const GLfloat *params);
439 typedef void (APIENTRY * PGLFNGETPROGRAMENVPARAMETERDVARBPROC) (GLenum target, GLuint index, GLdouble *params);
440 typedef void (APIENTRY * PGLFNGETPROGRAMENVPARAMETERFVARBPROC) (GLenum target, GLuint index, GLfloat *params);
441 typedef void (APIENTRY * PGLFNGETPROGRAMLOCALPARAMETERDVARBPROC) (GLenum target, GLuint index, GLdouble *params);
442 typedef void (APIENTRY * PGLFNGETPROGRAMLOCALPARAMETERFVARBPROC) (GLenum target, GLuint index, GLfloat *params);
443 typedef void (APIENTRY * PGLFNGETPROGRAMIVARBPROC) (GLenum target, GLenum pname, GLint *params);
444 typedef void (APIENTRY * PGLFNGETPROGRAMSTRINGARBPROC) (GLenum target, GLenum pname, GLvoid *string);
445 typedef void (APIENTRY * PGLFNGETVERTEXATTRIBDVARBPROC) (GLuint index, GLenum pname, GLdouble *params);
446 typedef void (APIENTRY * PGLFNGETVERTEXATTRIBFVARBPROC) (GLuint index, GLenum pname, GLfloat *params);
447 typedef void (APIENTRY * PGLFNGETVERTEXATTRIBIVARBPROC) (GLuint index, GLenum pname, GLint *params);
448 typedef void (APIENTRY * PGLFNGETVERTEXATTRIBPOINTERVARBPROC) (GLuint index, GLenum pname, GLvoid* *pointer);
449 typedef GLboolean (APIENTRY * PGLFNISPROGRAMARBPROC) (GLuint program);
450 #ifndef GL_ARB_fragment_program
451 #define GL_ARB_fragment_program 1
452 #define GL_FRAGMENT_PROGRAM_ARB 0x8804
453 #define GL_PROGRAM_ALU_INSTRUCTIONS_ARB 0x8805
454 #define GL_PROGRAM_TEX_INSTRUCTIONS_ARB 0x8806
455 #define GL_PROGRAM_TEX_INDIRECTIONS_ARB 0x8807
456 #define GL_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB 0x8808
457 #define GL_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB 0x8809
458 #define GL_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB 0x880A
459 #define GL_MAX_PROGRAM_ALU_INSTRUCTIONS_ARB 0x880B
460 #define GL_MAX_PROGRAM_TEX_INSTRUCTIONS_ARB 0x880C
461 #define GL_MAX_PROGRAM_TEX_INDIRECTIONS_ARB 0x880D
462 #define GL_MAX_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB 0x880E
463 #define GL_MAX_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB 0x880F
464 #define GL_MAX_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB 0x8810
465 #define GL_MAX_TEXTURE_COORDS_ARB 0x8871
466 #define GL_MAX_TEXTURE_IMAGE_UNITS_ARB 0x8872
467 /* All ARB_fragment_program entry points are shared with ARB_vertex_program. */
469 /* GL_ARB_vertex_buffer_object */
470 #ifndef GL_ARB_vertex_buffer_object
471 #define GL_BUFFER_SIZE_ARB 0x8764
472 #define GL_BUFFER_USAGE_ARB 0x8765
473 #define GL_ARRAY_BUFFER_ARB 0x8892
474 #define GL_ELEMENT_ARRAY_BUFFER_ARB 0x8893
475 #define GL_ARRAY_BUFFER_BINDING_ARB 0x8894
476 #define GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB 0x8895
477 #define GL_VERTEX_ARRAY_BUFFER_BINDING_ARB 0x8896
478 #define GL_NORMAL_ARRAY_BUFFER_BINDING_ARB 0x8897
479 #define GL_COLOR_ARRAY_BUFFER_BINDING_ARB 0x8898
480 #define GL_INDEX_ARRAY_BUFFER_BINDING_ARB 0x8899
481 #define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB 0x889A
482 #define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING_ARB 0x889B
483 #define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING_ARB 0x889C
484 #define GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING_ARB 0x889D
485 #define GL_WEIGHT_ARRAY_BUFFER_BINDING_ARB 0x889E
486 #define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB 0x889F
487 #define GL_READ_ONLY_ARB 0x88B8
488 #define GL_WRITE_ONLY_ARB 0x88B9
489 #define GL_READ_WRITE_ARB 0x88BA
490 #define GL_BUFFER_ACCESS_ARB 0x88BB
491 #define GL_BUFFER_MAPPED_ARB 0x88BC
492 #define GL_BUFFER_MAP_POINTER_ARB 0x88BD
493 #define GL_STREAM_DRAW_ARB 0x88E0
494 #define GL_STREAM_READ_ARB 0x88E1
495 #define GL_STREAM_COPY_ARB 0x88E2
496 #define GL_STATIC_DRAW_ARB 0x88E4
497 #define GL_STATIC_READ_ARB 0x88E5
498 #define GL_STATIC_COPY_ARB 0x88E6
499 #define GL_DYNAMIC_DRAW_ARB 0x88E8
500 #define GL_DYNAMIC_READ_ARB 0x88E9
501 #define GL_DYNAMIC_COPY_ARB 0x88EA
503 typedef void (APIENTRY * PGLFNBINDBUFFERARBPROC) (GLenum target, GLuint buffer);
504 typedef void (APIENTRY * PGLFNDELETEBUFFERSARBPROC) (GLsizei n, const GLuint *buffers);
505 typedef void (APIENTRY * PGLFNGENBUFFERSARBPROC) (GLsizei n, GLuint *buffers);
506 typedef GLboolean (APIENTRY * PGLFNISBUFFERARBPROC) (GLuint buffer);
507 typedef void (APIENTRY * PGLFNBUFFERDATAARBPROC) (GLenum target, ptrdiff_t size, const GLvoid *data, GLenum usage);
508 typedef void (APIENTRY * PGLFNBUFFERSUBDATAARBPROC) (GLenum target, ptrdiff_t offset, ptrdiff_t size, const GLvoid *data);
509 typedef void (APIENTRY * PGLFNGETBUFFERSUBDATAARBPROC) (GLenum target, ptrdiff_t offset, ptrdiff_t size, GLvoid *data);
510 typedef GLvoid* (APIENTRY * PGLFNMAPBUFFERARBPROC) (GLenum target, GLenum access);
511 typedef GLboolean (APIENTRY * PGLFNUNMAPBUFFERARBPROC) (GLenum target);
512 typedef void (APIENTRY * PGLFNGETBUFFERPARAMETERIVARBPROC) (GLenum target, GLenum pname, GLint *params);
513 typedef void (APIENTRY * PGLFNGETBUFFERPOINTERVARBPROC) (GLenum target, GLenum pname, GLvoid* *params);
514 /* GL_EXT_texture_compression_s3tc */
515 #ifndef GL_EXT_texture_compression_s3tc
516 #define GL_EXT_texture_compression_s3tc 1
517 #define GL_COMPRESSED_RGB_S3TC_DXT1_EXT 0x83F0
518 #define GL_COMPRESSED_RGBA_S3TC_DXT1_EXT 0x83F1
519 #define GL_COMPRESSED_RGBA_S3TC_DXT3_EXT 0x83F2
520 #define GL_COMPRESSED_RGBA_S3TC_DXT5_EXT 0x83F3
522 typedef void (APIENTRY * PGLFNCOMPRESSEDTEXIMAGE3DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data);
523 typedef void (APIENTRY * PGLFNCOMPRESSEDTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data);
524 typedef void (APIENTRY * PGLFNCOMPRESSEDTEXIMAGE1DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data);
525 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);
526 typedef void (APIENTRY * PGLFNCOMPRESSEDTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data);
527 typedef void (APIENTRY * PGLFNCOMPRESSEDTEXSUBIMAGE1DPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data);
528 typedef void (APIENTRY * PGLFNGETCOMPRESSEDTEXIMAGEPROC) (GLenum target, GLint level, void *img);
529 /* GL_EXT_stencil_wrap */
530 #ifndef GL_EXT_stencil_wrap
531 #define GL_EXT_stencil_wrap 1
532 #define GL_INCR_WRAP_EXT 0x8507
533 #define GL_DECR_WRAP_EXT 0x8508
535 /* GL_NV_fog_distance */
536 #ifndef GL_NV_fog_distance
537 #define GL_NV_fog_distance 1
538 #define GL_FOG_DISTANCE_MODE_NV 0x855A
539 #define GL_EYE_RADIAL_NV 0x855B
540 #define GL_EYE_PLANE_ABSOLUTE_NV 0x855C
541 /* reuse GL_EYE_PLANE */
543 /* GL_NV_texgen_reflection */
544 #ifndef GL_NV_texgen_reflection
545 #define GL_NV_texgen_reflection 1
546 #define GL_NORMAL_MAP_NV 0x8511
547 #define GL_REFLECTION_MAP_NV 0x8512
549 /* GL_NV_register_combiners */
550 #ifndef GL_NV_register_combiners
551 #define GL_NV_register_combiners 1
552 #define GL_REGISTER_COMBINERS_NV 0x8522
553 #define GL_VARIABLE_A_NV 0x8523
554 #define GL_VARIABLE_B_NV 0x8524
555 #define GL_VARIABLE_C_NV 0x8525
556 #define GL_VARIABLE_D_NV 0x8526
557 #define GL_VARIABLE_E_NV 0x8527
558 #define GL_VARIABLE_F_NV 0x8528
559 #define GL_VARIABLE_G_NV 0x8529
560 #define GL_CONSTANT_COLOR0_NV 0x852A
561 #define GL_CONSTANT_COLOR1_NV 0x852B
562 #define GL_PRIMARY_COLOR_NV 0x852C
563 #define GL_SECONDARY_COLOR_NV 0x852D
564 #define GL_SPARE0_NV 0x852E
565 #define GL_SPARE1_NV 0x852F
566 #define GL_DISCARD_NV 0x8530
567 #define GL_E_TIMES_F_NV 0x8531
568 #define GL_SPARE0_PLUS_SECONDARY_COLOR_NV 0x8532
569 #define GL_UNSIGNED_IDENTITY_NV 0x8536
570 #define GL_UNSIGNED_INVERT_NV 0x8537
571 #define GL_EXPAND_NORMAL_NV 0x8538
572 #define GL_EXPAND_NEGATE_NV 0x8539
573 #define GL_HALF_BIAS_NORMAL_NV 0x853A
574 #define GL_HALF_BIAS_NEGATE_NV 0x853B
575 #define GL_SIGNED_IDENTITY_NV 0x853C
576 #define GL_SIGNED_NEGATE_NV 0x853D
577 #define GL_SCALE_BY_TWO_NV 0x853E
578 #define GL_SCALE_BY_FOUR_NV 0x853F
579 #define GL_SCALE_BY_ONE_HALF_NV 0x8540
580 #define GL_BIAS_BY_NEGATIVE_ONE_HALF_NV 0x8541
581 #define GL_COMBINER_INPUT_NV 0x8542
582 #define GL_COMBINER_MAPPING_NV 0x8543
583 #define GL_COMBINER_COMPONENT_USAGE_NV 0x8544
584 #define GL_COMBINER_AB_DOT_PRODUCT_NV 0x8545
585 #define GL_COMBINER_CD_DOT_PRODUCT_NV 0x8546
586 #define GL_COMBINER_MUX_SUM_NV 0x8547
587 #define GL_COMBINER_SCALE_NV 0x8548
588 #define GL_COMBINER_BIAS_NV 0x8549
589 #define GL_COMBINER_AB_OUTPUT_NV 0x854A
590 #define GL_COMBINER_CD_OUTPUT_NV 0x854B
591 #define GL_COMBINER_SUM_OUTPUT_NV 0x854C
592 #define GL_MAX_GENERAL_COMBINERS_NV 0x854D
593 #define GL_NUM_GENERAL_COMBINERS_NV 0x854E
594 #define GL_COLOR_SUM_CLAMP_NV 0x854F
595 #define GL_COMBINER0_NV 0x8550
596 #define GL_COMBINER1_NV 0x8551
597 #define GL_COMBINER2_NV 0x8552
598 #define GL_COMBINER3_NV 0x8553
599 #define GL_COMBINER4_NV 0x8554
600 #define GL_COMBINER5_NV 0x8555
601 #define GL_COMBINER6_NV 0x8556
602 #define GL_COMBINER7_NV 0x8557
603 /* reuse GL_TEXTURE0_ARB */
604 /* reuse GL_TEXTURE1_ARB */
609 typedef void (APIENTRY * PGLFNCOMBINERPARAMETERFVNVPROC) (GLenum pname, const GLfloat *params);
610 typedef void (APIENTRY * PGLFNCOMBINERPARAMETERFNVPROC) (GLenum pname, GLfloat param);
611 typedef void (APIENTRY * PGLFNCOMBINERPARAMETERIVNVPROC) (GLenum pname, const GLint *params);
612 typedef void (APIENTRY * PGLFNCOMBINERPARAMETERINVPROC) (GLenum pname, GLint param);
613 typedef void (APIENTRY * PGLFNCOMBINERINPUTNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage);
614 typedef void (APIENTRY * PGLFNCOMBINEROUTPUTNVPROC) (GLenum stage, GLenum portion, GLenum abOutput, GLenum cdOutput, GLenum sumOutput, GLenum scale, GLenum bias, GLboolean abDotProduct, GLboolean cdDotProduct, GLboolean muxSum);
615 typedef void (APIENTRY * PGLFNFINALCOMBINERINPUTNVPROC) (GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage);
616 typedef void (APIENTRY * PGLFNGETCOMBINERINPUTPARAMETERFVNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLfloat *params);
617 typedef void (APIENTRY * PGLFNGETCOMBINERINPUTPARAMETERIVNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLint *params);
618 typedef void (APIENTRY * PGLFNGETCOMBINEROUTPUTPARAMETERFVNVPROC) (GLenum stage, GLenum portion, GLenum pname, GLfloat *params);
619 typedef void (APIENTRY * PGLFNGETCOMBINEROUTPUTPARAMETERIVNVPROC) (GLenum stage, GLenum portion, GLenum pname, GLint *params);
620 typedef void (APIENTRY * PGLFNGETFINALCOMBINERINPUTPARAMETERFVNVPROC) (GLenum variable, GLenum pname, GLfloat *params);
621 typedef void (APIENTRY * PGLFNGETFINALCOMBINERINPUTPARAMETERIVNVPROC) (GLenum variable, GLenum pname, GLint *params);
622 /* GL_NV_register_combiners2 */
623 #ifndef GL_NV_register_combiners2
624 #define GL_NV_register_combiners2 1
625 #define GL_PER_STAGE_CONSTANTS_NV 0x8535
627 typedef void (APIENTRY * PGLFNCOMBINERSTAGEPARAMETERFVNVPROC) (GLenum stage, GLenum pname, const GLfloat *params);
628 typedef void (APIENTRY * PGLFNGETCOMBINERSTAGEPARAMETERFVNVPROC) (GLenum stage, GLenum pname, GLfloat *params);
629 /* GL_NV_texture_shader */
630 #ifndef GL_NV_texture_shader
631 #define GL_NV_texture_shader 1
632 #define GL_OFFSET_TEXTURE_RECTANGLE_NV 0x864C
633 #define GL_OFFSET_TEXTURE_RECTANGLE_SCALE_NV 0x864D
634 #define GL_DOT_PRODUCT_TEXTURE_RECTANGLE_NV 0x864E
635 #define GL_RGBA_UNSIGNED_DOT_PRODUCT_MAPPING_NV 0x86D9
636 #define GL_UNSIGNED_INT_S8_S8_8_8_NV 0x86DA
637 #define GL_UNSIGNED_INT_8_8_S8_S8_REV_NV 0x86DB
638 #define GL_DSDT_MAG_INTENSITY_NV 0x86DC
639 #define GL_SHADER_CONSISTENT_NV 0x86DD
640 #define GL_TEXTURE_SHADER_NV 0x86DE
641 #define GL_SHADER_OPERATION_NV 0x86DF
642 #define GL_CULL_MODES_NV 0x86E0
643 #define GL_OFFSET_TEXTURE_MATRIX_NV 0x86E1
644 #define GL_OFFSET_TEXTURE_SCALE_NV 0x86E2
645 #define GL_OFFSET_TEXTURE_BIAS_NV 0x86E3
646 #define GL_OFFSET_TEXTURE_2D_MATRIX_NV GL_OFFSET_TEXTURE_MATRIX_NV
647 #define GL_OFFSET_TEXTURE_2D_SCALE_NV GL_OFFSET_TEXTURE_SCALE_NV
648 #define GL_OFFSET_TEXTURE_2D_BIAS_NV GL_OFFSET_TEXTURE_BIAS_NV
649 #define GL_PREVIOUS_TEXTURE_INPUT_NV 0x86E4
650 #define GL_CONST_EYE_NV 0x86E5
651 #define GL_PASS_THROUGH_NV 0x86E6
652 #define GL_CULL_FRAGMENT_NV 0x86E7
653 #define GL_OFFSET_TEXTURE_2D_NV 0x86E8
654 #define GL_DEPENDENT_AR_TEXTURE_2D_NV 0x86E9
655 #define GL_DEPENDENT_GB_TEXTURE_2D_NV 0x86EA
656 #define GL_DOT_PRODUCT_NV 0x86EC
657 #define GL_DOT_PRODUCT_DEPTH_REPLACE_NV 0x86ED
658 #define GL_DOT_PRODUCT_TEXTURE_2D_NV 0x86EE
659 #define GL_DOT_PRODUCT_TEXTURE_CUBE_MAP_NV 0x86F0
660 #define GL_DOT_PRODUCT_DIFFUSE_CUBE_MAP_NV 0x86F1
661 #define GL_DOT_PRODUCT_REFLECT_CUBE_MAP_NV 0x86F2
662 #define GL_DOT_PRODUCT_CONST_EYE_REFLECT_CUBE_MAP_NV 0x86F3
663 #define GL_HILO_NV 0x86F4
664 #define GL_DSDT_NV 0x86F5
665 #define GL_DSDT_MAG_NV 0x86F6
666 #define GL_DSDT_MAG_VIB_NV 0x86F7
667 #define GL_HILO16_NV 0x86F8
668 #define GL_SIGNED_HILO_NV 0x86F9
669 #define GL_SIGNED_HILO16_NV 0x86FA
670 #define GL_SIGNED_RGBA_NV 0x86FB
671 #define GL_SIGNED_RGBA8_NV 0x86FC
672 #define GL_SIGNED_RGB_NV 0x86FE
673 #define GL_SIGNED_RGB8_NV 0x86FF
674 #define GL_SIGNED_LUMINANCE_NV 0x8701
675 #define GL_SIGNED_LUMINANCE8_NV 0x8702
676 #define GL_SIGNED_LUMINANCE_ALPHA_NV 0x8703
677 #define GL_SIGNED_LUMINANCE8_ALPHA8_NV 0x8704
678 #define GL_SIGNED_ALPHA_NV 0x8705
679 #define GL_SIGNED_ALPHA8_NV 0x8706
680 #define GL_SIGNED_INTENSITY_NV 0x8707
681 #define GL_SIGNED_INTENSITY8_NV 0x8708
682 #define GL_DSDT8_NV 0x8709
683 #define GL_DSDT8_MAG8_NV 0x870A
684 #define GL_DSDT8_MAG8_INTENSITY8_NV 0x870B
685 #define GL_SIGNED_RGB_UNSIGNED_ALPHA_NV 0x870C
686 #define GL_SIGNED_RGB8_UNSIGNED_ALPHA8_NV 0x870D
687 #define GL_HI_SCALE_NV 0x870E
688 #define GL_LO_SCALE_NV 0x870F
689 #define GL_DS_SCALE_NV 0x8710
690 #define GL_DT_SCALE_NV 0x8711
691 #define GL_MAGNITUDE_SCALE_NV 0x8712
692 #define GL_VIBRANCE_SCALE_NV 0x8713
693 #define GL_HI_BIAS_NV 0x8714
694 #define GL_LO_BIAS_NV 0x8715
695 #define GL_DS_BIAS_NV 0x8716
696 #define GL_DT_BIAS_NV 0x8717
697 #define GL_MAGNITUDE_BIAS_NV 0x8718
698 #define GL_VIBRANCE_BIAS_NV 0x8719
699 #define GL_TEXTURE_BORDER_VALUES_NV 0x871A
700 #define GL_TEXTURE_HI_SIZE_NV 0x871B
701 #define GL_TEXTURE_LO_SIZE_NV 0x871C
702 #define GL_TEXTURE_DS_SIZE_NV 0x871D
703 #define GL_TEXTURE_DT_SIZE_NV 0x871E
704 #define GL_TEXTURE_MAG_SIZE_NV 0x871F
706 /* GL_NV_texture_shader2 */
707 #ifndef GL_NV_texture_shader2
708 #define GL_NV_texture_shader2 1
709 #define GL_DOT_PRODUCT_TEXTURE_3D_NV 0x86EF
711 /* GL_NV_texture_shader3 */
712 #ifndef GL_NV_texture_shader3
713 #define GL_NV_texture_shader3 1
714 #define GL_OFFSET_PROJECTIVE_TEXTURE_2D_NV 0x8850
715 #define GL_OFFSET_PROJECTIVE_TEXTURE_2D_SCALE_NV 0x8851
716 #define GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_NV 0x8852
717 #define GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_SCALE_NV 0x8853
718 #define GL_OFFSET_HILO_TEXTURE_2D_NV 0x8854
719 #define GL_OFFSET_HILO_TEXTURE_RECTANGLE_NV 0x8855
720 #define GL_OFFSET_HILO_PROJECTIVE_TEXTURE_2D_NV 0x8856
721 #define GL_OFFSET_HILO_PROJECTIVE_TEXTURE_RECTANGLE_NV 0x8857
722 #define GL_DEPENDENT_HILO_TEXTURE_2D_NV 0x8858
723 #define GL_DEPENDENT_RGB_TEXTURE_3D_NV 0x8859
724 #define GL_DEPENDENT_RGB_TEXTURE_CUBE_MAP_NV 0x885A
725 #define GL_DOT_PRODUCT_PASS_THROUGH_NV 0x885B
726 #define GL_DOT_PRODUCT_TEXTURE_1D_NV 0x885C
727 #define GL_DOT_PRODUCT_AFFINE_DEPTH_REPLACE_NV 0x885D
728 #define GL_HILO8_NV 0x885E
729 #define GL_SIGNED_HILO8_NV 0x885F
730 #define GL_FORCE_BLUE_TO_ONE_NV 0x8860
732 /* GL_ATI_texture_env_combine3 */
733 #ifndef GL_ATI_texture_env_combine3
734 #define GL_ATI_texture_env_combine3 1
735 #define GL_MODULATE_ADD_ATI 0x8744
736 #define GL_MODULATE_SIGNED_ADD_ATI 0x8745
737 #define GL_MODULATE_SUBTRACT_ATI 0x8746
745 /* GL_ARB_point_sprite */
746 #ifndef GL_ARB_point_sprite
747 #define GL_ARB_point_sprite 1
748 #define GL_POINT_SPRITE_ARB 0x8861
749 #define GL_COORD_REPLACE_ARB 0x8862
752 * @TODO: GL_NV_point_sprite
758 /* GL_ARB_occlusion_query */
759 #ifndef GL_ARB_occlusion_query
760 #define GL_ARB_occlusion_query 1
761 #define GL_SAMPLES_PASSED_ARB 0x8914
762 #define GL_QUERY_COUNTER_BITS_ARB 0x8864
763 #define GL_CURRENT_QUERY_ARB 0x8865
764 #define GL_QUERY_RESULT_ARB 0x8866
765 #define GL_QUERY_RESULT_AVAILABLE_ARB 0x8867
767 typedef void (APIENTRY * PGLFNGENQUERIESARBPROC) (GLsizei n, GLuint *queries);
768 typedef void (APIENTRY * PGLFNDELETEQUERIESARBPROC) (GLsizei n, const GLuint *queries);
769 typedef GLboolean (APIENTRY * PGLFNISQUERYARBPROC) (GLuint query);
770 typedef void (APIENTRY * PGLFNBEGINQUERYARBPROC) (GLenum target, GLuint query);
771 typedef void (APIENTRY * PGLFNENDQUERYARBPROC) (GLenum target);
772 typedef void (APIENTRY * PGLFNGETQUERYIVARBPROC) (GLenum target, GLenum pname, GLint *params);
773 typedef void (APIENTRY * PGLFNGETQUERYOBJECTIVARBPROC) (GLuint query, GLenum pname, GLint *params);
774 typedef void (APIENTRY * PGLFNGETQUERYOBJECTUIVARBPROC) (GLuint query, GLenum pname, GLuint *params);
775 /* GL_HP_occlusion_test isn't complete, but it's constants are used by GL_NV_occlusion_query */
776 #ifndef GL_HP_occlusion_test
777 #define GL_HP_occlusion_test 1
778 #define GL_OCCLUSION_TEST_HP 0x8165
779 #define GL_OCCLUSION_TEST_RESULT_HP 0x8165
781 /* GL_NV_occlusion_query */
782 #ifndef GL_NV_occlusion_query
783 #define GL_NV_occlusion_query 1
784 #define GL_PIXEL_COUNTER_BITS_NV 0x8864
785 #define GL_CURRENT_OCCLUSION_QUERY_ID_NV 0x8865
786 #define GL_PIXEL_COUNT_NV 0x8866
787 #define GL_PIXEL_COUNT_AVAILABLE_NV 0x8867
789 typedef void (APIENTRY * PGLFNGENOCCLUSIONQUERIESNVPROC) (GLsizei n, GLuint *ids);
790 typedef void (APIENTRY * PGLFNDELETEOCCLUSIONQUERIESNVPROC) (GLsizei n, const GLuint *ids);
791 typedef GLboolean (APIENTRY * PGLFNISOCCLUSIONQUERYNVPROC) (GLuint id);
792 typedef void (APIENTRY * PGLFNBEGINOCCLUSIONQUERYNVPROC) (GLuint id);
793 typedef void (APIENTRY * PGLFNENDOCCLUSIONQUERYNVPROC) (void);
794 typedef void (APIENTRY * PGLFNGETOCCLUSIONQUERYIVNVPROC) (GLuint id, GLenum pname, GLint *params);
795 typedef void (APIENTRY * PGLFNGETOCCLUSIONQUERYUIVNVPROC) (GLuint id, GLenum pname, GLuint *params);
798 /****************************************************
799 * OpenGL Official Version
801 ****************************************************/
803 #if !defined(GL_DOT3_RGBA)
804 # define GL_DOT3_RGBA 0x8741
806 #if !defined(GL_SUBTRACT)
807 # define GL_SUBTRACT 0x84E7
811 /****************************************************
812 * OpenGL GLX Extensions
813 * defines and functions pointer
814 ****************************************************/
817 /****************************************************
818 * OpenGL GLX Official Version
819 * defines and functions pointer
820 ****************************************************/
821 /* GLX_VERSION_1_3 */
822 typedef GLXFBConfig * (APIENTRY * PGLXFNGLXGETFBCONFIGSPROC) (Display *dpy, int screen, int *nelements);
823 typedef GLXFBConfig * (APIENTRY * PGLXFNGLXCHOOSEFBCONFIGPROC) (Display *dpy, int screen, const int *attrib_list, int *nelements);
824 typedef int (APIENTRY * PGLXFNGLXGETFBCONFIGATTRIBPROC) (Display *dpy, GLXFBConfig config, int attribute, int *value);
825 typedef XVisualInfo * (APIENTRY * PGLXFNGLXGETVISUALFROMFBCONFIGPROC) (Display *dpy, GLXFBConfig config);
826 typedef GLXWindow (APIENTRY * PGLXFNGLXCREATEWINDOWPROC) (Display *dpy, GLXFBConfig config, Window win, const int *attrib_list);
827 typedef void (APIENTRY * PGLXFNGLXDESTROYWINDOWPROC) (Display *dpy, GLXWindow win);
828 typedef GLXPixmap (APIENTRY * PGLXFNGLXCREATEPIXMAPPROC) (Display *dpy, GLXFBConfig config, Pixmap pixmap, const int *attrib_list);
829 typedef void (APIENTRY * PGLXFNGLXDESTROYPIXMAPPROC) (Display *dpy, GLXPixmap pixmap);
830 typedef GLXPbuffer (APIENTRY * PGLXFNGLXCREATEPBUFFERPROC) (Display *dpy, GLXFBConfig config, const int *attrib_list);
831 typedef void (APIENTRY * PGLXFNGLXDESTROYPBUFFERPROC) (Display *dpy, GLXPbuffer pbuf);
832 typedef void (APIENTRY * PGLXFNGLXQUERYDRAWABLEPROC) (Display *dpy, GLXDrawable draw, int attribute, unsigned int *value);
833 typedef GLXContext (APIENTRY * PGLXFNGLXCREATENEWCONTEXTPROC) (Display *dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct);
834 typedef Bool (APIENTRY * PGLXFNGLXMAKECONTEXTCURRENTPROC) (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
835 typedef GLXDrawable (APIENTRY * PGLXFNGLXGETCURRENTREADDRAWABLEPROC) (void);
836 typedef Display * (APIENTRY * PGLXFNGLXGETCURRENTDISPLAYPROC) (void);
837 typedef int (APIENTRY * PGLXFNGLXQUERYCONTEXTPROC) (Display *dpy, GLXContext ctx, int attribute, int *value);
838 typedef void (APIENTRY * PGLXFNGLXSELECTEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long event_mask);
839 typedef void (APIENTRY * PGLXFNGLXGETSELECTEDEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long *event_mask);
842 /****************************************************
844 ****************************************************/
845 typedef enum _GL_Vendors {
849 VENDOR_NVIDIA = 0x10de,
850 VENDOR_INTEL = 0x8086
853 typedef enum _GL_Cards {
856 CARD_ATI_RADEON_8500 = 0x514c,
857 CARD_ATI_RADEON_9700PRO = 0x4e44,
858 CARD_ATI_RADEON_9800PRO = 0x4e48,
860 CARD_NVIDIA_GEFORCE4_TI4600 = 0x0250,
861 CARD_NVIDIA_GEFORCE4_TI4200 = 0x0281,
862 CARD_NVIDIA_GEFORCEFX_5900ULTRA = 0x0330,
863 CARD_NVIDIA_QUADROFX_3000 = 0x0338,
864 CARD_NVIDIA_GEFORCE_6800ULTRA = 0x0040,
865 CARD_NVIDIA_QUADROFX_4000 = 0x004e,
866 CARD_NVIDIA_GEFORCE_7800ULTRA = 0x0090,
868 CARD_INTEL_845G = 0x2562,
869 CARD_INTEL_I830G = 0x3577,
870 CARD_INTEL_I855G = 0x3582,
871 CARD_INTEL_I865G = 0x2572,
872 CARD_INTEL_I915G = 0x2582,
873 CARD_INTEL_I915GM = 0x2592
876 typedef enum _GL_VSVersion {
877 VS_VERSION_NOT_SUPPORTED = 0x0,
878 VS_VERSION_10 = 0x10,
879 VS_VERSION_11 = 0x11,
880 VS_VERSION_20 = 0x20,
881 VS_VERSION_30 = 0x30,
883 VS_VERSION_FORCE_DWORD = 0x7FFFFFFF
886 typedef enum _GL_PSVersion {
887 PS_VERSION_NOT_SUPPORTED = 0x0,
888 PS_VERSION_10 = 0x10,
889 PS_VERSION_11 = 0x11,
890 PS_VERSION_12 = 0x12,
891 PS_VERSION_13 = 0x13,
892 PS_VERSION_14 = 0x14,
893 PS_VERSION_20 = 0x20,
894 PS_VERSION_30 = 0x30,
896 PS_VERSION_FORCE_DWORD = 0x7FFFFFFF
899 #define MAKEDWORD_VERSION(maj, min) ((maj & 0x0000FFFF) << 16) | (min & 0x0000FFFF)
901 /* OpenGL Supported Extensions (ARB and EXT) */
902 typedef enum _GL_SupportedExt {
904 ARB_FRAGMENT_PROGRAM,
908 ARB_POINT_PARAMETERS,
909 ARB_PIXEL_BUFFER_OBJECT,
911 ARB_TEXTURE_COMPRESSION,
912 ARB_TEXTURE_CUBE_MAP,
914 ARB_TEXTURE_ENV_COMBINE,
915 ARB_TEXTURE_ENV_DOT3,
916 ARB_TEXTURE_BORDER_CLAMP,
917 ARB_TEXTURE_MIRRORED_REPEAT,
920 ARB_VERTEX_BUFFER_OBJECT,
923 EXT_FRAMEBUFFER_OBJECT,
924 EXT_PALETTED_TEXTURE,
925 EXT_PIXEL_BUFFER_OBJECT,
926 EXT_POINT_PARAMETERS,
929 EXT_TEXTURE_COMPRESSION_S3TC,
930 EXT_TEXTURE_FILTER_ANISOTROPIC,
932 EXT_TEXTURE_LOD_BIAS,
934 EXT_TEXTURE_ENV_COMBINE,
935 EXT_TEXTURE_ENV_DOT3,
936 EXT_VERTEX_WEIGHTING,
941 NV_REGISTER_COMBINERS,
942 NV_REGISTER_COMBINERS2,
943 NV_TEXGEN_REFLECTION,
944 NV_TEXTURE_ENV_COMBINE4,
950 ATI_TEXTURE_ENV_COMBINE3,
951 ATI_TEXTURE_MIRROR_ONCE,
954 OPENGL_SUPPORTED_EXT_END
958 /****************************************************
960 ****************************************************/
961 #define GL_EXT_FUNCS_GEN \
962 /** ARB Extensions **/ \
963 /* GL_ARB_texture_compression */ \
964 USE_GL_FUNC(PGLFNCOMPRESSEDTEXIMAGE2DPROC, glCompressedTexImage2DARB); \
965 USE_GL_FUNC(PGLFNCOMPRESSEDTEXIMAGE3DPROC, glCompressedTexImage3DARB); \
966 USE_GL_FUNC(PGLFNCOMPRESSEDTEXSUBIMAGE2DPROC, glCompressedTexSubImage2DARB); \
967 USE_GL_FUNC(PGLFNCOMPRESSEDTEXSUBIMAGE3DPROC, glCompressedTexSubImage3DARB); \
968 USE_GL_FUNC(PGLFNGETCOMPRESSEDTEXIMAGEPROC, glGetCompressedTexImageARB); \
969 /* GL_ARB_vertex_blend */ \
970 USE_GL_FUNC(PGLFNGLWEIGHTPOINTERARB, glWeightPointerARB); \
971 /* GL_ARB_vertex_buffer_object */ \
972 USE_GL_FUNC(PGLFNBINDBUFFERARBPROC, glBindBufferARB); \
973 USE_GL_FUNC(PGLFNDELETEBUFFERSARBPROC, glDeleteBuffersARB); \
974 USE_GL_FUNC(PGLFNGENBUFFERSARBPROC, glGenBuffersARB); \
975 USE_GL_FUNC(PGLFNISBUFFERARBPROC, glIsBufferARB); \
976 USE_GL_FUNC(PGLFNBUFFERDATAARBPROC, glBufferDataARB); \
977 USE_GL_FUNC(PGLFNBUFFERSUBDATAARBPROC, glBufferSubDataARB); \
978 USE_GL_FUNC(PGLFNGETBUFFERSUBDATAARBPROC, glGetBufferSubDataARB); \
979 USE_GL_FUNC(PGLFNMAPBUFFERARBPROC, glMapBufferARB); \
980 USE_GL_FUNC(PGLFNUNMAPBUFFERARBPROC, glUnmapBufferARB); \
981 USE_GL_FUNC(PGLFNGETBUFFERPARAMETERIVARBPROC, glGetBufferParameterivARB); \
982 USE_GL_FUNC(PGLFNGETBUFFERPOINTERVARBPROC, glGetBufferPointervARB); \
983 /** EXT Extensions **/ \
984 /* GL_EXT_fog_coord */ \
985 /* GL_EXT_framebuffer_object */ \
986 USE_GL_FUNC(PGLFNGLISRENDERBUFFEREXTPROC, glIsRenderbufferEXT); \
987 USE_GL_FUNC(PGLFNGLBINDRENDERBUFFEREXTPROC, glBindRenderbufferEXT); \
988 USE_GL_FUNC(PGLFNGLDELETERENDERBUFFERSEXTPROC, glDeleteRenderbuffersEXT); \
989 USE_GL_FUNC(PGLFNGLGENRENDERBUFFERSEXTPROC, glGenRenderbuffersEXT); \
990 USE_GL_FUNC(PGLFNGLRENDERBUFFERSTORAGEEXTPROC, glRenderbufferStorageEXT); \
991 USE_GL_FUNC(PGLFNGLISFRAMEBUFFEREXTPROC, glIsFramebufferEXT); \
992 USE_GL_FUNC(PGLFNGLBINDFRAMEBUFFEREXTPROC, glBindFramebufferEXT); \
993 USE_GL_FUNC(PGLFNGLDELETEFRAMEBUFFERSEXTPROC, glDeleteFramebuffersEXT); \
994 USE_GL_FUNC(PGLFNGLGENFRAMEBUFFERSEXTPROC, glGenFramebuffersEXT); \
995 USE_GL_FUNC(PGLFNGLCHECKFRAMEBUFFERSTATUSEXTPROC, glCheckFramebufferStatusEXT); \
996 USE_GL_FUNC(PGLFNGLFRAMEBUFFERTEXTURE1DEXTPROC, glFramebufferTexture1DEXT); \
997 USE_GL_FUNC(PGLFNGLFRAMEBUFFERTEXTURE2DEXTPROC, glFramebufferTexture2DEXT); \
998 USE_GL_FUNC(PGLFNGLFRAMEBUFFERTEXTURE3DEXTPROC, glFramebufferTexture3DEXT); \
999 USE_GL_FUNC(PGLFNGLFRAMEBUFFERRENDERBUFFEREXTPROC, glFramebufferRenderbufferEXT); \
1000 USE_GL_FUNC(PGLFNGLGENERATEMIPMAPEXTPROC, glGenerateMipmapEXT); \
1001 USE_GL_FUNC(PGLFNGLGETRENDERBUFFERPARAMETERIVEXTPROC, glGetRenderbufferParameterivEXT); \
1002 USE_GL_FUNC(PGLFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC, glGetFramebufferAttachmentParameterivEXT); \
1003 /* GL_EXT_paletted_texture */ \
1004 USE_GL_FUNC(PGLFNGLCOLORTABLEEXTPROC, glColorTableEXT); \
1005 /* GL_EXT_point_parameters */ \
1006 USE_GL_FUNC(PGLFNGLPOINTPARAMETERFEXTPROC, glPointParameterfEXT); \
1007 USE_GL_FUNC(PGLFNGLPOINTPARAMETERFVEXTPROC, glPointParameterfvEXT); \
1008 /* GL_EXT_secondary_color */ \
1009 USE_GL_FUNC(PGLFNGLSECONDARYCOLOR3UBEXTPROC, glSecondaryColor3ubEXT); \
1010 USE_GL_FUNC(PGLFNGLSECONDARYCOLOR3FEXTPROC, glSecondaryColor3fEXT); \
1011 USE_GL_FUNC(PGLFNGLSECONDARYCOLOR3FVEXTPROC, glSecondaryColor3fvEXT); \
1012 USE_GL_FUNC(PGLFNGLSECONDARYCOLORPOINTEREXTPROC, glSecondaryColorPointerEXT); \
1013 /* GL_EXT_secondary_color */ \
1014 USE_GL_FUNC(PGLFNGENPROGRAMSARBPROC, glGenProgramsARB); \
1015 USE_GL_FUNC(PGLFNBINDPROGRAMARBPROC, glBindProgramARB); \
1016 USE_GL_FUNC(PGLFNPROGRAMSTRINGARBPROC, glProgramStringARB); \
1017 USE_GL_FUNC(PGLFNDELETEPROGRAMSARBPROC, glDeleteProgramsARB); \
1018 USE_GL_FUNC(PGLFNPROGRAMENVPARAMETER4FVARBPROC, glProgramEnvParameter4fvARB); \
1019 USE_GL_FUNC(PGLFNVERTEXATTRIBPOINTERARBPROC, glVertexAttribPointerARB); \
1020 USE_GL_FUNC(PGLFNENABLEVERTEXATTRIBARRAYARBPROC, glEnableVertexAttribArrayARB); \
1021 USE_GL_FUNC(PGLFNDISABLEVERTEXATTRIBARRAYARBPROC, glDisableVertexAttribArrayARB); \
1023 #define GLX_EXT_FUNCS_GEN \
1024 /** GLX_VERSION_1_3 **/ \
1025 USE_GL_FUNC(PGLXFNGLXCREATEPBUFFERPROC, glXCreatePbuffer); \
1026 USE_GL_FUNC(PGLXFNGLXDESTROYPBUFFERPROC, glXDestroyPbuffer); \
1027 USE_GL_FUNC(PGLXFNGLXCREATEPIXMAPPROC, glXCreatePixmap); \
1028 USE_GL_FUNC(PGLXFNGLXDESTROYPIXMAPPROC, glXDestroyPixmap); \
1029 USE_GL_FUNC(PGLXFNGLXCREATENEWCONTEXTPROC, glXCreateNewContext); \
1030 USE_GL_FUNC(PGLXFNGLXMAKECONTEXTCURRENTPROC, glXMakeContextCurrent); \
1031 USE_GL_FUNC(PGLXFNGLXCHOOSEFBCONFIGPROC, glXChooseFBConfig); \
1037 /* Redefines the constants */
1038 #define CALLBACK __stdcall
1039 #define WINAPI __stdcall
1040 #define APIENTRY WINAPI
1042 /****************************************************
1044 ****************************************************/
1045 #define USE_GL_FUNC(type, pfn) type pfn;
1046 typedef struct _WineD3D_GL_Info {
1051 GL_Vendors gl_vendor;
1053 DWORD gl_driver_version;
1054 CHAR gl_renderer[255];
1061 UINT max_clipplanes;
1062 UINT max_texture_size;
1063 float max_pointsize;
1065 UINT max_anisotropy;
1067 GL_PSVersion ps_arb_version;
1068 GL_PSVersion ps_nv_version;
1070 GL_VSVersion vs_arb_version;
1071 GL_VSVersion vs_nv_version;
1072 GL_VSVersion vs_ati_version;
1074 BOOL supported[OPENGL_SUPPORTED_EXT_END + 1];
1076 /** OpenGL EXT and ARB functions ptr */
1078 /** OpenGL GLX functions ptr */
1084 typedef struct _WineD3D_GLContext {
1086 XVisualInfo* visInfo;
1092 #endif /* HAVE_OPENGL */
1094 #endif /* __WINE_WINED3D_GL */