Debian Codegraph @

debian/external_deps/fetk/sg/src/gl/pointers.c

raw
1 /* $Id: pointers.c,v 1.2 2000/10/27 15:21:40 mholst Exp $ */
2
3 /*
4 * Mesa 3-D graphics library
5 * Version: 2.2
6 * Copyright (C) 1995-1997 Brian Paul
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
12 *
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 * Library General Public License for more details.
17 *
18 * You should have received a copy of the GNU Library General Public
19 * License along with this library; if not, write to the Free
20 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 */
22
23 #include <stdio.h>
24 #include <stdlib.h>
25 #include <string.h>
26 #include "accum.h"
27 #include "alpha.h"
28 #include "attrib.h"
29 #include "bitmap.h"
30 #include "blend.h"
31 #include "clip.h"
32 #include "context.h"
33 #include "copypix.h"
34 #include "depth.h"
35 #include "draw.h"
36 #include "drawpix.h"
37 #include "enable.h"
38 #include "eval.h"
39 #include "feedback.h"
40 #include "fog.h"
41 #include "get.h"
42 #include "light.h"
43 #include "lines.h"
44 #include "dlist.h"
45 #include "logic.h"
46 #include "macros.h"
47 #include "masking.h"
48 #include "matrix.h"
49 #include "misc.h"
50 #include "pixel.h"
51 #include "points.h"
52 #include "polygon.h"
53 #include "readpix.h"
54 #include "scissor.h"
55 #include "stencil.h"
56 #include "teximage.h"
57 #include "texobj.h"
58 #include "texture.h"
59 #include "types.h"
60 #include "varray.h"
61 #include "vb.h"
62 #include "vertex.h"
63 #include "winpos.h"
64
65
66
67
68 /*
69 * For debugging
70 */
71 static void check_pointers( struct api_function_table *table )
72 {
73 void **entry;
74 int numentries = sizeof( struct api_function_table ) / sizeof(void*);
75 int i;
76
77 entry = (void **) table;
78
79 for (i=0;i<numentries;i++) {
80 if (!entry[i]) {
81 printf("found uninitialized function pointer at %d\n", i );
82 }
83 }
84 }
85
86
87
88 void gl_init_api_function_pointers( GLcontext *ctx )
89 {
90 /*
91 * Immediate/execute functions
92 */
93 ctx->Exec.Accum = gl_Accum;
94 ctx->Exec.AlphaFunc = gl_AlphaFunc;
95 ctx->Exec.AreTexturesResident = gl_AreTexturesResident;
96 ctx->Exec.ArrayElement = gl_ArrayElement;
97 ctx->Exec.Begin = gl_Begin;
98 ctx->Exec.BindTexture = gl_BindTexture;
99 ctx->Exec.Bitmap = gl_Bitmap;
100 ctx->Exec.BlendColor = gl_BlendColor;
101 ctx->Exec.BlendEquation = gl_BlendEquation;
102 ctx->Exec.BlendFunc = gl_BlendFunc;
103 ctx->Exec.CallList = gl_CallList;
104 ctx->Exec.CallLists = gl_CallLists;
105 ctx->Exec.Clear = gl_Clear;
106 ctx->Exec.ClearAccum = gl_ClearAccum;
107 ctx->Exec.ClearColor = gl_ClearColor;
108 ctx->Exec.ClearDepth = gl_ClearDepth;
109 ctx->Exec.ClearIndex = gl_ClearIndex;
110 ctx->Exec.ClearStencil = gl_ClearStencil;
111 ctx->Exec.ClipPlane = gl_ClipPlane;
112 ctx->Exec.Color4f = gl_Color4f;
113 ctx->Exec.Color4ub = gl_Color4ub;
114 ctx->Exec.ColorMask = gl_ColorMask;
115 ctx->Exec.ColorMaterial = gl_ColorMaterial;
116 ctx->Exec.ColorPointer = gl_ColorPointer;
117 ctx->Exec.CopyPixels = gl_CopyPixels;
118 ctx->Exec.CopyTexImage1D = gl_CopyTexImage1D;
119 ctx->Exec.CopyTexImage2D = gl_CopyTexImage2D;
120 ctx->Exec.CopyTexSubImage1D = gl_CopyTexSubImage1D;
121 ctx->Exec.CopyTexSubImage2D = gl_CopyTexSubImage2D;
122 ctx->Exec.CopyTexSubImage3DEXT = gl_CopyTexSubImage3DEXT;
123 ctx->Exec.CullFace = gl_CullFace;
124 ctx->Exec.DeleteLists = gl_DeleteLists;
125 ctx->Exec.DeleteTextures = gl_DeleteTextures;
126 ctx->Exec.DepthFunc = gl_DepthFunc;
127 ctx->Exec.DepthMask = gl_DepthMask;
128 ctx->Exec.DepthRange = gl_DepthRange;
129 ctx->Exec.Disable = gl_Disable;
130 ctx->Exec.DisableClientState = gl_DisableClientState;
131 ctx->Exec.DrawArrays = gl_DrawArrays;
132 ctx->Exec.DrawBuffer = gl_DrawBuffer;
133 ctx->Exec.DrawElements = gl_DrawElements;
134 ctx->Exec.DrawPixels = gl_DrawPixels;
135 ctx->Exec.EdgeFlag = gl_EdgeFlag;
136 ctx->Exec.EdgeFlagPointer = gl_EdgeFlagPointer;
137 ctx->Exec.Enable = gl_Enable;
138 ctx->Exec.EnableClientState = gl_EnableClientState;
139 ctx->Exec.End = gl_End;
140 ctx->Exec.EndList = gl_EndList;
141 ctx->Exec.EvalCoord1f = gl_EvalCoord1f;
142 ctx->Exec.EvalCoord2f = gl_EvalCoord2f;
143 ctx->Exec.EvalMesh1 = gl_EvalMesh1;
144 ctx->Exec.EvalMesh2 = gl_EvalMesh2;
145 ctx->Exec.EvalPoint1 = gl_EvalPoint1;
146 ctx->Exec.EvalPoint2 = gl_EvalPoint2;
147 ctx->Exec.FeedbackBuffer = gl_FeedbackBuffer;
148 ctx->Exec.Finish = gl_Finish;
149 ctx->Exec.Flush = gl_Flush;
150 ctx->Exec.Fogfv = gl_Fogfv;
151 ctx->Exec.FrontFace = gl_FrontFace;
152 ctx->Exec.Frustum = gl_Frustum;
153 ctx->Exec.GenLists = gl_GenLists;
154 ctx->Exec.GenTextures = gl_GenTextures;
155 ctx->Exec.GetBooleanv = gl_GetBooleanv;
156 ctx->Exec.GetClipPlane = gl_GetClipPlane;
157 ctx->Exec.GetDoublev = gl_GetDoublev;
158 ctx->Exec.GetError = gl_GetError;
159 ctx->Exec.GetFloatv = gl_GetFloatv;
160 ctx->Exec.GetIntegerv = gl_GetIntegerv;
161 ctx->Exec.GetPointerv = gl_GetPointerv;
162 ctx->Exec.GetLightfv = gl_GetLightfv;
163 ctx->Exec.GetLightiv = gl_GetLightiv;
164 ctx->Exec.GetMapdv = gl_GetMapdv;
165 ctx->Exec.GetMapfv = gl_GetMapfv;
166 ctx->Exec.GetMapiv = gl_GetMapiv;
167 ctx->Exec.GetMaterialfv = gl_GetMaterialfv;
168 ctx->Exec.GetMaterialiv = gl_GetMaterialiv;
169 ctx->Exec.GetPixelMapfv = gl_GetPixelMapfv;
170 ctx->Exec.GetPixelMapuiv = gl_GetPixelMapuiv;
171 ctx->Exec.GetPixelMapusv = gl_GetPixelMapusv;
172 ctx->Exec.GetPolygonStipple = gl_GetPolygonStipple;
173 ctx->Exec.GetString = gl_GetString;
174 ctx->Exec.GetTexEnvfv = gl_GetTexEnvfv;
175 ctx->Exec.GetTexEnviv = gl_GetTexEnviv;
176 ctx->Exec.GetTexGendv = gl_GetTexGendv;
177 ctx->Exec.GetTexGenfv = gl_GetTexGenfv;
178 ctx->Exec.GetTexGeniv = gl_GetTexGeniv;
179 ctx->Exec.GetTexImage = gl_GetTexImage;
180 ctx->Exec.GetTexLevelParameterfv = gl_GetTexLevelParameterfv;
181 ctx->Exec.GetTexLevelParameteriv = gl_GetTexLevelParameteriv;
182 ctx->Exec.GetTexParameterfv = gl_GetTexParameterfv;
183 ctx->Exec.GetTexParameteriv = gl_GetTexParameteriv;
184 ctx->Exec.Hint = gl_Hint;
185 ctx->Exec.Indexf = gl_Indexf;
186 ctx->Exec.Indexi = gl_Indexi;
187 ctx->Exec.IndexMask = gl_IndexMask;
188 ctx->Exec.IndexPointer = gl_IndexPointer;
189 ctx->Exec.InitNames = gl_InitNames;
190 ctx->Exec.InterleavedArrays = gl_InterleavedArrays;
191 ctx->Exec.IsEnabled = gl_IsEnabled;
192 ctx->Exec.IsList = gl_IsList;
193 ctx->Exec.IsTexture = gl_IsTexture;
194 ctx->Exec.LightModelfv = gl_LightModelfv;
195 ctx->Exec.Lightfv = gl_Lightfv;
196 ctx->Exec.LineStipple = gl_LineStipple;
197 ctx->Exec.LineWidth = gl_LineWidth;
198 ctx->Exec.ListBase = gl_ListBase;
199 ctx->Exec.LoadMatrixf = gl_LoadMatrixf;
200 ctx->Exec.LoadName = gl_LoadName;
201 ctx->Exec.LogicOp = gl_LogicOp;
202 ctx->Exec.Map1f = gl_Map1f;
203 ctx->Exec.Map2f = gl_Map2f;
204 ctx->Exec.MapGrid1f = gl_MapGrid1f;
205 ctx->Exec.MapGrid2f = gl_MapGrid2f;
206 ctx->Exec.Materialfv = gl_Materialfv;
207 ctx->Exec.MatrixMode = gl_MatrixMode;
208 ctx->Exec.MultMatrixf = gl_MultMatrixf;
209 ctx->Exec.NewList = gl_NewList;
210 ctx->Exec.Normal3f = gl_Normal3f;
211 ctx->Exec.NormalPointer = gl_NormalPointer;
212 ctx->Exec.Normal3fv = gl_Normal3fv;
213 ctx->Exec.PassThrough = gl_PassThrough;
214 ctx->Exec.PixelMapfv = gl_PixelMapfv;
215 ctx->Exec.PixelStorei = gl_PixelStorei;
216 ctx->Exec.PixelTransferf = gl_PixelTransferf;
217 ctx->Exec.PixelZoom = gl_PixelZoom;
218 ctx->Exec.PointSize = gl_PointSize;
219 ctx->Exec.PolygonMode = gl_PolygonMode;
220 ctx->Exec.PolygonOffset = gl_PolygonOffset;
221 ctx->Exec.PolygonStipple = gl_PolygonStipple;
222 ctx->Exec.PopAttrib = gl_PopAttrib;
223 ctx->Exec.PopClientAttrib = gl_PopClientAttrib;
224 ctx->Exec.PopMatrix = gl_PopMatrix;
225 ctx->Exec.PopName = gl_PopName;
226 ctx->Exec.PrioritizeTextures = gl_PrioritizeTextures;
227 ctx->Exec.PushAttrib = gl_PushAttrib;
228 ctx->Exec.PushClientAttrib = gl_PushClientAttrib;
229 ctx->Exec.PushMatrix = gl_PushMatrix;
230 ctx->Exec.PushName = gl_PushName;
231 ctx->Exec.RasterPos4f = gl_RasterPos4f;
232 ctx->Exec.ReadBuffer = gl_ReadBuffer;
233 ctx->Exec.ReadPixels = gl_ReadPixels;
234 ctx->Exec.Rectf = gl_Rectf;
235 ctx->Exec.RenderMode = gl_RenderMode;
236 ctx->Exec.Rotatef = gl_Rotatef;
237 ctx->Exec.Scalef = gl_Scalef;
238 ctx->Exec.Scissor = gl_Scissor;
239 ctx->Exec.SelectBuffer = gl_SelectBuffer;
240 ctx->Exec.ShadeModel = gl_ShadeModel;
241 ctx->Exec.StencilFunc = gl_StencilFunc;
242 ctx->Exec.StencilMask = gl_StencilMask;
243 ctx->Exec.StencilOp = gl_StencilOp;
244 ctx->Exec.TexCoord4f = gl_TexCoord4f;
245 ctx->Exec.TexCoordPointer = gl_TexCoordPointer;
246 ctx->Exec.TexEnvfv = gl_TexEnvfv;
247 ctx->Exec.TexGenfv = gl_TexGenfv;
248 ctx->Exec.TexImage1D = gl_TexImage1D;
249 ctx->Exec.TexImage2D = gl_TexImage2D;
250 ctx->Exec.TexImage3DEXT = gl_TexImage3DEXT;
251 ctx->Exec.TexSubImage1D = gl_TexSubImage1D;
252 ctx->Exec.TexSubImage2D = gl_TexSubImage2D;
253 ctx->Exec.TexSubImage3DEXT = gl_TexSubImage3DEXT;
254 ctx->Exec.TexParameterfv = gl_TexParameterfv;
255 ctx->Exec.Translatef = gl_Translatef;
256 ctx->Exec.Vertex4f = gl_nop_vertex; /* FILLED IN LATER */
257 ctx->Exec.VertexPointer = gl_VertexPointer;
258 ctx->Exec.Viewport = gl_Viewport;
259
260 /* Blending extextensions */
261
262 /* GL_MESA_window_pos extension */
263 ctx->Exec.WindowPos4fMESA = gl_WindowPos4fMESA;
264
265 /* GL_MESA_resize_buffers extension */
266 ctx->Exec.ResizeBuffersMESA = gl_ResizeBuffersMESA;
267
268 /*
269 * Display list compile/save functions
270 */
271 ctx->Save.Accum = gl_save_Accum;
272 ctx->Save.AlphaFunc = gl_save_AlphaFunc;
273 ctx->Save.AreTexturesResident = gl_AreTexturesResident;
274 ctx->Save.ArrayElement = gl_save_ArrayElement;
275 ctx->Save.Begin = gl_save_Begin;
276 ctx->Save.BindTexture = gl_save_BindTexture;
277 ctx->Save.Bitmap = gl_save_Bitmap;
278 ctx->Save.BlendColor = gl_save_BlendColor;
279 ctx->Save.BlendEquation = gl_save_BlendEquation;
280 ctx->Save.BlendFunc = gl_save_BlendFunc;
281 ctx->Save.CallList = gl_save_CallList;
282 ctx->Save.CallLists = gl_save_CallLists;
283 ctx->Save.Clear = gl_save_Clear;
284 ctx->Save.ClearAccum = gl_save_ClearAccum;
285 ctx->Save.ClearColor = gl_save_ClearColor;
286 ctx->Save.ClearDepth = gl_save_ClearDepth;
287 ctx->Save.ClearIndex = gl_save_ClearIndex;
288 ctx->Save.ClearStencil = gl_save_ClearStencil;
289 ctx->Save.ClipPlane = gl_save_ClipPlane;
290 ctx->Save.Color4f = gl_save_Color4f;
291 ctx->Save.Color4ub = gl_save_Color4ub;
292 ctx->Save.ColorMask = gl_save_ColorMask;
293 ctx->Save.ColorMaterial = gl_save_ColorMaterial;
294 ctx->Save.ColorPointer = gl_ColorPointer;
295 ctx->Save.CopyPixels = gl_save_CopyPixels;
296 ctx->Save.CopyTexImage1D = gl_save_CopyTexImage1D;
297 ctx->Save.CopyTexImage2D = gl_save_CopyTexImage2D;
298 ctx->Save.CopyTexSubImage1D = gl_save_CopyTexSubImage1D;
299 ctx->Save.CopyTexSubImage2D = gl_save_CopyTexSubImage2D;
300 ctx->Save.CopyTexSubImage3DEXT = gl_save_CopyTexSubImage3DEXT;
301 ctx->Save.CullFace = gl_save_CullFace;
302 ctx->Save.DeleteLists = gl_DeleteLists; /* NOT SAVED */
303 ctx->Save.DeleteTextures = gl_DeleteTextures; /* NOT SAVED */
304 ctx->Save.DepthFunc = gl_save_DepthFunc;
305 ctx->Save.DepthMask = gl_save_DepthMask;
306 ctx->Save.DepthRange = gl_save_DepthRange;
307 ctx->Save.Disable = gl_save_Disable;
308 ctx->Save.DisableClientState = gl_DisableClientState; /* NOT SAVED */
309 ctx->Save.DrawArrays = gl_save_DrawArrays;
310 ctx->Save.DrawBuffer = gl_save_DrawBuffer;
311 ctx->Save.DrawElements = gl_save_DrawElements;
312 ctx->Save.DrawPixels = gl_DrawPixels; /* SPECIAL CASE */
313 ctx->Save.EdgeFlag = gl_save_EdgeFlag;
314 ctx->Save.EdgeFlagPointer = gl_EdgeFlagPointer;
315 ctx->Save.Enable = gl_save_Enable;
316 ctx->Save.EnableClientState = gl_EnableClientState; /* NOT SAVED */
317 ctx->Save.End = gl_save_End;
318 ctx->Save.EndList = gl_EndList; /* NOT SAVED */
319 ctx->Save.EvalCoord1f = gl_save_EvalCoord1f;
320 ctx->Save.EvalCoord2f = gl_save_EvalCoord2f;
321 ctx->Save.EvalMesh1 = gl_save_EvalMesh1;
322 ctx->Save.EvalMesh2 = gl_save_EvalMesh2;
323 ctx->Save.EvalPoint1 = gl_save_EvalPoint1;
324 ctx->Save.EvalPoint2 = gl_save_EvalPoint2;
325 ctx->Save.FeedbackBuffer = gl_FeedbackBuffer; /* NOT SAVED */
326 ctx->Save.Finish = gl_Finish; /* NOT SAVED */
327 ctx->Save.Flush = gl_Flush; /* NOT SAVED */
328 ctx->Save.Fogfv = gl_save_Fogfv;
329 ctx->Save.FrontFace = gl_save_FrontFace;
330 ctx->Save.Frustum = gl_save_Frustum;
331 ctx->Save.GenLists = gl_GenLists; /* NOT SAVED */
332 ctx->Save.GenTextures = gl_GenTextures; /* NOT SAVED */
333
334 /* NONE OF THESE COMMANDS ARE COMPILED INTO DISPLAY LISTS */
335 ctx->Save.GetBooleanv = gl_GetBooleanv;
336 ctx->Save.GetClipPlane = gl_GetClipPlane;
337 ctx->Save.GetDoublev = gl_GetDoublev;
338 ctx->Save.GetError = gl_GetError;
339 ctx->Save.GetFloatv = gl_GetFloatv;
340 ctx->Save.GetIntegerv = gl_GetIntegerv;
341 ctx->Save.GetString = gl_GetString;
342 ctx->Save.GetLightfv = gl_GetLightfv;
343 ctx->Save.GetLightiv = gl_GetLightiv;
344 ctx->Save.GetMapdv = gl_GetMapdv;
345 ctx->Save.GetMapfv = gl_GetMapfv;
346 ctx->Save.GetMapiv = gl_GetMapiv;
347 ctx->Save.GetMaterialfv = gl_GetMaterialfv;
348 ctx->Save.GetMaterialiv = gl_GetMaterialiv;
349 ctx->Save.GetPixelMapfv = gl_GetPixelMapfv;
350 ctx->Save.GetPixelMapuiv = gl_GetPixelMapuiv;
351 ctx->Save.GetPixelMapusv = gl_GetPixelMapusv;
352 ctx->Save.GetPointerv = gl_GetPointerv;
353 ctx->Save.GetPolygonStipple = gl_GetPolygonStipple;
354 ctx->Save.GetTexEnvfv = gl_GetTexEnvfv;
355 ctx->Save.GetTexEnviv = gl_GetTexEnviv;
356 ctx->Save.GetTexGendv = gl_GetTexGendv;
357 ctx->Save.GetTexGenfv = gl_GetTexGenfv;
358 ctx->Save.GetTexGeniv = gl_GetTexGeniv;
359 ctx->Save.GetTexImage = gl_GetTexImage;
360 ctx->Save.GetTexLevelParameterfv = gl_GetTexLevelParameterfv;
361 ctx->Save.GetTexLevelParameteriv = gl_GetTexLevelParameteriv;
362 ctx->Save.GetTexParameterfv = gl_GetTexParameterfv;
363 ctx->Save.GetTexParameteriv = gl_GetTexParameteriv;
364
365 ctx->Save.Hint = gl_save_Hint;
366 ctx->Save.IndexMask = gl_save_IndexMask;
367 ctx->Save.Indexf = gl_save_Indexf;
368 ctx->Save.Indexi = gl_save_Indexi;
369 ctx->Save.IndexPointer = gl_IndexPointer;
370 ctx->Save.InitNames = gl_save_InitNames;
371 ctx->Save.InterleavedArrays = gl_save_InterleavedArrays;
372 ctx->Save.IsEnabled = gl_IsEnabled; /* NOT SAVED */
373 ctx->Save.IsTexture = gl_IsTexture; /* NOT SAVED */
374 ctx->Save.IsList = gl_IsList; /* NOT SAVED */
375 ctx->Save.LightModelfv = gl_save_LightModelfv;
376 ctx->Save.Lightfv = gl_save_Lightfv;
377 ctx->Save.LineStipple = gl_save_LineStipple;
378 ctx->Save.LineWidth = gl_save_LineWidth;
379 ctx->Save.ListBase = gl_save_ListBase;
380 ctx->Save.LoadMatrixf = gl_save_LoadMatrixf;
381 ctx->Save.LoadName = gl_save_LoadName;
382 ctx->Save.LogicOp = gl_save_LogicOp;
383 ctx->Save.Map1f = gl_save_Map1f;
384 ctx->Save.Map2f = gl_save_Map2f;
385 ctx->Save.MapGrid1f = gl_save_MapGrid1f;
386 ctx->Save.MapGrid2f = gl_save_MapGrid2f;
387 ctx->Save.Materialfv = gl_save_Materialfv;
388 ctx->Save.MatrixMode = gl_save_MatrixMode;
389 ctx->Save.MultMatrixf = gl_save_MultMatrixf;
390 ctx->Save.NewList = gl_save_NewList;
391 ctx->Save.Normal3f = gl_save_Normal3f;
392 ctx->Save.Normal3fv = gl_save_Normal3fv;
393 ctx->Save.NormalPointer = gl_NormalPointer; /* NOT SAVED */
394 ctx->Save.PassThrough = gl_save_PassThrough;
395 ctx->Save.PixelMapfv = gl_save_PixelMapfv;
396 ctx->Save.PixelStorei = gl_PixelStorei; /* NOT SAVED */
397 ctx->Save.PixelTransferf = gl_save_PixelTransferf;
398 ctx->Save.PixelZoom = gl_save_PixelZoom;
399 ctx->Save.PointSize = gl_save_PointSize;
400 ctx->Save.PolygonMode = gl_save_PolygonMode;
401 ctx->Save.PolygonOffset = gl_save_PolygonOffset;
402 ctx->Save.PolygonStipple = gl_save_PolygonStipple;
403 ctx->Save.PopAttrib = gl_save_PopAttrib;
404 ctx->Save.PopClientAttrib = gl_PopClientAttrib; /* NOT SAVED */
405 ctx->Save.PopMatrix = gl_save_PopMatrix;
406 ctx->Save.PopName = gl_save_PopName;
407 ctx->Save.PrioritizeTextures = gl_save_PrioritizeTextures;
408 ctx->Save.PushAttrib = gl_save_PushAttrib;
409 ctx->Save.PushClientAttrib = gl_PushClientAttrib; /* NOT SAVED */
410 ctx->Save.PushMatrix = gl_save_PushMatrix;
411 ctx->Save.PushName = gl_save_PushName;
412 ctx->Save.RasterPos4f = gl_save_RasterPos4f;
413 ctx->Save.ReadBuffer = gl_save_ReadBuffer;
414 ctx->Save.ReadPixels = gl_ReadPixels; /* NOT SAVED */
415 ctx->Save.Rectf = gl_Rectf; /* SEE gl_Rectf() CODE */
416 ctx->Save.RenderMode = gl_RenderMode; /* NOT SAVED */
417 ctx->Save.Rotatef = gl_save_Rotatef;
418 ctx->Save.Scalef = gl_save_Scalef;
419 ctx->Save.Scissor = gl_save_Scissor;
420 ctx->Save.SelectBuffer = gl_SelectBuffer; /* NOT SAVED */
421 ctx->Save.ShadeModel = gl_save_ShadeModel;
422 ctx->Save.StencilFunc = gl_save_StencilFunc;
423 ctx->Save.StencilMask = gl_save_StencilMask;
424 ctx->Save.StencilOp = gl_save_StencilOp;
425 ctx->Save.TexCoord4f = gl_save_TexCoord4f;
426 ctx->Save.TexCoordPointer = gl_TexCoordPointer; /* NOT SAVED */
427 ctx->Save.TexEnvfv = gl_save_TexEnvfv;
428 ctx->Save.TexGenfv = gl_save_TexGenfv;
429 ctx->Save.TexImage1D = gl_save_TexImage1D;
430 ctx->Save.TexImage2D = gl_save_TexImage2D;
431 ctx->Save.TexImage3DEXT = gl_save_TexImage3DEXT;
432 ctx->Save.TexSubImage1D = gl_save_TexSubImage1D;
433 ctx->Save.TexSubImage2D = gl_save_TexSubImage2D;
434 ctx->Save.TexSubImage3DEXT = gl_save_TexSubImage3DEXT;
435 ctx->Save.TexParameterfv = gl_save_TexParameterfv;
436 ctx->Save.Translatef = gl_save_Translatef;
437 ctx->Save.Vertex4f = gl_save_Vertex4f;
438 ctx->Save.VertexPointer = gl_VertexPointer; /* NOT SAVED */
439 ctx->Save.Viewport = gl_save_Viewport;
440
441 /* GL_SAVE_MESA_window_pos extension */
442 ctx->Save.WindowPos4fMESA = gl_save_WindowPos4fMESA;
443
444 /* GL_MESA_resize_buffers extension */
445 ctx->Save.ResizeBuffersMESA = gl_ResizeBuffersMESA;
446
447
448 /* TODO: remove this someday */
449 check_pointers( &ctx->Exec );
450 check_pointers( &ctx->Save );
451 }
452