mirror of
https://github.com/minetest/minetestmapper.git
synced 2024-11-16 07:30:28 +01:00
Write metadata textfile with tile information, so a separate utility can easily generate a zoom pyramid.
This commit is contained in:
parent
aa0506224e
commit
4752832fe8
|
@ -274,6 +274,18 @@ void TileGenerator::generate(const std::string &input, const std::string &output
|
|||
int trueXMin = m_xMin;
|
||||
int trueZMin = m_zMin;
|
||||
|
||||
std::ostringstream mfn;
|
||||
mfn << "metadata_" << output << ".txt";
|
||||
std::ofstream mf;
|
||||
|
||||
mf.open(mfn.str());
|
||||
|
||||
mf << "BaseName: " << output << std::endl;
|
||||
mf << "NumTiles: " << m_numTilesX << " " << m_numTilesY << std::endl;
|
||||
mf << "MinTile: " << minTileX << " " << minTileY << std::endl;
|
||||
mf << "TileSize: " << (m_tileW*16) << " " << (m_tileH*16) << std::endl;
|
||||
mf.close();
|
||||
|
||||
for (int x = 0; x < m_numTilesX; x++)
|
||||
{
|
||||
for (int y = 0; y < m_numTilesY; y++)
|
||||
|
|
Loading…
Reference in New Issue
Block a user