Axiom.Graphics.Technique.RemoveAllPasses C# (CSharp) Method

RemoveAllPasses() public method

Removes all passes from this technique and queues them for deletion.
public RemoveAllPasses ( ) : void
return void
		public void RemoveAllPasses()
		{
			// load each pass
			for ( int i = 0; i < _passes.Count; i++ )
			{
				Pass pass = (Pass)_passes[ i ];
				pass.QueueForDeletion();
			}

			_passes.Clear();
		}

Usage Example

        /// <summary>
        ///		Copy the details of this Technique to another.
        /// </summary>
        /// <param name="target"></param>
        public void CopyTo(Technique target)
        {
            target.name        = name;
            target.isSupported = isSupported;
            target.lodIndex    = lodIndex;
            target.schemeIndex = schemeIndex;

            target.RemoveAllPasses();

            // clone each pass and add that to the new technique
            for (int i = 0; i < passes.Count; i++)
            {
                Pass pass    = (Pass)passes[i];
                Pass newPass = pass.Clone(target, pass.Index);
                target.passes.Add(newPass);
            }

            // Compile for categorised illumination on demand
            target.ClearIlluminationPasses();
            target.illuminationPassesCompilationPhase = IlluminationPassesState.NotCompiled;
        }
All Usage Examples Of Axiom.Graphics.Technique::RemoveAllPasses