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

Cannot retrieve contributors at this time

executable file 17 lines (16 sloc) 0.826 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#!/usr/bin/python -B

formulae = {
    'GetString' : {
        'entries' : [ 'glGetString' ],
        'impl' : [ 'RegalAssert(_context->info);',
                   '// Regal interceptions',
                   'switch (name) {',
                   ' case GL_VENDOR: return reinterpret_cast<const GLubyte *>(_context->info->regalVendor.c_str());',
                   ' case GL_RENDERER: return reinterpret_cast<const GLubyte *>(_context->info->regalRenderer.c_str());',
                   ' case GL_VERSION: return reinterpret_cast<const GLubyte *>(_context->info->regalVersion.c_str());',
                   ' case GL_EXTENSIONS: return reinterpret_cast<const GLubyte *>(_context->info->regalExtensions.c_str());',
                   ' default:',
                   ' break;',
                   '}' ]
    }
}
Something went wrong with that request. Please try again.