示例#1
0
 /// <summary>
 /// Provides correct information about the window to the rest of the application
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void updateBoundsOnChange(object sender, EventArgs e)
 {
     zeroedWindow = new Rectangle(0, 0, Window.ClientBounds.Width, Window.ClientBounds.Height);
     center       = new Vector2(zeroedWindow.Width / 2, zeroedWindow.Height / 2);
     //set rendertargets
     RenderTargetManager.sizeRenderTargets();
 }