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

GetPass() public method

Retreives the Pass at the specified index.
public GetPass ( int index ) : Pass
index int Index of the Pass to retreive.
return Pass
		public Pass GetPass( int index )
		{
			Debug.Assert( index < _passes.Count, "index < passes.Count" );

			return (Pass)_passes[ index ];
		}

Same methods

Technique::GetPass ( string passName ) : Pass

Usage Example

Beispiel #1
0
        /// <summary>
        ///		Internal method for adding a solid renderable
        /// </summary>
        /// <param name="technique">Technique to use for this renderable.</param>
        /// <param name="renderable">Renderable to add to the queue.</param>
        /// <param name="noShadows">True to add to the no shadow group, false otherwise.</param>
        protected void AddSolidRenderable(Technique technique, IRenderable renderable, bool noShadows)
        {
            SortedList passMap = null;

            if (noShadows)
            {
                passMap = this.solidPassesNoShadow;
            }
            else
            {
                passMap = this.solidPasses;
            }

            for (var i = 0; i < technique.PassCount; i++)
            {
                var pass = technique.GetPass(i);

                if (passMap[pass] == null)
                {
                    // add a new list to hold renderables for this pass
                    passMap.Add(pass, new RenderableList());
                }

                // add to solid list for this pass
                var solidList = (RenderableList)passMap[pass];

                solidList.Add(renderable);
            }
        }
All Usage Examples Of Axiom.Graphics.Technique::GetPass