Ejemplo n.º 1
0
        public void RenderSquare()
        {
            _imageBuffer.Clear();

            var bitmap = new Bitmap(PerlinOptions.Width, PerlinOptions.Height);
            var ro     = new RoBitmap(bitmap);

            textureBuilder.RenderSquare(ro, PerlinOptions, PerlinOptions.Width, PerlinOptions.Height);
            _imageBuffer.Add(ro.Image); // The idea was to pre generate a few maps
            Invalidate();
        }
Ejemplo n.º 2
0
        public void RenderPlanet()
        {
            _imageBuffer.Clear();

            var bitmap = new Bitmap(PerlinOptions.Width, PerlinOptions.Width);
            var ro     = new RoBitmap(bitmap);

            textureBuilder.RenderCircle(ro, PerlinOptions, PerlinOptions.Width);
            _imageBuffer.Add(ro.Image);
            Invalidate();
        }