Example #1
0
        public virtual int MapDesktopSurface(
            out DXGI_MAPPED_RECT pLockedRect
            )
        {
            var fp = GetFunctionPointer(12);

            if (m_MapDesktopSurfaceFunc == null)
            {
                m_MapDesktopSurfaceFunc = (MapDesktopSurfaceFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(MapDesktopSurfaceFunc));
            }

            return(m_MapDesktopSurfaceFunc(m_ptr, out pLockedRect));
        }
Example #2
0
        public virtual int Map(
            out DXGI_MAPPED_RECT pLockedRect,
            uint MapFlags
            )
        {
            var fp = GetFunctionPointer(9);

            if (m_MapFunc == null)
            {
                m_MapFunc = (MapFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(MapFunc));
            }

            return(m_MapFunc(m_ptr, out pLockedRect, MapFlags));
        }