1
0
mirror of https://github.com/luanti-org/minetestmapper.git synced 2025-10-20 20:05:30 +02:00

Add a --tilesize option.

The produces tiled output way faster than repeatedly using --geometry
because it only reads the databse once.
This commit is contained in:
Martijn Versteegh
2018-11-14 12:34:52 +01:00
parent c382c2c3ba
commit bd0c140bfc
7 changed files with 164 additions and 25 deletions

View File

@@ -127,3 +127,9 @@ void Image::save(const std::string &filename)
fclose(f);
#endif
}
void Image::fill(Color &c)
{
gdImageFilledRectangle(m_image, 0, 0, m_width - 1 , m_height - 1, color2int(c));
}