Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 3f42950656
Fetching contributors…

Cannot retrieve contributors at this time

executable file 131 lines (128 sloc) 3.103 kb
#!/usr/bin/python -B
# GL_REGAL_enable implementation
formulae = {
'Enable' : {
'entries' : [ 'glEnable' ],
'impl' : [
'switch(${arg0})',
'{',
' case GL_ERROR_REGAL:',
' #if REGAL_ERROR',
' _context->dispatcher.enable(_context->dispatcher.error);',
' #endif',
' return;',
'',
' case GL_DEBUG_REGAL:',
' #if REGAL_DEBUG',
' _context->dispatcher.enable(_context->dispatcher.debug);',
' if (!_context->dbg)',
' {',
' _context->dbg = new DebugInfo();',
' _context->dbg->Init(_context);',
' }',
' #endif',
' return;',
'',
' case GL_LOG_REGAL:',
' #if REGAL_LOG',
' _context->dispatcher.enable(_context->dispatcher.logging);',
' #endif',
' return;',
'',
' case GL_EMULATION_REGAL:',
' #if REGAL_EMULATION',
' _context->dispatcher.enable(_context->dispatcher.emulation);',
' #endif',
' return;',
'',
' case GL_DRIVER_REGAL:',
' #if REGAL_DRIVER',
' _context->dispatcher.enable(_context->dispatcher.driver);',
' #endif',
' return;',
'',
' default: break;',
'}', ],
},
'Disable' : {
'entries' : [ 'glDisable' ],
'impl' : [
'switch(${arg0})',
'{',
' case GL_ERROR_REGAL:',
' #if REGAL_ERROR',
' _context->dispatcher.disable(_context->dispatcher.error);',
' #endif',
' return;',
'',
' case GL_DEBUG_REGAL:',
' #if REGAL_DEBUG',
' _context->dispatcher.disable(_context->dispatcher.debug);',
' #endif',
' return;',
'',
' case GL_LOG_REGAL:',
' #if REGAL_LOG',
' _context->dispatcher.disable(_context->dispatcher.logging);',
' #endif',
' return;',
'',
' case GL_EMULATION_REGAL:',
' #if REGAL_EMULATION',
' _context->dispatcher.disable(_context->dispatcher.emulation);',
' #endif',
' return;',
'',
' case GL_DRIVER_REGAL:',
' #if REGAL_DRIVER',
' _context->dispatcher.disable(_context->dispatcher.driver);',
' #endif',
' return;',
'',
' default: break;',
'}', ],
},
'IsEnabled' : {
'entries' : [ 'glIsEnabled' ],
'impl' : [
'switch(${arg0})',
'{',
' case GL_ERROR_REGAL:',
' #if REGAL_ERROR',
' return _context->dispatcher.isEnabled(_context->dispatcher.error) ? GL_TRUE : GL_FALSE;',
' #else',
' return GL_FALSE;',
' #endif',
'',
' case GL_DEBUG_REGAL:',
' #if REGAL_DEBUG',
' return _context->dispatcher.isEnabled(_context->dispatcher.debug) ? GL_TRUE : GL_FALSE;',
' #else',
' return GL_FALSE;',
' #endif',
'',
' case GL_LOG_REGAL:',
' #if REGAL_LOG',
' return _context->dispatcher.isEnabled(_context->dispatcher.logging) ? GL_TRUE : GL_FALSE;',
' #else',
' return GL_FALSE;',
' #endif',
'',
' case GL_EMULATION_REGAL:',
' #if REGAL_EMULATION',
' return _context->dispatcher.isEnabled(_context->dispatcher.emulation) ? GL_TRUE : GL_FALSE;',
' #else',
' return GL_FALSE;',
' #endif',
'',
' case GL_DRIVER_REGAL:',
' #if REGAL_DRIVER',
' return _context->dispatcher.isEnabled(_context->dispatcher.driver) ? GL_TRUE : GL_FALSE;',
' #else',
' return GL_FALSE;',
' #endif',
'',
' default: break;',
'}', ],
},
}
Jump to Line
Something went wrong with that request. Please try again.