Re: [AD] set_mask_color |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
But now, I guess a proper solution would be an mmx or the likes version, which has the mask color in some extra register, or something like that. Or is cached memory as fast as constants/registers?
for a really really tight loop, like masked blit, keeping it in a register would be a good idea.
it does sound like a job for MMX. look at /alg_4_1_16/src/i386/iblit32.s line 221 movl $MASK_COLOR_32, %eax just change the #define MASK_COLOR_32 to volatile unsigned int MASK_COLOR_32 = 0xff00ff; then in the allegro.h somewhere but extern unsigned int MASK_COLOR_32; and the user can then set which ever colour they want.
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |