public Scene(FormsHost host, FrameworkElement overlay, ContextStateProcessor context, EngineNotificator notify) { this.host = host; this.overlay = overlay; host.HandleCreated += OnHandleCreated; host.Unloaded += OnUnloaded; this.Context = context; this.notify = notify; input = new CurrentInputObserver(Application.Current.MainWindow, new WPFInputPublisher(Application.Current.MainWindow)); }
public GameWindow(WinFormsD3DControl win, CurrentInputObserver input) { this.win = win; Width = (float)Application.Current.MainWindow.Width; Height = (float)Application.Current.MainWindow.Height; InputManager = new InputManager(input); //win.Resize += OnResize; Application.Current.MainWindow.SizeChanged += OnSizeChanged; }