fix merge conflicts
This commit is contained in:
@@ -1228,11 +1228,11 @@ QImage MapTile::getAlphamapImage(std::string const& filename)
|
||||
return std::move(image);
|
||||
}
|
||||
|
||||
void MapTile::setHeightmapImage(QImage const& baseimage, float multiplier, int mode) // image
|
||||
void MapTile::setHeightmapImage(QImage const& baseimage, float multiplier, int mode, bool tiledEdges) // image
|
||||
{
|
||||
// convert to RGBA64 to properly load all type of images (grayscales don't load properly otherwise)
|
||||
// auto image = baseimage.convertToFormat(QImage::Format_RGBA64);
|
||||
auto image = baseimage.convertToFormat(QImage::Format_Grayscale16);
|
||||
auto image = baseimage.convertToFormat(QImage::Format_RGBA64);
|
||||
// auto image = baseimage.convertToFormat(QImage::Format_Grayscale16);
|
||||
|
||||
unsigned const LONG{9}, SHORT{8}, SUM{LONG + SHORT}, DSUM{SUM * 2};
|
||||
for (int k = 0; k < 16; ++k)
|
||||
@@ -1454,7 +1454,7 @@ QImage MapTile::getVertexColorsImage()
|
||||
return std::move(image);
|
||||
}
|
||||
|
||||
void MapTile::setVertexColorImage(QImage const& baseimage, int mode)
|
||||
void MapTile::setVertexColorImage(QImage const& baseimage, int mode, bool tiledEdges)
|
||||
{
|
||||
QImage image = baseimage.convertToFormat(QImage::Format_RGBA8888);
|
||||
|
||||
|
||||
@@ -141,7 +141,7 @@ public:
|
||||
QImage getAlphamapImage(std::string const& filename);
|
||||
QImage getVertexColorsImage();
|
||||
QImage getNormalmapImage();
|
||||
void setHeightmapImage(QImage const& image, float multiplier, int mode, bool tiledEdges);
|
||||
void setHeightmapImage(QImage const& baseimage, float multiplier, int mode, bool tiledEdges);
|
||||
void setAlphaImage(QImage const& image, unsigned layer);
|
||||
void setVertexColorImage(QImage const& image, int mode, bool tiledEdges);
|
||||
void registerChunkUpdate(unsigned flags) { _chunk_update_flags |= flags; };
|
||||
|
||||
Reference in New Issue
Block a user