internal void Connect() { _renderer = new CubeRenderer(); // Restart timer after renderer has finished initializing. _timer.Reset(); }
internal void Connect(DrawingSurfaceRuntimeHost host) { _renderer = new CubeRenderer(); _renderer.Initialize(); _renderer.UpdateForWindowSizeChange((float)WindowBounds.Width, (float)WindowBounds.Height); _renderer.UpdateForRenderResolutionChange((float)_renderResolution.Width, (float)_renderResolution.Height); // Restart timer after renderer has finished initializing. _timer.Reset(); }
internal void Disconnect() { _renderer = null; }