1 | # Copyright (c) 2001, Stanford University
|
---|
2 | # All rights reserved.
|
---|
3 | #
|
---|
4 | # See the file LICENSE.txt for information on redistributing this software.
|
---|
5 |
|
---|
6 | import sys
|
---|
7 |
|
---|
8 | import apiutil
|
---|
9 |
|
---|
10 | apiutil.CopyrightDef()
|
---|
11 |
|
---|
12 | print "LIBRARY VBoxOGL"
|
---|
13 | #print "DESCRIPTION \"\"" - warning LNK4017: DESCRIPTION statement not supported for the target platform; ignored
|
---|
14 | print "EXPORTS"
|
---|
15 |
|
---|
16 | # XXX can't these values be automatically computed by analyzing parameters?
|
---|
17 |
|
---|
18 | exports_special = [
|
---|
19 | 'Accum',
|
---|
20 | 'AlphaFunc',
|
---|
21 | 'AreTexturesResident',
|
---|
22 | 'ArrayElement',
|
---|
23 | 'Begin',
|
---|
24 | 'BindTexture',
|
---|
25 | 'Bitmap',
|
---|
26 | 'BlendFunc',
|
---|
27 | 'CallList',
|
---|
28 | 'CallLists',
|
---|
29 | 'Clear',
|
---|
30 | 'ClearAccum',
|
---|
31 | 'ClearColor',
|
---|
32 | 'ClearDepth',
|
---|
33 | 'ClearIndex',
|
---|
34 | 'ClearStencil',
|
---|
35 | 'ClipPlane',
|
---|
36 | 'Color3b',
|
---|
37 | 'Color3bv',
|
---|
38 | 'Color3d',
|
---|
39 | 'Color3dv',
|
---|
40 | 'Color3f',
|
---|
41 | 'Color3fv',
|
---|
42 | 'Color3i',
|
---|
43 | 'Color3iv',
|
---|
44 | 'Color3s',
|
---|
45 | 'Color3sv',
|
---|
46 | 'Color3ub',
|
---|
47 | 'Color3ubv',
|
---|
48 | 'Color3ui',
|
---|
49 | 'Color3uiv',
|
---|
50 | 'Color3us',
|
---|
51 | 'Color3usv',
|
---|
52 | 'Color4b',
|
---|
53 | 'Color4bv',
|
---|
54 | 'Color4d',
|
---|
55 | 'Color4dv',
|
---|
56 | 'Color4f',
|
---|
57 | 'Color4fv',
|
---|
58 | 'Color4i',
|
---|
59 | 'Color4iv',
|
---|
60 | 'Color4s',
|
---|
61 | 'Color4sv',
|
---|
62 | 'Color4ub',
|
---|
63 | 'Color4ubv',
|
---|
64 | 'Color4ui',
|
---|
65 | 'Color4uiv',
|
---|
66 | 'Color4us',
|
---|
67 | 'Color4usv',
|
---|
68 | 'ColorMask',
|
---|
69 | 'ColorMaterial',
|
---|
70 | 'ColorPointer',
|
---|
71 | 'CopyPixels',
|
---|
72 | 'CopyTexImage1D',
|
---|
73 | 'CopyTexImage2D',
|
---|
74 | 'CopyTexSubImage1D',
|
---|
75 | 'CopyTexSubImage2D',
|
---|
76 | 'CullFace',
|
---|
77 | 'DebugEntry',
|
---|
78 | 'DeleteLists',
|
---|
79 | 'DeleteTextures',
|
---|
80 | 'DepthFunc',
|
---|
81 | 'DepthMask',
|
---|
82 | 'DepthRange',
|
---|
83 | 'Disable',
|
---|
84 | 'DisableClientState',
|
---|
85 | 'DrawArrays',
|
---|
86 | 'DrawBuffer',
|
---|
87 | 'DrawElements',
|
---|
88 | 'DrawPixels',
|
---|
89 | 'EdgeFlag',
|
---|
90 | 'EdgeFlagPointer',
|
---|
91 | 'EdgeFlagv',
|
---|
92 | 'Enable',
|
---|
93 | 'EnableClientState',
|
---|
94 | 'End',
|
---|
95 | 'EndList',
|
---|
96 | 'EvalCoord1d',
|
---|
97 | 'EvalCoord1dv',
|
---|
98 | 'EvalCoord1f',
|
---|
99 | 'EvalCoord1fv',
|
---|
100 | 'EvalCoord2d',
|
---|
101 | 'EvalCoord2dv',
|
---|
102 | 'EvalCoord2f',
|
---|
103 | 'EvalCoord2fv',
|
---|
104 | 'EvalMesh1',
|
---|
105 | 'EvalMesh2',
|
---|
106 | 'EvalPoint1',
|
---|
107 | 'EvalPoint2',
|
---|
108 | 'FeedbackBuffer',
|
---|
109 | 'Finish',
|
---|
110 | 'Flush',
|
---|
111 | 'Fogf',
|
---|
112 | 'Fogfv',
|
---|
113 | 'Fogi',
|
---|
114 | 'Fogiv',
|
---|
115 | 'FrontFace',
|
---|
116 | 'Frustum',
|
---|
117 | 'GenLists',
|
---|
118 | 'GenTextures',
|
---|
119 | 'GetBooleanv',
|
---|
120 | 'GetClipPlane',
|
---|
121 | 'GetDoublev',
|
---|
122 | 'GetError',
|
---|
123 | 'GetFloatv',
|
---|
124 | 'GetIntegerv',
|
---|
125 | 'GetLightfv',
|
---|
126 | 'GetLightiv',
|
---|
127 | 'GetMapdv',
|
---|
128 | 'GetMapfv',
|
---|
129 | 'GetMapiv',
|
---|
130 | 'GetMaterialfv',
|
---|
131 | 'GetMaterialiv',
|
---|
132 | 'GetPixelMapfv',
|
---|
133 | 'GetPixelMapuiv',
|
---|
134 | 'GetPixelMapusv',
|
---|
135 | 'GetPointerv',
|
---|
136 | 'GetPolygonStipple',
|
---|
137 | 'GetString',
|
---|
138 | 'GetTexEnvfv',
|
---|
139 | 'GetTexEnviv',
|
---|
140 | 'GetTexGendv',
|
---|
141 | 'GetTexGenfv',
|
---|
142 | 'GetTexGeniv',
|
---|
143 | 'GetTexImage',
|
---|
144 | 'GetTexLevelParameterfv',
|
---|
145 | 'GetTexLevelParameteriv',
|
---|
146 | 'GetTexParameterfv',
|
---|
147 | 'GetTexParameteriv',
|
---|
148 | 'Hint',
|
---|
149 | 'IndexMask',
|
---|
150 | 'IndexPointer',
|
---|
151 | 'Indexd',
|
---|
152 | 'Indexdv',
|
---|
153 | 'Indexf',
|
---|
154 | 'Indexfv',
|
---|
155 | 'Indexi',
|
---|
156 | 'Indexiv',
|
---|
157 | 'Indexs',
|
---|
158 | 'Indexsv',
|
---|
159 | 'Indexub',
|
---|
160 | 'Indexubv',
|
---|
161 | 'InitNames',
|
---|
162 | 'InterleavedArrays',
|
---|
163 | 'IsEnabled',
|
---|
164 | 'IsList',
|
---|
165 | 'IsTexture',
|
---|
166 | 'LightModelf',
|
---|
167 | 'LightModelfv',
|
---|
168 | 'LightModeli',
|
---|
169 | 'LightModeliv',
|
---|
170 | 'Lightf',
|
---|
171 | 'Lightfv',
|
---|
172 | 'Lighti',
|
---|
173 | 'Lightiv',
|
---|
174 | 'LineStipple',
|
---|
175 | 'LineWidth',
|
---|
176 | 'ListBase',
|
---|
177 | 'LoadIdentity',
|
---|
178 | 'LoadMatrixd',
|
---|
179 | 'LoadMatrixf',
|
---|
180 | 'LoadName',
|
---|
181 | 'LogicOp',
|
---|
182 | 'Map1d',
|
---|
183 | 'Map1f',
|
---|
184 | 'Map2d',
|
---|
185 | 'Map2f',
|
---|
186 | 'MapGrid1d',
|
---|
187 | 'MapGrid1f',
|
---|
188 | 'MapGrid2d',
|
---|
189 | 'MapGrid2f',
|
---|
190 | 'Materialf',
|
---|
191 | 'Materialfv',
|
---|
192 | 'Materiali',
|
---|
193 | 'Materialiv',
|
---|
194 | 'MatrixMode',
|
---|
195 | 'MultMatrixd',
|
---|
196 | 'MultMatrixf',
|
---|
197 | 'NewList',
|
---|
198 | 'Normal3b',
|
---|
199 | 'Normal3bv',
|
---|
200 | 'Normal3d',
|
---|
201 | 'Normal3dv',
|
---|
202 | 'Normal3f',
|
---|
203 | 'Normal3fv',
|
---|
204 | 'Normal3i',
|
---|
205 | 'Normal3iv',
|
---|
206 | 'Normal3s',
|
---|
207 | 'Normal3sv',
|
---|
208 | 'NormalPointer',
|
---|
209 | 'Ortho',
|
---|
210 | 'PassThrough',
|
---|
211 | 'PixelMapfv',
|
---|
212 | 'PixelMapuiv',
|
---|
213 | 'PixelMapusv',
|
---|
214 | 'PixelStoref',
|
---|
215 | 'PixelStorei',
|
---|
216 | 'PixelTransferf',
|
---|
217 | 'PixelTransferi',
|
---|
218 | 'PixelZoom',
|
---|
219 | 'PointSize',
|
---|
220 | 'PolygonMode',
|
---|
221 | 'PolygonOffset',
|
---|
222 | 'PolygonStipple',
|
---|
223 | 'PopAttrib',
|
---|
224 | 'PopClientAttrib',
|
---|
225 | 'PopMatrix',
|
---|
226 | 'PopName',
|
---|
227 | 'PrioritizeTextures',
|
---|
228 | 'PushAttrib',
|
---|
229 | 'PushClientAttrib',
|
---|
230 | 'PushMatrix',
|
---|
231 | 'PushName',
|
---|
232 | 'RasterPos2d',
|
---|
233 | 'RasterPos2dv',
|
---|
234 | 'RasterPos2f',
|
---|
235 | 'RasterPos2fv',
|
---|
236 | 'RasterPos2i',
|
---|
237 | 'RasterPos2iv',
|
---|
238 | 'RasterPos2s',
|
---|
239 | 'RasterPos2sv',
|
---|
240 | 'RasterPos3d',
|
---|
241 | 'RasterPos3dv',
|
---|
242 | 'RasterPos3f',
|
---|
243 | 'RasterPos3fv',
|
---|
244 | 'RasterPos3i',
|
---|
245 | 'RasterPos3iv',
|
---|
246 | 'RasterPos3s',
|
---|
247 | 'RasterPos3sv',
|
---|
248 | 'RasterPos4d',
|
---|
249 | 'RasterPos4dv',
|
---|
250 | 'RasterPos4f',
|
---|
251 | 'RasterPos4fv',
|
---|
252 | 'RasterPos4i',
|
---|
253 | 'RasterPos4iv',
|
---|
254 | 'RasterPos4s',
|
---|
255 | 'RasterPos4sv',
|
---|
256 | 'ReadBuffer',
|
---|
257 | 'ReadPixels',
|
---|
258 | 'Rectd',
|
---|
259 | 'Rectdv',
|
---|
260 | 'Rectf',
|
---|
261 | 'Rectfv',
|
---|
262 | 'Recti',
|
---|
263 | 'Rectiv',
|
---|
264 | 'Rects',
|
---|
265 | 'Rectsv',
|
---|
266 | 'RenderMode',
|
---|
267 | 'Rotated',
|
---|
268 | 'Rotatef',
|
---|
269 | 'Scaled',
|
---|
270 | 'Scalef',
|
---|
271 | 'Scissor',
|
---|
272 | 'SelectBuffer',
|
---|
273 | 'ShadeModel',
|
---|
274 | 'StencilFunc',
|
---|
275 | 'StencilMask',
|
---|
276 | 'StencilOp',
|
---|
277 | 'TexCoord1d',
|
---|
278 | 'TexCoord1dv',
|
---|
279 | 'TexCoord1f',
|
---|
280 | 'TexCoord1fv',
|
---|
281 | 'TexCoord1i',
|
---|
282 | 'TexCoord1iv',
|
---|
283 | 'TexCoord1s',
|
---|
284 | 'TexCoord1sv',
|
---|
285 | 'TexCoord2d',
|
---|
286 | 'TexCoord2dv',
|
---|
287 | 'TexCoord2f',
|
---|
288 | 'TexCoord2fv',
|
---|
289 | 'TexCoord2i',
|
---|
290 | 'TexCoord2iv',
|
---|
291 | 'TexCoord2s',
|
---|
292 | 'TexCoord2sv',
|
---|
293 | 'TexCoord3d',
|
---|
294 | 'TexCoord3dv',
|
---|
295 | 'TexCoord3f',
|
---|
296 | 'TexCoord3fv',
|
---|
297 | 'TexCoord3i',
|
---|
298 | 'TexCoord3iv',
|
---|
299 | 'TexCoord3s',
|
---|
300 | 'TexCoord3sv',
|
---|
301 | 'TexCoord4d',
|
---|
302 | 'TexCoord4dv',
|
---|
303 | 'TexCoord4f',
|
---|
304 | 'TexCoord4fv',
|
---|
305 | 'TexCoord4i',
|
---|
306 | 'TexCoord4iv',
|
---|
307 | 'TexCoord4s',
|
---|
308 | 'TexCoord4sv',
|
---|
309 | 'TexCoordPointer',
|
---|
310 | 'TexEnvf',
|
---|
311 | 'TexEnvfv',
|
---|
312 | 'TexEnvi',
|
---|
313 | 'TexEnviv',
|
---|
314 | 'TexGend',
|
---|
315 | 'TexGendv',
|
---|
316 | 'TexGenf',
|
---|
317 | 'TexGenfv',
|
---|
318 | 'TexGeni',
|
---|
319 | 'TexGeniv',
|
---|
320 | 'TexImage1D',
|
---|
321 | 'TexImage2D',
|
---|
322 | 'TexImage3D',
|
---|
323 | 'TexParameterf',
|
---|
324 | 'TexParameterfv',
|
---|
325 | 'TexParameteri',
|
---|
326 | 'TexParameteriv',
|
---|
327 | 'TexSubImage1D',
|
---|
328 | 'TexSubImage2D',
|
---|
329 | 'Translated',
|
---|
330 | 'Translatef',
|
---|
331 | 'Vertex2d',
|
---|
332 | 'Vertex2dv',
|
---|
333 | 'Vertex2f',
|
---|
334 | 'Vertex2fv',
|
---|
335 | 'Vertex2i',
|
---|
336 | 'Vertex2iv',
|
---|
337 | 'Vertex2s',
|
---|
338 | 'Vertex2sv',
|
---|
339 | 'Vertex3d',
|
---|
340 | 'Vertex3dv',
|
---|
341 | 'Vertex3f',
|
---|
342 | 'Vertex3fv',
|
---|
343 | 'Vertex3i',
|
---|
344 | 'Vertex3iv',
|
---|
345 | 'Vertex3s',
|
---|
346 | 'Vertex3sv',
|
---|
347 | 'Vertex4d',
|
---|
348 | 'Vertex4dv',
|
---|
349 | 'Vertex4f',
|
---|
350 | 'Vertex4fv',
|
---|
351 | 'Vertex4i',
|
---|
352 | 'Vertex4iv',
|
---|
353 | 'Vertex4s',
|
---|
354 | 'Vertex4sv',
|
---|
355 | 'VertexPointer',
|
---|
356 | 'Viewport',
|
---|
357 | 'wglChoosePixelFormat',
|
---|
358 | 'wglCopyContext',
|
---|
359 | 'wglCreateContext',
|
---|
360 | 'wglCreateLayerContext',
|
---|
361 | 'wglDeleteContext',
|
---|
362 | 'wglDescribeLayerPlane',
|
---|
363 | 'wglDescribePixelFormat',
|
---|
364 | 'wglGetCurrentContext',
|
---|
365 | 'wglGetCurrentDC',
|
---|
366 | 'wglGetDefaultProcAddress',
|
---|
367 | 'wglGetLayerPaletteEntries',
|
---|
368 | 'wglGetPixelFormat',
|
---|
369 | 'wglGetProcAddress',
|
---|
370 | 'wglMakeCurrent',
|
---|
371 | 'wglRealizeLayerPalette',
|
---|
372 | 'wglSetLayerPaletteEntries',
|
---|
373 | 'wglSetPixelFormat',
|
---|
374 | 'wglShareLists',
|
---|
375 | 'wglSwapBuffers',
|
---|
376 | 'wglSwapLayerBuffers',
|
---|
377 | 'wglSwapMultipleBuffers',
|
---|
378 | 'wglUseFontBitmapsA',
|
---|
379 | 'wglUseFontBitmapsW',
|
---|
380 | 'wglUseFontOutlinesA',
|
---|
381 | 'wglUseFontOutlinesW',
|
---|
382 | 'wglChoosePixelFormatEXT',
|
---|
383 | 'wglGetPixelFormatAttribivEXT',
|
---|
384 | 'wglGetPixelFormatAttribfvEXT',
|
---|
385 | 'wglGetExtensionsStringEXT',
|
---|
386 | 'CopyContext',
|
---|
387 | 'CreateContext',
|
---|
388 | 'CreateLayerContext',
|
---|
389 | 'DeleteContext',
|
---|
390 | 'DescribeLayerPlane',
|
---|
391 | 'DescribePixelFormat',
|
---|
392 | 'GetLayerPaletteEntries',
|
---|
393 | 'GetProcAddress',
|
---|
394 | 'RealizeLayerPalette',
|
---|
395 | 'ReleaseContext',
|
---|
396 | 'SetContext',
|
---|
397 | 'SetLayerPaletteEntries',
|
---|
398 | 'SetPixelFormat',
|
---|
399 | 'ShareLists',
|
---|
400 | 'SwapBuffers',
|
---|
401 | 'SwapLayerBuffers',
|
---|
402 | 'ValidateVersion',
|
---|
403 | ]
|
---|
404 |
|
---|
405 | noexport_special = [
|
---|
406 | "BoundsInfoCR",
|
---|
407 | "CreateContext",
|
---|
408 | "DestroyContext",
|
---|
409 | "MakeCurrent",
|
---|
410 | "WindowCreate",
|
---|
411 | "WindowDestroy",
|
---|
412 | "WindowSize",
|
---|
413 | "WindowPosition",
|
---|
414 | "WindowVisibleRegion",
|
---|
415 | "WindowShow",
|
---|
416 | "SwapBuffers"
|
---|
417 | ]
|
---|
418 |
|
---|
419 | keys = apiutil.GetDispatchedFunctions(sys.argv[1]+"/APIspec.txt")
|
---|
420 |
|
---|
421 | for func_name in keys:
|
---|
422 | if func_name in noexport_special:
|
---|
423 | continue
|
---|
424 | if func_name in exports_special:
|
---|
425 | print "gl%s = cr_gl%s" % (func_name,func_name)
|
---|
426 |
|
---|
427 | for func_name in ( "wglChoosePixelFormat",
|
---|
428 | "wglCopyContext",
|
---|
429 | "wglCreateContext",
|
---|
430 | "wglCreateLayerContext",
|
---|
431 | "wglDeleteContext",
|
---|
432 | "wglDescribeLayerPlane",
|
---|
433 | "wglDescribePixelFormat",
|
---|
434 | "wglGetCurrentContext",
|
---|
435 | "wglGetCurrentDC",
|
---|
436 | "wglGetLayerPaletteEntries",
|
---|
437 | "wglGetPixelFormat",
|
---|
438 | "wglGetProcAddress",
|
---|
439 | "wglMakeCurrent",
|
---|
440 | "wglRealizeLayerPalette",
|
---|
441 | "wglSetLayerPaletteEntries",
|
---|
442 | "wglSetPixelFormat",
|
---|
443 | "wglShareLists",
|
---|
444 | "wglSwapBuffers",
|
---|
445 | "wglSwapLayerBuffers",
|
---|
446 | "wglSwapMultipleBuffers",
|
---|
447 | "wglUseFontBitmapsA",
|
---|
448 | "wglUseFontBitmapsW",
|
---|
449 | "wglUseFontOutlinesA",
|
---|
450 | "wglUseFontOutlinesW",
|
---|
451 | "wglChoosePixelFormatEXT",
|
---|
452 | "wglGetPixelFormatAttribivEXT",
|
---|
453 | "wglGetPixelFormatAttribfvEXT",
|
---|
454 | "wglGetExtensionsStringEXT"):
|
---|
455 | print "%s = %s_prox" % (func_name,func_name)
|
---|
456 |
|
---|
457 | print """DrvCopyContext
|
---|
458 | DrvCreateContext
|
---|
459 | DrvCreateLayerContext
|
---|
460 | DrvDeleteContext
|
---|
461 | DrvDescribeLayerPlane
|
---|
462 | DrvDescribePixelFormat
|
---|
463 | DrvGetLayerPaletteEntries
|
---|
464 | DrvGetProcAddress = wglGetProcAddress_prox
|
---|
465 | DrvRealizeLayerPalette
|
---|
466 | DrvSetLayerPaletteEntries
|
---|
467 | DrvShareLists
|
---|
468 | DrvSwapBuffers
|
---|
469 | DrvSwapLayerBuffers
|
---|
470 | DrvReleaseContext = DrvReleaseContext
|
---|
471 | DrvSetContext = DrvSetContext
|
---|
472 | DrvValidateVersion = DrvValidateVersion
|
---|
473 | DrvSetPixelFormat = DrvSetPixelFormat"""
|
---|
474 |
|
---|
475 | print """crCreateContext
|
---|
476 | crMakeCurrent
|
---|
477 | crSwapBuffers
|
---|
478 | crGetProcAddress
|
---|
479 | VBoxCreateContext
|
---|
480 | VBoxGetWindowId
|
---|
481 | VBoxFlushToHost"""
|
---|
482 | #print "DllMain"
|
---|