Axiom.RenderSystems.OpenGL.GLHardwareOcclusionQuery.PullResults C# (CSharp) Méthode

PullResults() public méthode

public PullResults ( ) : int
Résultat int
		public override int PullResults()
		{
			// note: flush doesn't apply to GL

			// default to returning a high count.  will be set otherwise if the query runs
			lastFragmentCount = 100000;

			if ( isSupportedNV )
			{
				Gl.glGetOcclusionQueryivNV( this.queryId, Gl.GL_PIXEL_COUNT_NV, out lastFragmentCount );
			}
			else if ( isSupportedARB )
			{
				Gl.glGetQueryObjectivARB( this.queryId, Gl.GL_QUERY_RESULT_ARB, out lastFragmentCount );
			}

			return lastFragmentCount;
		}