Revision r4427
LunaCON: fix 'screentext' command.
Browse logs with clarity: filter by type/year, search text, and inspect parsed commit details.
LunaCON: fix 'screentext' command.
In ext. PALETTE.DAT, store log2 of last alpha table index. Handle alpha in classic. The extended PALETTE.DAT format can now carry a trailing byte, called 'lognumalphatables'. If it is present, the engine assumes that alpha blending tables are loaded at blend indices 1 to 1<<lognumalphatables and handles rotatesprite's alpha and spriteext[].alpha accordingly. The ability to save this new byte is added to engine.lua:savePaletteDat() and the corresponding convenience functions in shadexfog.lua. Examples test/screentext.con and test/sprite_access.con are updated for demonstration purposes.
------------------------------------------------------------------------ r4428 | helixhorned | 2014-04-09 11:51:35 -0700 (Wed, 09 Apr 2014) | 8 lines CON: in rotatespritea and screentext, if alpha < 0, make -alpha denote blend. For convenience, orientation gets bit 1 (translucency) set automatically. Again, test/screentext.con is updated to show off this functionality (the code there assumes that additive blending tables are loaded at blend numbers 101 -- 132). BUILD_LUNATIC. ------------------------------------------------------------------------ r4427 | helixhorned | 2014-04-09 11:51:33 -0700 (Wed, 09 Apr 2014) | 1 line LunaCON: fix 'screentext' command. ------------------------------------------------------------------------ r4426 | helixhorned | 2014-04-09 11:51:31 -0700 (Wed, 09 Apr 2014) | 11 lines In ext. PALETTE.DAT, store log2 of last alpha table index. Handle alpha in classic. The extended PALETTE.DAT format can now carry a trailing byte, called 'lognumalphatables'. If it is present, the engine assumes that alpha blending tables are loaded at blend indices 1 to 1<<lognumalphatables and handles rotatesprite's alpha and spriteext[].alpha accordingly. The ability to save this new byte is added to engine.lua:savePaletteDat() and the corresponding convenience functions in shadexfog.lua. Examples test/screentext.con and test/sprite_access.con are updated for demonstration purposes. ------------------------------------------------------------------------ See http://svn.eduke32.com/listing.php?repname=eduke32 for more details.