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);
		}