Axiom.RenderSystems.DirectX9.D3DHardwareOcclusionQuery.PullResults C# (CSharp) Метод

PullResults() публичный Метод

Pulls the hardware occlusion query.
Waits until the query result is available; use HardwareOcclusionQuery.IsStillOutstanding if just want to test if the result is available.
public PullResults ( ) : int
Результат int
		public override int PullResults()
		{
			if ( isQueryResultStillOutstanding )
			{
				// default to returning a high count.  will be set otherwise if the query runs
				LastFragmentCount = 100000;

				if ( isSupported )
				{
					while ( !query.CheckStatus( true ) )
						;
					LastFragmentCount = query.GetData<int>( true );
				}
				isQueryResultStillOutstanding = false;
			}
			return LastFragmentCount;
		}