// ** Initialization and control public void Configure(RenderConfiguration Configuration) { _Config = Configuration; _ColourPalette = _Config.Palette; _Metrics = _Config.Metrics; _Chunks = Configuration.Chunks; if (_Config.AdvancedRenderOptions.Exists(x => x.Key.ToLower() == "mode")) { switch (_Config.AdvancedRenderOptions.Find(x => x.Key.ToLower() == "mode").Value) { case "c": _RenderStartY = GetStartRenderYCave; break; case "C": _RenderStartY = GetStartRenderYCaveAlternate; break; default: _RenderStartY = GetStartRenderYNormal; break; } } else { _RenderStartY = GetStartRenderYNormal; } }
public Heatmap(RenderConfiguration Config, Granularity Granularity) { _Granularity = Granularity; _Width = (((Config.SubregionChunks.Width + 1) << 4) >> (int)_Granularity); _Height = (((Config.SubregionChunks.Height + 1) << 4) >> (int)_Granularity); _Map = new int[_Height * _Width]; }