Esempio n. 1
0
        public override void RenderBackground(float Scale)
        {
            if (this.CurrentBackgroundIndex != this.PreviousBackgroundIndex)
            {
                switch (this.staticBackgrounds[CurrentBackgroundIndex].Mode)
                {
                case BackgroundTransitionMode.FadeIn:
                    Backgrounds.RenderBackground(this.staticBackgrounds[PreviousBackgroundIndex], 1.0f, Scale);
                    Renderer.SetAlphaFunc(AlphaFunction.Greater, 0.0f);
                    Backgrounds.RenderBackground(this.staticBackgrounds[CurrentBackgroundIndex], this.CurrentAlpha, Scale);
                    break;

                case BackgroundTransitionMode.FadeOut:
                    Backgrounds.RenderBackground(this.staticBackgrounds[CurrentBackgroundIndex], 1.0f, Scale);
                    Renderer.SetAlphaFunc(AlphaFunction.Greater, 0.0f);
                    Backgrounds.RenderBackground(this.staticBackgrounds[PreviousBackgroundIndex], this.CurrentAlpha, Scale);
                    break;
                }
            }
            else
            {
                LibRender.Backgrounds.RenderBackground(this.staticBackgrounds[CurrentBackgroundIndex], 1.0f, Scale);
            }
        }
Esempio n. 2
0
 public override void RenderBackground(float Scale)
 {
     Backgrounds.RenderBackground(this);
 }
Esempio n. 3
0
 public override void RenderBackground(float Alpha, float Scale)
 {
     Backgrounds.RenderBackground(this, Alpha, Scale);
 }
Esempio n. 4
0
 public override void RenderBackground(float Alpha, float Scale)
 {
     Backgrounds.RenderBackground(this.staticBackgrounds[CurrentBackgroundIndex], Alpha, Scale);
 }