Axiom.Demos.TechDemo.ShowDebugOverlay C# (CSharp) Method

ShowDebugOverlay() protected method

Shows the debug overlay, which displays performance statistics.
protected ShowDebugOverlay ( bool show ) : void
show bool
return void
		protected void ShowDebugOverlay( bool show )
		{
			// gets a reference to the default overlay
			Overlay o = OverlayManager.Instance.GetByName( "Core/DebugOverlay" );

			if ( o == null )
			{
				LogManager.Instance.Write( string.Format( "Could not find overlay named '{0}'.", "Core/DebugOverlay" ) );
				return;
			}

			if ( show )
			{
				o.Show();
			}
			else
			{
				o.Hide();
			}
		}