Table of Contents

Class HeightmapImageLoader

Namespace
Map.Loading.Images
Assembly
MapAssembly.dll

Loads heightmap.png (or heightmap.bmp) and populates the heightmap texture. Uses ImageParser for unified BMP/PNG support with PNG preferred. Height values: 0-255 (8-bit) → 0.0-1.0 (normalized float)

public class HeightmapImageLoader
Inheritance
object
HeightmapImageLoader
Derived

Methods

Initialize(MapTextureManager, bool)

public void Initialize(MapTextureManager textures, bool enableLogging = true)

Parameters

textures MapTextureManager
enableLogging bool

LoadAndPopulate(string)

Load heightmap image and populate heightmap texture. Tries heightmap.png first, falls back to heightmap.bmp.

public void LoadAndPopulate(string mapDirectory)

Parameters

mapDirectory string