Axiom.RenderSystems.Xna.XnaRenderWindow.Update C# (CSharp) Method

Update() public method

public Update ( bool swapBuffers ) : void
swapBuffers bool
return void
		public override void Update( bool swapBuffers )
		{
			XnaRenderSystem rs = (XnaRenderSystem)Root.Instance.RenderSystem;

			// access device through driver
			XFG.GraphicsDevice device = _driver.XnaDevice;

			switch ( device.GraphicsDeviceStatus )
			{
				case XFG.GraphicsDeviceStatus.Lost:
					System.Threading.Thread.Sleep( 50 );
					return;

				case XFG.GraphicsDeviceStatus.NotReset:
					break;
			}

			base.Update( swapBuffers );
		}