VirtualBox

source: vbox/trunk/src/VBox/GuestHost/OpenGL/packer/packer_defs.py@ 50973

Last change on this file since 50973 was 15532, checked in by vboxsync, 16 years ago

crOpenGL: export to OSE

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 5.6 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
6# This script generates the packer/packer.def file.
7
8import sys
9import cPickle
10
11import apiutil
12
13
14apiutil.CopyrightDef()
15
16print "DESCRIPTION \"\""
17print "EXPORTS"
18
19keys = apiutil.GetDispatchedFunctions(sys.argv[1]+"/APIspec.txt")
20for func_name in keys:
21 if apiutil.CanPack(func_name):
22 print "crPack%s" % func_name
23 print "crPack%sSWAP" % func_name
24
25functions = [
26 'crPackVertexAttrib1dARBBBOX',
27 'crPackVertexAttrib1dvARBBBOX',
28 'crPackVertexAttrib1fARBBBOX',
29 'crPackVertexAttrib1fvARBBBOX',
30 'crPackVertexAttrib1sARBBBOX',
31 'crPackVertexAttrib1svARBBBOX',
32 'crPackVertexAttrib2dARBBBOX',
33 'crPackVertexAttrib2dvARBBBOX',
34 'crPackVertexAttrib2fARBBBOX',
35 'crPackVertexAttrib2fvARBBBOX',
36 'crPackVertexAttrib2sARBBBOX',
37 'crPackVertexAttrib2svARBBBOX',
38 'crPackVertexAttrib3dARBBBOX',
39 'crPackVertexAttrib3dvARBBBOX',
40 'crPackVertexAttrib3fARBBBOX',
41 'crPackVertexAttrib3fvARBBBOX',
42 'crPackVertexAttrib3sARBBBOX',
43 'crPackVertexAttrib3svARBBBOX',
44 'crPackVertexAttrib4dARBBBOX',
45 'crPackVertexAttrib4dvARBBBOX',
46 'crPackVertexAttrib4fARBBBOX',
47 'crPackVertexAttrib4fvARBBBOX',
48 'crPackVertexAttrib4sARBBBOX',
49 'crPackVertexAttrib4svARBBBOX',
50 'crPackVertexAttrib4usvARBBBOX',
51 'crPackVertexAttrib4ivARBBBOX',
52 'crPackVertexAttrib4uivARBBBOX',
53 'crPackVertexAttrib4bvARBBBOX',
54 'crPackVertexAttrib4ubvARBBBOX',
55 'crPackVertexAttrib4NusvARBBBOX',
56 'crPackVertexAttrib4NsvARBBBOX',
57 'crPackVertexAttrib4NuivARBBBOX',
58 'crPackVertexAttrib4NivARBBBOX',
59 'crPackVertexAttrib4NubvARBBBOX',
60 'crPackVertexAttrib4NbvARBBBOX',
61 'crPackVertexAttrib4NubARBBBOX',
62 'crPackVertex2dBBOX',
63 'crPackVertex2dvBBOX',
64 'crPackVertex2fBBOX',
65 'crPackVertex2fvBBOX',
66 'crPackVertex2iBBOX',
67 'crPackVertex2ivBBOX',
68 'crPackVertex2sBBOX',
69 'crPackVertex2svBBOX',
70 'crPackVertex3dBBOX',
71 'crPackVertex3dvBBOX',
72 'crPackVertex3fBBOX',
73 'crPackVertex3fvBBOX',
74 'crPackVertex3iBBOX',
75 'crPackVertex3ivBBOX',
76 'crPackVertex3sBBOX',
77 'crPackVertex3svBBOX',
78 'crPackVertex4dBBOX',
79 'crPackVertex4dvBBOX',
80 'crPackVertex4fBBOX',
81 'crPackVertex4fvBBOX',
82 'crPackVertex4iBBOX',
83 'crPackVertex4ivBBOX',
84 'crPackVertex4sBBOX',
85 'crPackVertex4svBBOX',
86 'crPackVertexAttrib1dARBBBOX_COUNT',
87 'crPackVertexAttrib1dvARBBBOX_COUNT',
88 'crPackVertexAttrib1fARBBBOX_COUNT',
89 'crPackVertexAttrib1fvARBBBOX_COUNT',
90 'crPackVertexAttrib1sARBBBOX_COUNT',
91 'crPackVertexAttrib1svARBBBOX_COUNT',
92 'crPackVertexAttrib2dARBBBOX_COUNT',
93 'crPackVertexAttrib2dvARBBBOX_COUNT',
94 'crPackVertexAttrib2fARBBBOX_COUNT',
95 'crPackVertexAttrib2fvARBBBOX_COUNT',
96 'crPackVertexAttrib2sARBBBOX_COUNT',
97 'crPackVertexAttrib2svARBBBOX_COUNT',
98 'crPackVertexAttrib3dARBBBOX_COUNT',
99 'crPackVertexAttrib3dvARBBBOX_COUNT',
100 'crPackVertexAttrib3fARBBBOX_COUNT',
101 'crPackVertexAttrib3fvARBBBOX_COUNT',
102 'crPackVertexAttrib3sARBBBOX_COUNT',
103 'crPackVertexAttrib3svARBBBOX_COUNT',
104 'crPackVertexAttrib4dARBBBOX_COUNT',
105 'crPackVertexAttrib4dvARBBBOX_COUNT',
106 'crPackVertexAttrib4fARBBBOX_COUNT',
107 'crPackVertexAttrib4fvARBBBOX_COUNT',
108 'crPackVertexAttrib4sARBBBOX_COUNT',
109 'crPackVertexAttrib4svARBBBOX_COUNT',
110 'crPackVertexAttrib4usvARBBBOX_COUNT',
111 'crPackVertexAttrib4ivARBBBOX_COUNT',
112 'crPackVertexAttrib4uivARBBBOX_COUNT',
113 'crPackVertexAttrib4bvARBBBOX_COUNT',
114 'crPackVertexAttrib4ubvARBBBOX_COUNT',
115 'crPackVertexAttrib4NusvARBBBOX_COUNT',
116 'crPackVertexAttrib4NsvARBBBOX_COUNT',
117 'crPackVertexAttrib4NuivARBBBOX_COUNT',
118 'crPackVertexAttrib4NivARBBBOX_COUNT',
119 'crPackVertexAttrib4NubvARBBBOX_COUNT',
120 'crPackVertexAttrib4NbvARBBBOX_COUNT',
121 'crPackVertexAttrib4NubARBBBOX_COUNT',
122 'crPackVertex2dBBOX_COUNT',
123 'crPackVertex2dvBBOX_COUNT',
124 'crPackVertex2fBBOX_COUNT',
125 'crPackVertex2fvBBOX_COUNT',
126 'crPackVertex2iBBOX_COUNT',
127 'crPackVertex2ivBBOX_COUNT',
128 'crPackVertex2sBBOX_COUNT',
129 'crPackVertex2svBBOX_COUNT',
130 'crPackVertex3dBBOX_COUNT',
131 'crPackVertex3dvBBOX_COUNT',
132 'crPackVertex3fBBOX_COUNT',
133 'crPackVertex3fvBBOX_COUNT',
134 'crPackVertex3iBBOX_COUNT',
135 'crPackVertex3ivBBOX_COUNT',
136 'crPackVertex3sBBOX_COUNT',
137 'crPackVertex3svBBOX_COUNT',
138 'crPackVertex4dBBOX_COUNT',
139 'crPackVertex4dvBBOX_COUNT',
140 'crPackVertex4fBBOX_COUNT',
141 'crPackVertex4fvBBOX_COUNT',
142 'crPackVertex4iBBOX_COUNT',
143 'crPackVertex4ivBBOX_COUNT',
144 'crPackVertex4sBBOX_COUNT',
145 'crPackVertex4svBBOX_COUNT',
146 'crPackVertexAttribs1dvNV',
147 'crPackVertexAttribs1fvNV',
148 'crPackVertexAttribs1svNV',
149 'crPackVertexAttribs2dvNV',
150 'crPackVertexAttribs2fvNV',
151 'crPackVertexAttribs2svNV',
152 'crPackVertexAttribs3dvNV',
153 'crPackVertexAttribs3fvNV',
154 'crPackVertexAttribs3svNV',
155 'crPackVertexAttribs4dvNV',
156 'crPackVertexAttribs4fvNV',
157 'crPackVertexAttribs4svNV',
158 'crPackVertexAttribs4ubvNV',
159 'crPackExpandDrawArrays',
160 'crPackExpandDrawElements',
161 'crPackUnrollDrawElements',
162 'crPackExpandDrawRangeElements',
163 'crPackExpandArrayElement',
164 'crPackExpandMultiDrawArraysEXT',
165 'crPackMultiDrawArraysEXT',
166 'crPackMultiDrawElementsEXT',
167 'crPackExpandMultiDrawElementsEXT',
168 'crPackMapBufferARB',
169 'crPackUnmapBufferARB' ]
170
171for func_name in functions:
172 print "%s" % func_name
173 print "%sSWAP" % func_name
174
175
176print """
177crPackInitBuffer
178crPackResetPointers
179crPackAppendBuffer
180crPackAppendBoundedBuffer
181crPackSetBuffer
182crPackSetBufferDEBUG
183crPackReleaseBuffer
184crPackFlushFunc
185crPackFlushArg
186crPackSendHugeFunc
187crPackBoundsInfoCR
188crPackResetBoundingBox
189crPackGetBoundingBox
190crPackOffsetCurrentPointers
191crPackNullCurrentPointers
192crPackNewContext
193crPackGetContext
194crPackSetContext
195crPackFree
196crNetworkPointerWrite
197crPackCanHoldBuffer
198crPackCanHoldBoundedBuffer
199crPackMaxData
200crPackErrorFunction
201cr_packer_globals
202_PackerTSD
203"""
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