SharpDX.DXGI.SwapChain.SetFullscreenState(SharpDX.Mathematics.Interop.RawBool, SharpDX.DXGI.Output)

Here are the examples of the csharp api class SharpDX.DXGI.SwapChain.SetFullscreenState(SharpDX.Mathematics.Interop.RawBool, SharpDX.DXGI.Output) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

1. Example

Project: tooll
Source File: FullScreenView.cs
View license
private void Stop()
        {
            if (_swapChain != null)
                _swapChain.SetFullscreenState(false, null);

            Close();
            CleanUp();
        }

2. Example

Project: Nine.Graphics
Source File: DXGraphicsHost.cs
View license
public void Dispose()
        {
            WaitForPrevFrame();

            swapChain.SetFullscreenState(false, null);

            foreach (var target in renderTargets)
                target.Dispose();

            CommandAllocator.Dispose();
            CommandQueue.Dispose();
            rtvHeap.Dispose();
            fence.Dispose();
            swapChain.Dispose();
            device.Dispose();

            window?.Dispose();
        }