public DX11GUI(SharpDX.DXGI.SwapChain _swapChain) { try { Device device = _swapChain.GetDevice <Device>(); graphics = GraphicsDevice.New(device); sprb = new SpriteBatch(graphics); blState = SharpDX.Toolkit.Graphics.BlendState.New( graphics, BlendOption.SourceAlpha, BlendOption.InverseSourceAlpha, BlendOperation.Add, BlendOption.One, BlendOption.Zero, BlendOperation.Add); } catch (Exception ex) { initcrash = true; Core.Log("DX11 GUI initcrash: " + ex.Message); } }
public bool Initialise(SharpDX.DXGI.SwapChain swapChain) { return(Initialise(swapChain.GetDevice <Device>(), swapChain.GetBackBuffer <Texture2D>(0))); }
public Boolean Initialize(SharpDX.DXGI.SwapChain swapChain) { return(this.Initialize(swapChain.GetDevice <Device>(), swapChain.GetBackBuffer <Texture2D>(0))); }