Exemplo n.º 1
0
        void DoSubdivide()
        {
            northEast = new QuadtreeTextureCompression(boundary.NorthEast, map, sourceImage);
            northWest = new QuadtreeTextureCompression(boundary.NorthWest, map, sourceImage);

            southEast = new QuadtreeTextureCompression(boundary.SouthEast, map, sourceImage);
            southWest = new QuadtreeTextureCompression(boundary.SouthWest, map, sourceImage);

            divided = true;

            northEast.Subdivide();
            northWest.Subdivide();
            southEast.Subdivide();
            southWest.Subdivide();
        }
Exemplo n.º 2
0
        private void Subdivide()
        {
            quadtree.Subdivide();

            quadtree.Show(quadtreeTexture);
        }