Axiom.SceneManagers.PortalConnected.PCZFrustum.GetUnusedCullingPlane C# (CSharp) Method

GetUnusedCullingPlane() public method

public GetUnusedCullingPlane ( ) : PCPlane
return PCPlane
		public PCPlane GetUnusedCullingPlane()
		{
			PCPlane plane = null;
			if ( mCullingPlaneReservoir.Count > 0 )
			{
				plane = mCullingPlaneReservoir[ 0 ];
				mCullingPlaneReservoir.RemoveAt( 0 );
				return plane;
			}
			// no available planes! create one
			plane = new PCPlane();
			return plane;
		}