QcMapRenderer Namespace
Development aid: top-down image of the generated terrain (surface block colour shaded by height, water tinted by depth). More...
| Header: | #include <headless/QcMapRenderer.h> |
Classes
| struct | Cut |
Types
Functions
| QImage | render(const QcTerrainGenerator &generator, const QcContentRegistry &content, QcMapRenderer::Area area) |
| QImage | renderBiomes(const QcTerrainGenerator &generator, QcMapRenderer::Area area) |
| QImage | renderSlice(const QcTerrainGenerator &generator, const QcContentRegistry &content, QcMapRenderer::Cut cut) |
Detailed Description
Used to check biome distribution without playing.
Classes
class Cut
A vertical cut along the x axis at z, from centreX - radius to centreX + radius; scale pixels per block. More...
Type Documentation
[alias] QcMapRenderer::Area
The square of columns a top-down map shows: radius blocks around the centre, several blocks per pixel.
Function Documentation
QImage QcMapRenderer::render(const QcTerrainGenerator &generator, const QcContentRegistry &content, QcMapRenderer::Area area)
Returns the top-down map of area: one pixel per cell, the colour of the surface block (from content) of the cell's first column as generator makes it, shaded by height, water tinted by depth.
QImage QcMapRenderer::renderBiomes(const QcTerrainGenerator &generator, QcMapRenderer::Area area)
Returns the top-down map of area as generator makes it, with one colour per biome instead of the surface block (ocean stays blue): the cells of QcBiomeMap, as the map preview of a new world reads them (decision E-921).
QImage QcMapRenderer::renderSlice(const QcTerrainGenerator &generator, const QcContentRegistry &content, QcMapRenderer::Cut cut)
Returns the vertical cut through the chunks generator makes, at heights 0 to 143, in the block colours of content (air shows the sky). Shows ores, caves and layers.