Esempio n. 1
0
        /// <summary>
        /// Creates a <see cref="RenderTarget"/> compatible with DX9 and WPF
        /// </summary>
        /// <param name="width"></param>
        /// <param name="height"></param>
        public RenderTarget CreateSwapChainRenderTarget(string name, IntPtr hwnd)
        {
            _RenderTarget renderTarget = Device.CreateSwapChainRenderTarget(name, (int)hwnd);

            return(RenderTargets.Create(new StringBuilder("DXBackBuffer"), renderTarget));
        }
Esempio n. 2
0
        /// <summary>
        /// Creates a <see cref="RenderTarget"/> compatible with DX9 and WPF
        /// </summary>
        /// <param name="width"></param>
        /// <param name="height"></param>
        public RenderTarget CreateDX9SharedRenderTarget(string name, int width, int height)
        {
            _RenderTarget renderTarget = Device.CreateDX9SharedRenderTarget(name, width, height);

            return(RenderTargets.Create(new StringBuilder(name), renderTarget));
        }