idTech4.Game.idEntity.Present C# (CSharp) Method

Present() public method

Present is called to allow entities to generate refEntities, lights, etc for the renderer.
public Present ( ) : void
return void
		public virtual void Present()
		{
			if(this.Disposed == true)
			{
				throw new ObjectDisposedException(this.GetType().Name);
			}

			// TODO:
			/*if ( !gameLocal.isNewFrame ) {
				return;
			}*/

			// don't present to the renderer if the entity hasn't changed
			/*if ( !( thinkFlags & TH_UPDATEVISUALS ) ) {
				return;
			}
			BecomeInactive( TH_UPDATEVISUALS );*/

			// camera target for remote render views
			/*if ( cameraTarget && gameLocal.InPlayerPVS( this ) ) {
				renderEntity.remoteRenderView = cameraTarget->GetRenderView();
			}*/

			// if set to invisible, skip
			if((_renderEntity.Model == null) || (this.IsHidden == true))
			{
				return;
			}

			// add to refresh list
			if(_renderModel == null)
			{
				_renderModel = idR.Game.CurrentRenderWorld.AddEntityDefinition(_renderEntity);
			}
			else
			{
				idR.Game.CurrentRenderWorld.UpdateEntityDefinition(_renderModel, _renderEntity);
			}
		}