regal/scripts/EmuHint.py
Nigel Stewart 3ad6fd770e Revised version of commit b92e6bb26a
Consolidation of various GL context limits into RegalEmu.h and ContextInfo
Improved array bounds checking for emulation
More querable states for GL database
Revision: Resolve Iff fixed-function lighting emulation perf regression.
2013-09-09 12:23:02 -05:00

20 lines
537 B
Python

#!/usr/bin/python -B
hintFormulae = {
'Hint' : {
'entries' : [ 'glHint' ],
'impl' : [
'if( ! _context->hint->glHint( *_context, ${arg0plus} ) ) {',
' _context->dispatcher.emulation.glHint( ${arg0plus} );',
'}',
],
},
'Get' : {
'entries' : [ 'glGet(Integer|Float|Double|Boolean)v(EXT|)' ],
'impl' : [
'if( ! _context->hint->glGet${m2}v( *_context, ${arg0plus} ) ) {',
' _context->dispatcher.emulation.glGet${m1}v${m2}( ${arg0plus} );',
'}',
],
},
}