private void SetRenderer(IDataRenderer renderer)
        {
            Clear();
            //if (_renderer != null && _renderer != renderer)
            //    _renderer.OnUpdateRequest -= RendererOnUpdateRequest;

            _renderer = renderer;
            renderer.Resize(_glControl.ClientSize);

            UpdateRendererControls();
            UpdateRendererTools();

            _renderer.OnUpdateRequest       += RendererOnUpdateRequest;
            _renderer.UpdateControlsRequest += UpdateRendererControls;
        }
 private void GlControlOnResize(object sender, EventArgs eventArgs)
 {
     GL.Viewport(Point.Empty, _glControl.Size);
     _renderer?.Resize(_glControl.ClientSize);
 }
 public void Resize(Size size)
 {
     _outputDataRenderer?.Resize(size);
 }