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) → written directly to R8 texture. Supports raw pixel cache to skip PNG decompression on subsequent loads.

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. Uses raw pixel cache to skip PNG decompression on subsequent loads.

public void LoadAndPopulate(string mapDirectory)

Parameters

mapDirectory string