Engines/FlatRedBallXNA/FlatRedBall/Graphics/GenericEffect.cs
/// <summary>
/// Builds the precedence table, determines 
/// the effect
/// </summary>
Builds the precedence table, determines
the effect
Builds the precedence table determines the effect
public Effect BuildEffect()
        {         
            if(mPrecedenceTable.Count == 0 )
            {
                mPrecedenceTable.Add("BasicEffect", 10.0f);
                mPrecedenceTable.Add("DualTextureEffect", 0.25f);
                mPrecedenceTable.Add("EnvironmentMapEffect", 0.5f);
                mPrecedenceTable.Add("SkinnedEffect", 1.0f);
            }
            DetermineEffect(true);
            if( this.LightingEnabled )
            {
                EnableDefaultLighting();
            }
            return GetActiveEffect();
        }
public Effect BuildEffect ( ) { if ( mPrecedenceTable . Count == 0 ) { mPrecedenceTable . Add ( " " , 10.0f ) ; mPrecedenceTable . Add ( " " , 0.25f ) ; mPrecedenceTable . Add ( " " , 0.5f ) ; mPrecedenceTable . Add ( " " , 1.0f ) ; } DetermineEffect ( true ) ; if ( this . LightingEnabled ) { EnableDefaultLighting ( ) ; } return GetActiveEffect ( ) ; }
Builds the precedence table, determines
the effect
Builds the precedence table determines the effect