1
0
mirror of https://github.com/luanti-org/minetestmapper.git synced 2025-11-06 19:05:18 +01:00

First zoom implementation

This commit is contained in:
Florian Schüller
2016-07-06 21:45:38 +02:00
parent 2aa8619777
commit fd9b2af9fa
3 changed files with 52 additions and 23 deletions

View File

@@ -71,6 +71,7 @@ public:
void parseColorsFile(const std::string &fileName);
void setBackend(std::string backend);
void generate(const std::string &input, const std::string &output);
void setZoom(int zoom);
private:
void parseColorsStream(std::istream &in);
@@ -89,6 +90,7 @@ private:
void printUnknown();
int getImageX(int val) const;
int getImageY(int val) const;
void setZoomed(gdImagePtr image, int x, int y, int color);
private:
Color m_bgColor;
@@ -129,6 +131,7 @@ private:
int m_blockAirId;
int m_blockIgnoreId;
int m_zoom;
}; // class TileGenerator
#endif // TILEGENERATOR_HEADER