VirtualBox

source: vbox/trunk/src/VBox/Additions/common/crOpenGL/defs64.py@ 78942

Last change on this file since 78942 was 69310, checked in by vboxsync, 7 years ago

common/crOpenGL: scm updates

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

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette