ClassiCube/ClassicalSharp/Rendering/MinimalEnvRenderer.cs

41 lines
923 B
C#
Raw Normal View History

2014-12-17 14:47:17 +11:00
using System;
namespace ClassicalSharp.Renderers {
/// <summary> Minimialistic environment renderer - only sets the clear colour to be sky colour.
/// (no fog, clouds, or proper overhead sky) </summary>
public class MinimalEnvRenderer : EnvRenderer {
2014-12-17 14:47:17 +11:00
public MinimalEnvRenderer( Game game ) {
this.game = game;
map = game.Map;
2014-12-17 14:47:17 +11:00
}
public override void Render( double deltaTime ) {
graphics.ClearColour( map.SkyCol );
2014-12-17 14:47:17 +11:00
}
public override void Init() {
base.Init();
graphics.Fog = false;
graphics.ClearColour( map.SkyCol );
2014-12-17 14:47:17 +11:00
}
public override void OnNewMap( object sender, EventArgs e ) {
}
public override void OnNewMapLoaded( object sender, EventArgs e ) {
graphics.ClearColour( map.SkyCol );
2014-12-17 14:47:17 +11:00
}
protected override void CloudsColourChanged() {
}
protected override void FogColourChanged() {
}
protected override void SkyColourChanged() {
}
}
}