idTech4.idSession.DrawWipeModel C# (CSharp) Method

DrawWipeModel() private method

Draw the fade material over everything that has been drawn.
private DrawWipeModel ( ) : void
return void
		private void DrawWipeModel()
		{
			int latchedTic = idE.System.TicNumber;

			if(_wipeStartTic >= _wipeStopTic)
			{
				return;
			}

			if((_wipeHold == false) && (latchedTic >= _wipeStopTic))
			{
				return;
			}

			float fade = (float) ((latchedTic - _wipeStartTic) / (_wipeStopTic - _wipeStartTic));

			idE.RenderSystem.Color = new Vector4(1, 1, 1, fade);
			idE.RenderSystem.DrawStretchPicture(0, 0, 640, 480, 0, 0, 1, 1, _wipeMaterial);
		}