regal/scripts/EmuFrame.py
Nigel Stewart 79f4316f0e Consolidate frame hashing and capture into Regal::Frame
Add support to use glXSwapBuffers for frame counting
Support for wglSwapBuffers, eglSwapBuffers and CGLFlushDrawable too
VC and XCode project updates
Bug fix for Init::destroyContext, set TLS for NULL context, as necessary
2012-11-15 13:47:18 -06:00

58 lines
No EOL
1.6 KiB
Python

#!/usr/bin/python -B
formulae = {
# GL_GREMEDY_frame_terminator
'GL_GREMEDY_frame_terminator' : {
'entries' : [ 'glFrameTerminatorGREMEDY' ],
'impl' : [ '_context->frame->glFrameTerminatorGREMEDY(*_context);',
'RegalAssert(_context->info);',
'if (!_context->info->gl_gremedy_frame_terminator) return;' ]
}
}
formulaeGlobal = {
# wglSwapBuffers
'wglSwapBuffers' : {
'entries' : [ 'wglSwapBuffers' ],
'impl' : [ 'RegalContext *_context = REGAL_GET_CONTEXT();',
'if (_context && _context->frame)',
' _context->frame->wglSwapBuffers(*_context);'
]
},
# glXSwapBuffers
'glXSwapBuffers' : {
'entries' : [ 'glXSwapBuffers' ],
'impl' : [ 'RegalContext *_context = REGAL_GET_CONTEXT();',
'if (_context && _context->frame)',
' _context->frame->glXSwapBuffers(*_context);'
]
},
# eglSwapBuffers
'eglSwapBuffers' : {
'entries' : [ 'eglSwapBuffers' ],
'impl' : [ 'RegalContext *_context = REGAL_GET_CONTEXT();',
'if (_context && _context->frame)',
' _context->frame->eglSwapBuffers(*_context);'
]
},
# CGLFlushDrawable
'CGLFlushDrawable' : {
'entries' : [ 'CGLFlushDrawable' ],
'impl' : [ 'RegalContext *_context = REGAL_GET_CONTEXT();',
'if (_context && _context->frame)',
' _context->frame->CGLFlushDrawable(*_context);'
]
}
}