Axiom.RenderSystems.Xna.XnaHardwareOcclusionQuery.PullResults C# (CSharp) Method

PullResults() public method

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
return 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;
		}