Class TerrainImageLoader
Loads terrain.png (or terrain.bmp) and populates the terrain texture. Uses ImageParser for unified BMP/PNG support. Terrain colors from the image are used directly - TerrainRGBLookup converts to indices later. Supports raw pixel cache to skip PNG decompression on subsequent loads.
public class TerrainImageLoader
- Inheritance
-
objectTerrainImageLoader
Methods
Initialize(MapTextureManager, bool)
public void Initialize(MapTextureManager textures, bool enableLogging = true)
Parameters
texturesMapTextureManagerenableLoggingbool
LoadAndPopulate(string)
Load terrain image and populate terrain texture. Tries terrain.png first, falls back to terrain.bmp. Uses raw pixel cache to skip PNG decompression on subsequent loads.
public void LoadAndPopulate(string mapDirectory)
Parameters
mapDirectorystring