Exemple #1
0
 void OnScreenResize(object sender, ResizeEventArgs e)
 {
     _size = e.Size.Image;
     texture.Resize(e.Size.Image.x, e.Size.Image.y);
     monitor.SetSize(e.Size);
     cam.SetSize(e.Size);
 }
Exemple #2
0
        void OnRaiseResizeEvent(ResizeEventArgs e)
        {
            EventHandler <ResizeEventArgs> handler = RaiseResizeEvent;

            if (handler != null)
            {
                handler(this, e);
            }
        }