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); }
void OnRaiseResizeEvent(ResizeEventArgs e) { EventHandler <ResizeEventArgs> handler = RaiseResizeEvent; if (handler != null) { handler(this, e); } }