idTech4.idGameConsole.Draw C# (CSharp) Method

Draw() public method

public Draw ( bool forceFullScreen ) : void
forceFullScreen bool
return void
		public void Draw(bool forceFullScreen)
		{
			float y = 0.0f;

			if(_charSetShader == null)
			{
				return;
			}

			if(forceFullScreen == true)
			{
				// if we are forced full screen because of a disconnect, 
				// we want the console closed when we go back to a session state
				Close();

				// we are however catching keyboard input
				_keyCatching = true;
			}

			Scroll();			
			UpdateDisplayFraction();

			if(forceFullScreen == true)
			{
				DrawSolidConsole(1.0f);
			}
			else if(_displayFraction > 0)
			{
				DrawSolidConsole(_displayFraction);
			}
			else
			{
				// only draw the notify lines if the developer cvar is set,
				// or we are a debug build
				if(idE.CvarSystem.GetBool("con_noPrint") == false)
				{
					DrawNotify();
				}
			}

			if(idE.CvarSystem.GetBool("com_showFPS") == true)
			{
				y = DrawFPS(0);
			}

			if(idE.CvarSystem.GetBool("com_showMemoryUsage") == true)
			{
				idConsole.Warning("TODO: y = SCR_DrawMemoryUsage(y);");
			}

			if(idE.CvarSystem.GetBool("com_showAsyncStats") == true)
			{
				idConsole.Warning("TODO: y = SCR_DrawAsyncStats(y);");
			}

			if(idE.CvarSystem.GetBool("com_showSoundDecoders") == true)
			{
				idConsole.Warning("TODO: y = SCR_DrawSoundDecoders(y);");
			}
		}