BlendEquationSeparate() private method

private BlendEquationSeparate ( UInt32 modeRGB, UInt32 modeAlpha ) : void
modeRGB System.UInt32
modeAlpha System.UInt32
return void
Example #1
0
        public void Enable()
        {
            GL.ColorMask(desc.renderTargetWriteMaskR, desc.renderTargetWriteMaskG, desc.renderTargetWriteMaskB, desc.renderTargetWriteMaskA);

            if (desc.blendEnable)
            {
                GL.Enable(GL.BLEND);
                if (desc.blendEnableAlpha)
                {
                    GL.BlendEquationSeparate(desc.blendOp, desc.blendOpAlpha);
                    GL.BlendFuncSeparate(desc.srcBlend, desc.dstBlend, desc.srcBlendAlpha, desc.dstBlendAlpha);
                }
                else
                {
                    GL.BlendEquation(desc.blendOp);
                    GL.BlendFunc(desc.srcBlend, desc.dstBlend);
                }
            }
            else
            {
                GL.Disable(GL.BLEND);
            }

                        #if DEBUG
            Video.checkForError();
                        #endif
        }