protected virtual void OnResize(ResizeEventArgs e) { if (e == null) { throw new ArgumentNullException(nameof(e)); } Swapchain?.Resize((uint)e.Width, (uint)e.Height); Properties.TriggerEvent(ResizeEvent, this, e); }
protected virtual void OnResize(ResizeEventArgs e) { if (Swapchain != null && e != null) { Swapchain.Resize((uint)e.Width, (uint)e.Height); } DpiFactor = (float)RenderWidth / (float)Width; Properties.TriggerEvent(ResizeEvent, this, e); }
public void OnResize(VeldridSurface s, ResizeEventArgs e) => s?.OnResize(e);