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); } }
public override void RenderBackground(float Scale) { Backgrounds.RenderBackground(this); }
public override void RenderBackground(float Alpha, float Scale) { Backgrounds.RenderBackground(this, Alpha, Scale); }
public override void RenderBackground(float Alpha, float Scale) { Backgrounds.RenderBackground(this.staticBackgrounds[CurrentBackgroundIndex], Alpha, Scale); }