Skip to content
This repository
tree: 3f42950656
Fetching contributors…

Cannot retrieve contributors at this time

executable file 130 lines (128 sloc) 3.103 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130
#!/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;',
'}', ],
    },
}
Something went wrong with that request. Please try again.