// private void CreateWindow(GameWindowArgs args) { // Create window _window = new GameWindow(args); // _input.SetWindow(_window); _graphics.SetRenderTarget(_window.Target); // End game when the window closes _window.Shut += delegate { End(); }; }