ARCed.Controls.GraphicsDeviceService.ResetDevice C# (CSharp) Метод

ResetDevice() публичный Метод

Resets the graphics device to whichever is bigger out of the specified resolution or its current size. This behavior means the device will demand-grow to the largest of all its GraphicsDeviceControl clients.
public ResetDevice ( int width, int height ) : void
width int
height int
Результат void
		public void ResetDevice(int width, int height)
		{
			if (this.DeviceResetting != null)
				this.DeviceResetting(this, EventArgs.Empty);

			this.parameters.BackBufferWidth = Math.Max(this.parameters.BackBufferWidth, width);
			this.parameters.BackBufferHeight = Math.Max(this.parameters.BackBufferHeight, height);

			this.graphicsDevice.Reset(this.parameters);

			if (this.DeviceReset != null)
				this.DeviceReset(this, EventArgs.Empty);
		}