Exemplo n.º 1
0
        public LockedRectangle LockRectangle(int level, D3DRect rect, LockFlags flags)
        {
            LockedRectangle lockedRect = new LockedRectangle();
            int             res        = Interop.Calli(comPointer, level, (IntPtr)(void *)&lockedRect, (IntPtr)(void *)&rect, (int)flags, (*(IntPtr **)comPointer)[19]);

            if (res < 0)
            {
                throw new SharpDXException(res);
            }
            return(lockedRect);
        }
Exemplo n.º 2
0
        public static LockedRectangle LockRectangle(IntPtr ptr, int level, D3DRect region, LockFlags flags)
        {
            LockedRectangle rect = new LockedRectangle();
            int             res  = Interop.Calli(ptr, level, (IntPtr)(void *)&rect, (IntPtr)(void *)&region, (int)flags, (*(IntPtr **)ptr)[19]);

            if (res < 0)
            {
                throw new SharpDXException(res);
            }
            return(rect);
        }