public WorldSurfaceRenderer(
            uint samplesPerTile,
            double distanceAboveSeaLevel,
            WorldWind.World parentWorld
            )
        {
            m_SamplesPerTile        = samplesPerTile;
            m_ParentWorld           = parentWorld;
            m_DistanceAboveSeaLevel = distanceAboveSeaLevel;

            double tileSize = 180.0f / m_NumberRootTilesHigh;

            m_RootSurfaceTiles = new SurfaceTile[m_NumberRootTilesHigh * (m_NumberRootTilesHigh * 2)];
            for (int i = 0; i < m_NumberRootTilesHigh; i++)
            {
                for (int j = 0; j < m_NumberRootTilesHigh * 2; j++)
                {
                    m_RootSurfaceTiles[i * m_NumberRootTilesHigh * 2 + j] = new SurfaceTile(
                        (i + 1) * tileSize - 90.0f,
                        i * tileSize - 90.0f,
                        j * tileSize - 180.0f,
                        (j + 1) * tileSize - 180.0f,
                        0,
                        this);
                }
            }
        }
Exemplo n.º 2
0
		public WorldSurfaceRenderer(
			uint samplesPerTile,
			double distanceAboveSeaLevel,
			WorldWind.World parentWorld
			)
		{
			m_SamplesPerTile = samplesPerTile;
			m_ParentWorld = parentWorld;
			m_DistanceAboveSeaLevel = distanceAboveSeaLevel;

			double tileSize = 180.0f / m_NumberRootTilesHigh;

			m_RootSurfaceTiles = new SurfaceTile[m_NumberRootTilesHigh * (m_NumberRootTilesHigh * 2)];
			for(int i = 0; i < m_NumberRootTilesHigh; i++)
			{
				for(int j = 0; j < m_NumberRootTilesHigh * 2; j++)
				{
					m_RootSurfaceTiles[i * m_NumberRootTilesHigh * 2 + j] = new SurfaceTile(
						(i + 1) * tileSize - 90.0f,
						i * tileSize - 90.0f,
						j * tileSize - 180.0f,
						(j + 1) * tileSize - 180.0f,
						0,
						this);

				}
			}
		}