public void Start() { if (this.ogreApplication != null) { return; } this.ogreApplication = new OgreApplication(this.renderPanel); }
protected override void OnHandleDestroyed(EventArgs e) { this.ogreApplication?.Shutdown(); this.ogreApplication = null; base.OnHandleDestroyed(e); }