Пример #1
0
        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);
        }
Пример #2
0
        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);
        }
Пример #3
0
 public void OnResize(VeldridSurface s, ResizeEventArgs e) => s?.OnResize(e);