Engines/FlatRedBallXNA/FlatRedBall/Graphics/GenericEffect.cs
/// <summary>
/// Pass common information to the graphics device
/// </summary>
Pass common information to the graphics device
Pass common information to the graphics device
private void SetCommonParameters()
        {
#if !SILVERLIGHT
            if(mTextureAddressMode != FlatRedBall.Graphics.Renderer.TextureAddressMode)
                FlatRedBall.Graphics.Renderer.TextureAddressMode = mTextureAddressMode;
            FlatRedBallServices.GraphicsDevice.Textures[1] = null;
            FlatRedBall.Graphics.Renderer.Texture = this.Texture;
#endif
        }
private void SetCommonParameters ( ) { if ! SILVERLIGHT if ( mTextureAddressMode != FlatRedBall . Graphics . Renderer . TextureAddressMode ) FlatRedBall . Graphics . Renderer . TextureAddressMode = mTextureAddressMode ; FlatRedBallServices . GraphicsDevice . Textures [ 1 ] = null ; FlatRedBall . Graphics . Renderer . Texture = this . Texture ; endif }
Pass common information to the graphics device
Pass common information to the graphics device
//We need to ensure that the second texture gets turned off, // if we need it, it will be set again when Effect.Apply is called.