idTech4.idSystem.PrintLoadingMessage C# (CSharp) Method

PrintLoadingMessage() private method

private PrintLoadingMessage ( string msg ) : void
msg string
return void
		private void PrintLoadingMessage(string msg)
		{
			if(idE.RenderSystem.IsRunning == false)
			{
				return;
			}

			idE.RenderSystem.BeginFrame(idE.RenderSystem.ScreenWidth, idE.RenderSystem.ScreenHeight);
			idE.RenderSystem.DrawStretchPicture(0, 0, idE.VirtualScreenWidth, idE.VirtualScreenHeight, 0, 0, 1, 1, idE.DeclManager.FindMaterial("splashScreen"));
			idE.RenderSystem.DrawSmallString((640 - msg.Length * idE.SmallCharacterWidth) / 2, 410, msg, new Vector4(0.0f, 0.81f, 0.94f, 1.0f), true, idE.DeclManager.FindMaterial("textures/bigchars"));
			idE.RenderSystem.EndFrame();

			// we have to manually present otherwise nothing gets shown in xna
			// this is usually done by Draw() but we're not at that stage yet
			if(_fullyInitialized == false)
			{
				idE.RenderSystem.Present();
			}
		}