public SingleViewPresenter CreateDafultPresenter() { var p = new SingleViewPresenter(); _presenter = p; _isDefault = true; return(p); }
/// <summary> /// /// </summary> /// <param name="presenter">The region of the Screen asociated with this HitTestService</param> public HitTestService(GraphicPresenter presenter, Size backBufferSize) { this._presenter = presenter; this._backBufferSize = backBufferSize; _presenter.SizeChanged += _presenter_SizeChanged; Initialize(); }
public SwapChainPresenter CreateSwapChainPresenter(Format backBufferFormat = Format.R8G8B8A8_UNORM_SRGB, Format depthStencilFormat = Format.D24_UNORM_S8_UINT, Multisampling msaa = default(Multisampling)) { var p = new SwapChainPresenter(new WindowContext { BackBufferWidth = Width, BackBufferHeight = Height, BackBufferFormat = backBufferFormat, DepthStencilFormat = depthStencilFormat, Sampling = msaa, WindowHandle = Handle }); _presenter = p; return(p); }