Changeset 43652 in vbox for trunk/src/VBox/GuestHost/OpenGL/glapi_parser
- Timestamp:
- Oct 16, 2012 9:40:24 AM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 81409
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/glapi_parser/apiutil.py
r43647 r43652 47 47 self.props = [] 48 48 self.chromium = [] 49 self.chrelopcode = -1 49 50 50 51 … … 162 163 break 163 164 165 elif tokens[0] == 'chrelopcode': 166 record.chrelopcode = int(tokens[1]) 167 164 168 else: 165 169 print 'Invalid token %s after function %s' % (tokens[0], record.name) … … 312 316 d = GetFunctionDict() 313 317 return d[funcName].chromium 318 319 def ChromiumRelOpCode(funcName): 320 """Return list of Chromium-specific properties of the named GL function.""" 321 d = GetFunctionDict() 322 return d[funcName].chrelopcode 323 314 324 315 325 def ParamProps(funcName): … … 368 378 return '' 369 379 elif (cat == '1.3' or 370 371 372 373 380 cat == '1.4' or 381 cat == '1.5' or 382 cat == '2.0' or 383 cat == '2.1'): 374 384 # i.e. OpenGL 1.3 or 1.4 or 1.5 375 385 return "OPENGL_VERSION_" + string.replace(cat, ".", "_") … … 580 590 581 591 def MakeDeclarationStringWithContext(ctx_macro_prefix, params): 582 583 584 585 586 587 588 589 590 591 592 """Same as MakeDeclarationString, but adds a context macro 593 """ 594 595 n = len(params) 596 if n == 0: 597 return ctx_macro_prefix + '_ARGSINGLEDECL' 598 else: 599 result = MakeDeclarationString(params) 600 return ctx_macro_prefix + '_ARGDECL ' + result 601 #endif 592 602 #enddef 593 603 … … 639 649 'GLhandleARB': 4, 640 650 'GLcharARB': 1, 641 651 'uintptr_t': 4 642 652 } 643 653
Note:
See TracChangeset
for help on using the changeset viewer.