Axiom.RenderSystems.Xna.XnaHardwareOcclusionQuery.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()
		{
			// default to returning a high count.  will be set otherwise if the query runs
			LastFragmentCount = 100000;

			if ( device.GraphicsProfile == XFG.GraphicsProfile.HiDef && oQuery.IsComplete )
			{
				LastFragmentCount = oQuery.PixelCount;
			}

			return LastFragmentCount;
		}