예제 #1
0
        // ** 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;
            }
        }
예제 #2
0
파일: Heatmap.cs 프로젝트: Sukasa/SeeSharp
 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];
 }