regal/scripts/EmuPixelTransfer.py
Nigel Stewart 68a81df576 Add Regal::Emu::Xfer ES2-only texture conversion emulation layer.
DXT1 and DXT5 via squishlib, disabled by default.
Per emulation layer force flag REGAL_FORCE_EMU_FOO for Regal::Config.
build/regal.inc for GNU make list of sources and headers.
Updated VC projects.
Extend RegalUtil.h to ensure that REGAL_NO_ASSERT, REGAL_NO_PNG, REGAL_NO_SQUISH, REGAL_NO_TLS are always defined - 0 or 1.
Update boost (subset) to 1.53.0 release.
2013-03-11 10:58:27 -05:00

16 lines
526 B
Python

#!/usr/bin/python -B
xferFormulae = {
'PixelStore' : {
'entries' : [ 'glPixelStore(i|f)' ],
'prefix' : [ '_context->xfer->PixelStore( _context, ${arg0plus} );', ],
},
'ActiveTexture' : {
'entries' : [ 'glActiveTexture' ],
'prefix' : [ '_context->xfer->ShadowActiveTexture( ${arg0} );', ],
},
'TexImage2D' : {
'entries' : [ 'gl(Compressed|)Tex(Sub|)Image2D(ARB|EXT|)' ],
'impl' : [ '_context->xfer->${m1}Tex${m2}Image2D( _context, ${arg0plus} );', ],
}
}