Axiom.Samples.SampleContext.WindowResized C# (CSharp) Method

WindowResized() public method

Processes window size change event. Adjusts mouse's region to match that of the window. You could also override this method to prevent resizing.
public WindowResized ( Axiom.Graphics.RenderWindow rw ) : void
rw Axiom.Graphics.RenderWindow
return void
		public virtual void WindowResized( RenderWindow rw )
		{
			// manually call sample callback to ensure correct order
			if ( CurrentSample != null && !this.IsSamplePaused )
				CurrentSample.WindowResized( rw );
			if ( Mouse != null )
			{
				SIS.MouseState ms = this.Mouse.MouseState;
				ms.Width = rw.Width;
				ms.Height = rw.Height;
			}
		}