[MESA]
[reactos.git] / reactos / dll / opengl / mesa / main / api_exec.c
1 /*
2 * Mesa 3-D graphics library
3 * Version: 7.1
4 *
5 * Copyright (C) 1999-2008 Brian Paul All Rights Reserved.
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a
8 * copy of this software and associated documentation files (the "Software"),
9 * to deal in the Software without restriction, including without limitation
10 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
11 * and/or sell copies of the Software, and to permit persons to whom the
12 * Software is furnished to do so, subject to the following conditions:
13 *
14 * The above copyright notice and this permission notice shall be included
15 * in all copies or substantial portions of the Software.
16 *
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
18 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20 * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
21 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
22 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 */
24
25
26 /**
27 * \file api_exec.c
28 * Initialize dispatch table with the immidiate mode functions.
29 */
30
31
32 #include "mfeatures.h"
33 #include "accum.h"
34 #include "api_loopback.h"
35 #include "api_exec.h"
36 #include "attrib.h"
37 #include "blend.h"
38 #include "bufferobj.h"
39 #include "arrayobj.h"
40 #if FEATURE_draw_read_buffer
41 #include "buffers.h"
42 #endif
43 #include "clear.h"
44 #include "clip.h"
45 #include "colortab.h"
46 #include "context.h"
47 #include "convolve.h"
48 #include "depth.h"
49 #include "dlist.h"
50 #include "drawpix.h"
51 #include "rastpos.h"
52 #include "enable.h"
53 #include "eval.h"
54 #include "get.h"
55 #include "feedback.h"
56 #include "fog.h"
57 #include "framebuffer.h"
58 #include "hint.h"
59 #include "histogram.h"
60 #include "imports.h"
61 #include "light.h"
62 #include "lines.h"
63 #include "matrix.h"
64 #include "multisample.h"
65 #include "pixel.h"
66 #include "pixelstore.h"
67 #include "points.h"
68 #include "polygon.h"
69 #include "readpix.h"
70 #include "scissor.h"
71 #include "stencil.h"
72 #include "texenv.h"
73 #include "texgetimage.h"
74 #include "teximage.h"
75 #include "texgen.h"
76 #include "texobj.h"
77 #include "texparam.h"
78 #include "texstate.h"
79 #include "texstorage.h"
80 #include "texturebarrier.h"
81 #include "mtypes.h"
82 #include "varray.h"
83 #include "viewport.h"
84 #include "main/dispatch.h"
85
86
87 #if FEATURE_GL
88
89
90 /**
91 * Initialize a dispatch table with pointers to Mesa's immediate-mode
92 * commands.
93 *
94 * Pointers to glBegin()/glEnd() object commands and a few others
95 * are provided via the GLvertexformat interface.
96 *
97 * \param ctx GL context to which \c exec belongs.
98 * \param exec dispatch table.
99 */
100 struct _glapi_table *
101 _mesa_create_exec_table(void)
102 {
103 struct _glapi_table *exec;
104
105 exec = _mesa_alloc_dispatch_table(_gloffset_COUNT);
106 if (exec == NULL)
107 return NULL;
108
109 #if _HAVE_FULL_GL
110 _mesa_loopback_init_api_table( exec );
111 #endif
112
113 /* load the dispatch slots we understand */
114 SET_AlphaFunc(exec, _mesa_AlphaFunc);
115 SET_BlendFunc(exec, _mesa_BlendFunc);
116 SET_Clear(exec, _mesa_Clear);
117 SET_ClearColor(exec, _mesa_ClearColor);
118 SET_ClearStencil(exec, _mesa_ClearStencil);
119 SET_ColorMask(exec, _mesa_ColorMask);
120 SET_CullFace(exec, _mesa_CullFace);
121 SET_Disable(exec, _mesa_Disable);
122 #if FEATURE_draw_read_buffer
123 SET_DrawBuffer(exec, _mesa_DrawBuffer);
124 SET_ReadBuffer(exec, _mesa_ReadBuffer);
125 #endif
126 SET_Enable(exec, _mesa_Enable);
127 SET_Finish(exec, _mesa_Finish);
128 SET_Flush(exec, _mesa_Flush);
129 SET_FrontFace(exec, _mesa_FrontFace);
130 SET_Frustum(exec, _mesa_Frustum);
131 SET_GetError(exec, _mesa_GetError);
132 SET_GetFloatv(exec, _mesa_GetFloatv);
133 SET_GetString(exec, _mesa_GetString);
134 SET_LineStipple(exec, _mesa_LineStipple);
135 SET_LineWidth(exec, _mesa_LineWidth);
136 SET_LoadIdentity(exec, _mesa_LoadIdentity);
137 SET_LoadMatrixf(exec, _mesa_LoadMatrixf);
138 SET_LogicOp(exec, _mesa_LogicOp);
139 SET_MatrixMode(exec, _mesa_MatrixMode);
140 SET_MultMatrixf(exec, _mesa_MultMatrixf);
141 SET_Ortho(exec, _mesa_Ortho);
142 SET_PixelStorei(exec, _mesa_PixelStorei);
143 SET_PopMatrix(exec, _mesa_PopMatrix);
144 SET_PushMatrix(exec, _mesa_PushMatrix);
145 SET_Rotatef(exec, _mesa_Rotatef);
146 SET_Scalef(exec, _mesa_Scalef);
147 SET_Scissor(exec, _mesa_Scissor);
148 SET_ShadeModel(exec, _mesa_ShadeModel);
149 SET_StencilFunc(exec, _mesa_StencilFunc);
150 SET_StencilMask(exec, _mesa_StencilMask);
151 SET_StencilOp(exec, _mesa_StencilOp);
152 SET_TexEnvfv(exec, _mesa_TexEnvfv);
153 SET_TexEnvi(exec, _mesa_TexEnvi);
154 SET_TexImage2D(exec, _mesa_TexImage2D);
155 SET_TexParameteri(exec, _mesa_TexParameteri);
156 SET_Translatef(exec, _mesa_Translatef);
157 SET_Viewport(exec, _mesa_Viewport);
158
159 _mesa_init_accum_dispatch(exec);
160 _mesa_init_dlist_dispatch(exec);
161
162 SET_ClearDepth(exec, _mesa_ClearDepth);
163 SET_ClearIndex(exec, _mesa_ClearIndex);
164 SET_ClipPlane(exec, _mesa_ClipPlane);
165 SET_ColorMaterial(exec, _mesa_ColorMaterial);
166 SET_DepthFunc(exec, _mesa_DepthFunc);
167 SET_DepthMask(exec, _mesa_DepthMask);
168 SET_DepthRange(exec, _mesa_DepthRange);
169
170 _mesa_init_drawpix_dispatch(exec);
171 _mesa_init_feedback_dispatch(exec);
172
173 SET_FogCoordPointerEXT(exec, _mesa_FogCoordPointerEXT);
174 SET_Fogf(exec, _mesa_Fogf);
175 SET_Fogfv(exec, _mesa_Fogfv);
176 SET_Fogi(exec, _mesa_Fogi);
177 SET_Fogiv(exec, _mesa_Fogiv);
178 SET_GetClipPlane(exec, _mesa_GetClipPlane);
179 SET_GetBooleanv(exec, _mesa_GetBooleanv);
180 SET_GetDoublev(exec, _mesa_GetDoublev);
181 SET_GetIntegerv(exec, _mesa_GetIntegerv);
182 SET_GetLightfv(exec, _mesa_GetLightfv);
183 SET_GetLightiv(exec, _mesa_GetLightiv);
184 SET_GetMaterialfv(exec, _mesa_GetMaterialfv);
185 SET_GetMaterialiv(exec, _mesa_GetMaterialiv);
186 SET_GetPolygonStipple(exec, _mesa_GetPolygonStipple);
187 SET_GetTexEnvfv(exec, _mesa_GetTexEnvfv);
188 SET_GetTexEnviv(exec, _mesa_GetTexEnviv);
189 SET_GetTexLevelParameterfv(exec, _mesa_GetTexLevelParameterfv);
190 SET_GetTexLevelParameteriv(exec, _mesa_GetTexLevelParameteriv);
191 SET_GetTexParameterfv(exec, _mesa_GetTexParameterfv);
192 SET_GetTexParameteriv(exec, _mesa_GetTexParameteriv);
193 SET_GetTexImage(exec, _mesa_GetTexImage);
194 SET_Hint(exec, _mesa_Hint);
195 SET_IndexMask(exec, _mesa_IndexMask);
196 SET_IsEnabled(exec, _mesa_IsEnabled);
197 SET_LightModelf(exec, _mesa_LightModelf);
198 SET_LightModelfv(exec, _mesa_LightModelfv);
199 SET_LightModeli(exec, _mesa_LightModeli);
200 SET_LightModeliv(exec, _mesa_LightModeliv);
201 SET_Lightf(exec, _mesa_Lightf);
202 SET_Lightfv(exec, _mesa_Lightfv);
203 SET_Lighti(exec, _mesa_Lighti);
204 SET_Lightiv(exec, _mesa_Lightiv);
205 SET_LoadMatrixd(exec, _mesa_LoadMatrixd);
206
207 _mesa_init_eval_dispatch(exec);
208
209 SET_MultMatrixd(exec, _mesa_MultMatrixd);
210
211 _mesa_init_pixel_dispatch(exec);
212
213 SET_PixelStoref(exec, _mesa_PixelStoref);
214 SET_PointSize(exec, _mesa_PointSize);
215 SET_PolygonMode(exec, _mesa_PolygonMode);
216 SET_PolygonOffset(exec, _mesa_PolygonOffset);
217 SET_PolygonStipple(exec, _mesa_PolygonStipple);
218
219 _mesa_init_attrib_dispatch(exec);
220 _mesa_init_rastpos_dispatch(exec);
221
222 SET_ReadPixels(exec, _mesa_ReadPixels);
223 SET_Rotated(exec, _mesa_Rotated);
224 SET_Scaled(exec, _mesa_Scaled);
225 SET_SecondaryColorPointerEXT(exec, _mesa_SecondaryColorPointerEXT);
226 SET_TexEnvf(exec, _mesa_TexEnvf);
227 SET_TexEnviv(exec, _mesa_TexEnviv);
228
229 _mesa_init_texgen_dispatch(exec);
230
231 SET_TexImage1D(exec, _mesa_TexImage1D);
232 SET_TexParameterf(exec, _mesa_TexParameterf);
233 SET_TexParameterfv(exec, _mesa_TexParameterfv);
234 SET_TexParameteriv(exec, _mesa_TexParameteriv);
235 SET_Translated(exec, _mesa_Translated);
236
237 /* 1.1 */
238 SET_BindTexture(exec, _mesa_BindTexture);
239 SET_DeleteTextures(exec, _mesa_DeleteTextures);
240 SET_GenTextures(exec, _mesa_GenTextures);
241 #if _HAVE_FULL_GL
242 SET_AreTexturesResident(exec, _mesa_AreTexturesResident);
243 SET_ColorPointer(exec, _mesa_ColorPointer);
244 SET_CopyTexImage1D(exec, _mesa_CopyTexImage1D);
245 SET_CopyTexImage2D(exec, _mesa_CopyTexImage2D);
246 SET_CopyTexSubImage1D(exec, _mesa_CopyTexSubImage1D);
247 SET_CopyTexSubImage2D(exec, _mesa_CopyTexSubImage2D);
248 SET_DisableClientState(exec, _mesa_DisableClientState);
249 SET_EdgeFlagPointer(exec, _mesa_EdgeFlagPointer);
250 SET_EnableClientState(exec, _mesa_EnableClientState);
251 SET_GetPointerv(exec, _mesa_GetPointerv);
252 SET_IndexPointer(exec, _mesa_IndexPointer);
253 SET_InterleavedArrays(exec, _mesa_InterleavedArrays);
254 SET_IsTexture(exec, _mesa_IsTexture);
255 SET_NormalPointer(exec, _mesa_NormalPointer);
256 SET_PrioritizeTextures(exec, _mesa_PrioritizeTextures);
257 SET_TexCoordPointer(exec, _mesa_TexCoordPointer);
258 SET_TexSubImage1D(exec, _mesa_TexSubImage1D);
259 SET_TexSubImage2D(exec, _mesa_TexSubImage2D);
260 SET_VertexPointer(exec, _mesa_VertexPointer);
261 #endif
262
263 /* 1.2 */
264 #if _HAVE_FULL_GL
265 SET_CopyTexSubImage3D(exec, _mesa_CopyTexSubImage3D);
266 SET_TexImage3D(exec, _mesa_TexImage3D);
267 SET_TexSubImage3D(exec, _mesa_TexSubImage3D);
268 #endif
269
270 /* OpenGL 1.2 GL_ARB_imaging */
271 SET_BlendColor(exec, _mesa_BlendColor);
272 SET_BlendEquation(exec, _mesa_BlendEquation);
273 SET_BlendEquationSeparateEXT(exec, _mesa_BlendEquationSeparateEXT);
274
275 _mesa_init_colortable_dispatch(exec);
276 _mesa_init_convolve_dispatch(exec);
277 _mesa_init_histogram_dispatch(exec);
278
279 /* OpenGL 2.0 */
280 SET_StencilFuncSeparate(exec, _mesa_StencilFuncSeparate);
281 SET_StencilMaskSeparate(exec, _mesa_StencilMaskSeparate);
282 SET_StencilOpSeparate(exec, _mesa_StencilOpSeparate);
283
284 /* 2. GL_EXT_blend_color */
285 #if 0
286 /* SET_BlendColorEXT(exec, _mesa_BlendColorEXT); */
287 #endif
288
289 /* 3. GL_EXT_polygon_offset */
290 #if _HAVE_FULL_GL
291 SET_PolygonOffsetEXT(exec, _mesa_PolygonOffsetEXT);
292 #endif
293
294 /* 6. GL_EXT_texture3d */
295 #if 0
296 /* SET_CopyTexSubImage3DEXT(exec, _mesa_CopyTexSubImage3D); */
297 /* SET_TexImage3DEXT(exec, _mesa_TexImage3DEXT); */
298 /* SET_TexSubImage3DEXT(exec, _mesa_TexSubImage3D); */
299 #endif
300
301 /* 11. GL_EXT_histogram */
302 #if 0
303 SET_GetHistogramEXT(exec, _mesa_GetHistogram);
304 SET_GetHistogramParameterfvEXT(exec, _mesa_GetHistogramParameterfv);
305 SET_GetHistogramParameterivEXT(exec, _mesa_GetHistogramParameteriv);
306 SET_GetMinmaxEXT(exec, _mesa_GetMinmax);
307 SET_GetMinmaxParameterfvEXT(exec, _mesa_GetMinmaxParameterfv);
308 SET_GetMinmaxParameterivEXT(exec, _mesa_GetMinmaxParameteriv);
309 #endif
310
311 /* 14. SGI_color_table */
312 #if 0
313 SET_ColorTableSGI(exec, _mesa_ColorTable);
314 SET_ColorSubTableSGI(exec, _mesa_ColorSubTable);
315 SET_GetColorTableSGI(exec, _mesa_GetColorTable);
316 SET_GetColorTableParameterfvSGI(exec, _mesa_GetColorTableParameterfv);
317 SET_GetColorTableParameterivSGI(exec, _mesa_GetColorTableParameteriv);
318 #endif
319
320 /* 30. GL_EXT_vertex_array */
321 #if _HAVE_FULL_GL
322 SET_ColorPointerEXT(exec, _mesa_ColorPointerEXT);
323 SET_EdgeFlagPointerEXT(exec, _mesa_EdgeFlagPointerEXT);
324 SET_IndexPointerEXT(exec, _mesa_IndexPointerEXT);
325 SET_NormalPointerEXT(exec, _mesa_NormalPointerEXT);
326 SET_TexCoordPointerEXT(exec, _mesa_TexCoordPointerEXT);
327 SET_VertexPointerEXT(exec, _mesa_VertexPointerEXT);
328 #endif
329
330 /* 37. GL_EXT_blend_minmax */
331 #if 0
332 SET_BlendEquationEXT(exec, _mesa_BlendEquationEXT);
333 #endif
334
335 /* 54. GL_EXT_point_parameters */
336 #if _HAVE_FULL_GL
337 SET_PointParameterfEXT(exec, _mesa_PointParameterf);
338 SET_PointParameterfvEXT(exec, _mesa_PointParameterfv);
339 #endif
340
341 /* 97. GL_EXT_compiled_vertex_array */
342 #if _HAVE_FULL_GL
343 SET_LockArraysEXT(exec, _mesa_LockArraysEXT);
344 SET_UnlockArraysEXT(exec, _mesa_UnlockArraysEXT);
345 #endif
346
347 /* 148. GL_EXT_multi_draw_arrays */
348 #if _HAVE_FULL_GL
349 SET_MultiDrawArraysEXT(exec, _mesa_MultiDrawArraysEXT);
350 #endif
351
352 /* 173. GL_INGR_blend_func_separate */
353 #if _HAVE_FULL_GL
354 SET_BlendFuncSeparateEXT(exec, _mesa_BlendFuncSeparateEXT);
355 #endif
356
357 /* 197. GL_MESA_window_pos */
358 /* part of _mesa_init_rastpos_dispatch(exec); */
359
360 /* 200. GL_IBM_multimode_draw_arrays */
361 #if _HAVE_FULL_GL
362 SET_MultiModeDrawArraysIBM(exec, _mesa_MultiModeDrawArraysIBM);
363 SET_MultiModeDrawElementsIBM(exec, _mesa_MultiModeDrawElementsIBM);
364 #endif
365
366 /* 233. GL_NV_vertex_program */
367 #if FEATURE_NV_vertex_program
368 SET_ExecuteProgramNV(exec, _mesa_ExecuteProgramNV);
369 SET_GenProgramsNV(exec, _mesa_GenPrograms);
370 SET_AreProgramsResidentNV(exec, _mesa_AreProgramsResidentNV);
371 SET_RequestResidentProgramsNV(exec, _mesa_RequestResidentProgramsNV);
372 SET_GetProgramParameterfvNV(exec, _mesa_GetProgramParameterfvNV);
373 SET_GetProgramParameterdvNV(exec, _mesa_GetProgramParameterdvNV);
374 SET_GetProgramivNV(exec, _mesa_GetProgramivNV);
375 SET_GetTrackMatrixivNV(exec, _mesa_GetTrackMatrixivNV);
376 SET_LoadProgramNV(exec, _mesa_LoadProgramNV);
377 SET_ProgramEnvParameter4dARB(exec, _mesa_ProgramEnvParameter4dARB); /* alias to ProgramParameter4dNV */
378 SET_ProgramEnvParameter4dvARB(exec, _mesa_ProgramEnvParameter4dvARB); /* alias to ProgramParameter4dvNV */
379 SET_ProgramEnvParameter4fARB(exec, _mesa_ProgramEnvParameter4fARB); /* alias to ProgramParameter4fNV */
380 SET_ProgramEnvParameter4fvARB(exec, _mesa_ProgramEnvParameter4fvARB); /* alias to ProgramParameter4fvNV */
381 SET_ProgramParameters4dvNV(exec, _mesa_ProgramParameters4dvNV);
382 SET_ProgramParameters4fvNV(exec, _mesa_ProgramParameters4fvNV);
383 SET_TrackMatrixNV(exec, _mesa_TrackMatrixNV);
384 /* glVertexAttrib*NV functions handled in api_loopback.c */
385 #endif
386
387 /* 273. GL_APPLE_vertex_array_object */
388 SET_BindVertexArrayAPPLE(exec, _mesa_BindVertexArrayAPPLE);
389 SET_DeleteVertexArraysAPPLE(exec, _mesa_DeleteVertexArraysAPPLE);
390 SET_GenVertexArraysAPPLE(exec, _mesa_GenVertexArraysAPPLE);
391 SET_IsVertexArrayAPPLE(exec, _mesa_IsVertexArrayAPPLE);
392
393 /* 282. GL_NV_fragment_program */
394 #if FEATURE_NV_fragment_program
395 SET_ProgramNamedParameter4fNV(exec, _mesa_ProgramNamedParameter4fNV);
396 SET_ProgramNamedParameter4dNV(exec, _mesa_ProgramNamedParameter4dNV);
397 SET_ProgramNamedParameter4fvNV(exec, _mesa_ProgramNamedParameter4fvNV);
398 SET_ProgramNamedParameter4dvNV(exec, _mesa_ProgramNamedParameter4dvNV);
399 SET_GetProgramNamedParameterfvNV(exec, _mesa_GetProgramNamedParameterfvNV);
400 SET_GetProgramNamedParameterdvNV(exec, _mesa_GetProgramNamedParameterdvNV);
401 #endif
402
403 /* 262. GL_NV_point_sprite */
404 #if _HAVE_FULL_GL
405 SET_PointParameteriNV(exec, _mesa_PointParameteri);
406 SET_PointParameterivNV(exec, _mesa_PointParameteriv);
407 #endif
408
409 /* 268. GL_EXT_stencil_two_side */
410 #if _HAVE_FULL_GL
411 SET_ActiveStencilFaceEXT(exec, _mesa_ActiveStencilFaceEXT);
412 #endif
413
414 /* ???. GL_EXT_depth_bounds_test */
415 SET_DepthBoundsEXT(exec, _mesa_DepthBoundsEXT);
416
417 /* ARB 3. GL_ARB_transpose_matrix */
418 #if _HAVE_FULL_GL
419 SET_LoadTransposeMatrixdARB(exec, _mesa_LoadTransposeMatrixdARB);
420 SET_LoadTransposeMatrixfARB(exec, _mesa_LoadTransposeMatrixfARB);
421 SET_MultTransposeMatrixdARB(exec, _mesa_MultTransposeMatrixdARB);
422 SET_MultTransposeMatrixfARB(exec, _mesa_MultTransposeMatrixfARB);
423 #endif
424
425 /* ARB 5. GL_ARB_multisample */
426 #if _HAVE_FULL_GL
427 SET_SampleCoverageARB(exec, _mesa_SampleCoverageARB);
428 #endif
429
430 /* ARB 14. GL_ARB_point_parameters */
431 /* reuse EXT_point_parameters functions */
432
433 /* ARB 28. GL_ARB_vertex_buffer_object */
434 SET_BindBufferARB(exec, _mesa_BindBufferARB);
435 SET_BufferDataARB(exec, _mesa_BufferDataARB);
436 SET_BufferSubDataARB(exec, _mesa_BufferSubDataARB);
437 SET_DeleteBuffersARB(exec, _mesa_DeleteBuffersARB);
438 SET_GenBuffersARB(exec, _mesa_GenBuffersARB);
439 SET_GetBufferParameterivARB(exec, _mesa_GetBufferParameterivARB);
440 SET_GetBufferPointervARB(exec, _mesa_GetBufferPointervARB);
441 SET_GetBufferSubDataARB(exec, _mesa_GetBufferSubDataARB);
442 SET_IsBufferARB(exec, _mesa_IsBufferARB);
443 SET_MapBufferARB(exec, _mesa_MapBufferARB);
444 SET_UnmapBufferARB(exec, _mesa_UnmapBufferARB);
445
446 /* ARB 104. GL_ARB_robustness */
447 SET_GetGraphicsResetStatusARB(exec, _mesa_GetGraphicsResetStatusARB);
448 SET_GetnPolygonStippleARB(exec, _mesa_GetnPolygonStippleARB);
449 SET_GetnTexImageARB(exec, _mesa_GetnTexImageARB);
450 SET_ReadnPixelsARB(exec, _mesa_ReadnPixelsARB);
451
452 /* GL_ATI_separate_stencil */
453 SET_StencilFuncSeparateATI(exec, _mesa_StencilFuncSeparateATI);
454
455 #if FEATURE_ARB_map_buffer_range
456 SET_MapBufferRange(exec, _mesa_MapBufferRange);
457 SET_FlushMappedBufferRange(exec, _mesa_FlushMappedBufferRange);
458 #endif
459
460 /* GL_ARB_vertex_array_object */
461 SET_BindVertexArray(exec, _mesa_BindVertexArray);
462 SET_GenVertexArrays(exec, _mesa_GenVertexArrays);
463
464 #if FEATURE_APPLE_object_purgeable
465 SET_ObjectPurgeableAPPLE(exec, _mesa_ObjectPurgeableAPPLE);
466 SET_ObjectUnpurgeableAPPLE(exec, _mesa_ObjectUnpurgeableAPPLE);
467 SET_GetObjectParameterivAPPLE(exec, _mesa_GetObjectParameterivAPPLE);
468 #endif
469
470 /* GL_EXT_texture_integer */
471 SET_ClearColorIiEXT(exec, _mesa_ClearColorIiEXT);
472 SET_ClearColorIuiEXT(exec, _mesa_ClearColorIuiEXT);
473 SET_GetTexParameterIivEXT(exec, _mesa_GetTexParameterIiv);
474 SET_GetTexParameterIuivEXT(exec, _mesa_GetTexParameterIuiv);
475 SET_TexParameterIivEXT(exec, _mesa_TexParameterIiv);
476 SET_TexParameterIuivEXT(exec, _mesa_TexParameterIuiv);
477
478 /* GL 3.0 (functions not covered by other extensions) */
479 SET_GetStringi(exec, _mesa_GetStringi);
480
481 /* GL_NV_texture_barrier */
482 SET_TextureBarrierNV(exec, _mesa_TextureBarrierNV);
483
484 /* GL_ARB_texture_storage */
485 SET_TexStorage1D(exec, _mesa_TexStorage1D);
486 SET_TexStorage2D(exec, _mesa_TexStorage2D);
487 SET_TexStorage3D(exec, _mesa_TexStorage3D);
488 SET_TextureStorage1DEXT(exec, _mesa_TextureStorage1DEXT);
489 SET_TextureStorage2DEXT(exec, _mesa_TextureStorage2DEXT);
490 SET_TextureStorage3DEXT(exec, _mesa_TextureStorage3DEXT);
491
492 return exec;
493 }
494
495 #endif /* FEATURE_GL */