What is the best way to invert the destination pixel color when drawing. Is this possible?
Off hand,
glEnable(GL_BLEND);
glBlendFunc(GL_ONE_MINUS_DST_COLOR, GL_ZERO);
Or
glLogicOp(GL_INVERT);
glEnable(GL_COLOR_LOGIC_OP);
Thanks for the quick responses. I could have sworn I did the blend like that yesterday, but seems to work great now. The logical op works great too. Any idea if there is much of a speed difference?
LogicOp is probably much slower on most hardware.