Changeset 43647 in vbox
- Timestamp:
- Oct 15, 2012 5:42:34 PM (12 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/crOpenGL/windows_getprocaddress.py
r40267 r43647 38 38 39 39 40 keys = apiutil.GetAllFunctions (sys.argv[1]+"/APIspec.txt")40 keys = apiutil.GetAllFunctionsAndOmittedAliases(sys.argv[1]+"/APIspec.txt") 41 41 for func_name in keys: 42 42 if "Chromium" == apiutil.Category(func_name): … … 49 49 pass #continue 50 50 51 # alias is the function we're aliasing 52 proc_name = func_name 53 if "omit" in apiutil.ChromiumProps(func_name): 54 alias = apiutil.Alias(func_name) 55 if alias: 56 proc_name = alias 57 51 58 wrap = apiutil.GetCategoryWrapper(func_name) 52 59 name = "gl" + func_name 53 address = "cr_gl" + func_name60 address = "cr_gl" + proc_name 54 61 if wrap: 55 62 print '#ifdef CR_%s' % wrap … … 137 144 if (!crStrcmp( name, "wglSwapIntervalEXT" )) return (CR_PROC) wglSwapIntervalEXT; 138 145 139 /* this is needed for VSG Open Inventor stuff.140 * @todo: make all these auto-generated!!! */141 if (!crStrcmp( name, "glBeginQuery" )) return (CR_PROC) cr_glBeginQueryARB;142 if (!crStrcmp( name, "glDeleteQueries" )) return (CR_PROC) cr_glDeleteQueriesARB;143 if (!crStrcmp( name, "glEndQuery" )) return (CR_PROC) cr_glEndQueryARB;144 if (!crStrcmp( name, "glGenQueries" )) return (CR_PROC) cr_glGenQueriesARB;145 if (!crStrcmp( name, "glGetQueryObjectiv" )) return (CR_PROC) cr_glGetQueryObjectivARB;146 if (!crStrcmp( name, "glGetQueryObjectuiv" )) return (CR_PROC) cr_glGetQueryObjectuivARB;147 if (!crStrcmp( name, "glGetQueryiv" )) return (CR_PROC) cr_glGetQueryivARB;148 if (!crStrcmp( name, "glIsQuery" )) return (CR_PROC) cr_glIsQueryARB;149 150 146 crWarning("Returning GetProcAddress:NULL for %s", name); 151 147 return NULL; -
trunk/src/VBox/GuestHost/OpenGL/glapi_parser/apiutil.py
r42028 r43647 224 224 return funcs 225 225 226 def GetAllFunctionsAndOmittedAliases(specFile = ""): 227 """Return sorted list of all functions known to Chromium.""" 228 d = GetFunctionDict(specFile) 229 funcs = [] 230 for func in d.keys(): 231 rec = d[func] 232 if (not "omit" in rec.chromium or 233 rec.alias != ''): 234 funcs.append(func) 235 funcs.sort() 236 return funcs 226 237 227 238 def GetDispatchedFunctions(specFile = ""):
Note:
See TracChangeset
for help on using the changeset viewer.