ResetRendering() public static method

Resets the render target and render rect to the size of the WindowWidth and WindowHeight.
public static ResetRendering ( ) : void
return void
Example #1
0
        private void Window_ClientSizeChanged(object sender, EventArgs e)
        {
            if (!resizeBusy)
            {
                if (DisplayOptions != WindowResizeOptions.Stretch)
                {
                    GraphicsDeviceManager.PreferredBackBufferWidth  = Window.ClientBounds.Width;
                    GraphicsDeviceManager.PreferredBackBufferHeight = Window.ClientBounds.Height;

                    resizeBusy = true;
                    GraphicsDeviceManager.ApplyChanges();
                    resizeBusy = false;
                }
            }

            Engine.ResetRendering();
        }