RenderBackground() static private method

static private RenderBackground ( BackgroundManager Object ) : void
Object BackgroundManager
return void
Exemplo n.º 1
0
            internal override void RenderBackground(float Scale)
            {
                if (this.CurrentBackgroundIndex != this.PreviousBackgroundIndex)
                {
                    switch (this.Backgrounds[CurrentBackgroundIndex].Mode)
                    {
                    case BackgroundTransitionMode.FadeIn:
                        Renderer.RenderBackground(this.Backgrounds[PreviousBackgroundIndex], 1.0f, Scale);
                        Renderer.SetAlphaFunc(AlphaFunction.Greater, 0.0f);
                        Renderer.RenderBackground(this.Backgrounds[CurrentBackgroundIndex], this.CurrentAlpha, Scale);
                        break;

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