regal/scripts/EmuExtensionQuery.py
Nigel Stewart e6d0d944a4 Split ContextInfo into context and emulation information structs.
Refresh GoogleMock from upstream.
Regal initialization for selected WGL functions.
Assertion fixes.
2013-09-13 10:24:16 -05:00

18 lines
520 B
Python

#!/usr/bin/python -B
formulae = {
'GetExtension' : {
'entries' : [ 'glGetExtensionREGAL' ],
'impl' : '''
RegalAssert(_context->info);
RegalAssert(_context->emuInfo)
return _context->emuInfo->getExtension(*_context->info,ext) ? GL_TRUE : GL_FALSE;'''
},
'IsSupported' : {
'entries' : [ 'glIsSupportedREGAL' ],
'impl' : '''
RegalAssert(_context->info);
RegalAssert(_context->emuInfo)
return _context->emuInfo->isSupported(*_context->info,ext) ? GL_TRUE : GL_FALSE;'''
},
}