示例#1
0
        public virtual int GetEffectInvalidRectangleCount(
            ID2D1Effect effect,
            out uint rectangleCount
            )
        {
            var fp = GetFunctionPointer(88);

            if (m_GetEffectInvalidRectangleCountFunc == null)
            {
                m_GetEffectInvalidRectangleCountFunc = (GetEffectInvalidRectangleCountFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(GetEffectInvalidRectangleCountFunc));
            }

            return(m_GetEffectInvalidRectangleCountFunc(m_ptr, effect != null ? effect.Ptr : IntPtr.Zero, out rectangleCount));
        }
示例#2
0
        public virtual int CreateEffect(
            ref Guid effectId,
            out ID2D1Effect effect
            )
        {
            var fp = GetFunctionPointer(63);

            if (m_CreateEffectFunc == null)
            {
                m_CreateEffectFunc = (CreateEffectFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(CreateEffectFunc));
            }
            effect = new ID2D1Effect();
            return(m_CreateEffectFunc(m_ptr, ref effectId, out effect.PtrForNew));
        }
示例#3
0
        public virtual int CreateTransformNodeFromEffect(
            ID2D1Effect effect,
            out ID2D1TransformNode transformNode
            )
        {
            var fp = GetFunctionPointer(6);

            if (m_CreateTransformNodeFromEffectFunc == null)
            {
                m_CreateTransformNodeFromEffectFunc = (CreateTransformNodeFromEffectFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(CreateTransformNodeFromEffectFunc));
            }
            transformNode = new ID2D1TransformNode();
            return(m_CreateTransformNodeFromEffectFunc(m_ptr, effect != null ? effect.Ptr : IntPtr.Zero, out transformNode.PtrForNew));
        }
示例#4
0
        public virtual int GetEffectInvalidRectangles(
            ID2D1Effect effect,
            out System.Numerics.Vector4 rectangles,
            uint rectanglesCount
            )
        {
            var fp = GetFunctionPointer(89);

            if (m_GetEffectInvalidRectanglesFunc == null)
            {
                m_GetEffectInvalidRectanglesFunc = (GetEffectInvalidRectanglesFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(GetEffectInvalidRectanglesFunc));
            }

            return(m_GetEffectInvalidRectanglesFunc(m_ptr, effect != null ? effect.Ptr : IntPtr.Zero, out rectangles, rectanglesCount));
        }
示例#5
0
        public virtual int InvalidateEffectInputRectangle(
            ID2D1Effect effect,
            uint input,
            ref System.Numerics.Vector4 inputRectangle
            )
        {
            var fp = GetFunctionPointer(87);

            if (m_InvalidateEffectInputRectangleFunc == null)
            {
                m_InvalidateEffectInputRectangleFunc = (InvalidateEffectInputRectangleFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(InvalidateEffectInputRectangleFunc));
            }

            return(m_InvalidateEffectInputRectangleFunc(m_ptr, effect != null ? effect.Ptr : IntPtr.Zero, input, ref inputRectangle));
        }
示例#6
0
        public virtual int GetEffectRequiredInputRectangles(
            ID2D1Effect renderEffect,
            ref System.Numerics.Vector4 renderImageRectangle,
            ref D2D1_EFFECT_INPUT_DESCRIPTION inputDescriptions,
            out System.Numerics.Vector4 requiredInputRects,
            uint inputCount
            )
        {
            var fp = GetFunctionPointer(90);

            if (m_GetEffectRequiredInputRectanglesFunc == null)
            {
                m_GetEffectRequiredInputRectanglesFunc = (GetEffectRequiredInputRectanglesFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(GetEffectRequiredInputRectanglesFunc));
            }

            return(m_GetEffectRequiredInputRectanglesFunc(m_ptr, renderEffect != null ? renderEffect.Ptr : IntPtr.Zero, ref renderImageRectangle, ref inputDescriptions, out requiredInputRects, inputCount));
        }