Exemplo n.º 1
0
        public void BlendFunc(OpenGL.BlendingFactorSrc /*GLenum*/ sfactor, OpenGL.BlendingFactorDest /*GLenum*/ dfactor)
        {
            var callIsRedundant = d_blendFuncSeperateParams.Equal((int)sfactor, (int)dfactor);

            if (!callIsRedundant)
            {
                OpenGL.GL.BlendFunc(sfactor, dfactor);
            }
        }
Exemplo n.º 2
0
        public void BlendFuncSeparate(OpenGL.BlendingFactorSrc /*GLenum*/ sfactorRGB,
                                      OpenGL.BlendingFactorDest /*GLenum*/ dfactorRGB,
                                      OpenGL.BlendingFactorSrc /*GLenum*/ sfactorAlpha,
                                      OpenGL.BlendingFactorDest /*GLenum*/ dfactorAlpha)
        {
            var callIsRedundant = d_blendFuncSeperateParams.Equal((int)sfactorRGB, (int)dfactorRGB,
                                                                  (int)sfactorAlpha, (int)dfactorAlpha);

            if (!callIsRedundant)
            {
                OpenGL.GL.BlendFuncSeparate(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha);
            }
        }