MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / GetHeightmapDimensions

Function GetHeightmapDimensions

src/heightmap.cpp:505–508  ·  view source on GitHub ↗

* Get the dimensions of a heightmap. * @param dft Type of image file. * @param filename to query * @param x dimension x * @param y dimension y * @return Returns false if loading of the image failed. */

Source from the content-addressed store, hash-verified

503 * @return Returns false if loading of the image failed.
504 */
505bool GetHeightmapDimensions(DetailedFileType dft, std::string_view filename, uint *x, uint *y)
506{
507 return ReadHeightMap(dft, filename, x, y, nullptr);
508}
509
510/**
511 * Load a heightmap from file and change the map in its current dimensions

Callers 1

_ShowGenerateLandscapeFunction · 0.85

Calls 1

ReadHeightMapFunction · 0.85

Tested by

no test coverage detected