XOR raster operation in OpenGL

I’d like to know if Xor operation is possible using glBlendFunc.
If so, what parameter is relevant for Xor.

No, XOR is not allowed for blend functions. It’s used for logical operations, but those override blending.

Thank you very much for your kind reply. I will try LogicOp(GL_XOR). As I understand, LogicOp is applicable only to color index.
Is there a simple method to apply LogicOp for RGBA color model instead of index model?

You misunderstand. glLogicOp works on any normalised or integer framebuffer format. It doesn’t work with floating-point framebuffers. Logic operations are still available in OpenGL 3+ core profile, which doesn’t support colour indices.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.