wowlib 0.0.0
Read & write World of Warcraft client files — a C++26 core
Loading...
Searching...
No Matches
wowlib::formats::adt::detail::TerrainMapCodec Class Reference

Shared geometry for the 64x64 terrain map codecs: the last-row/column repair the client applies to "unfixed" maps on load. More...

#include <wowlib/formats/adt/codec.hpp>

Inheritance diagram for wowlib::formats::adt::detail::TerrainMapCodec:

Static Protected Member Functions

static void _fixLastRowCol (std::span< std::uint8_t > map)
 Repair an "unfixed" map in place: the last row and column are ignored on disk and the client copies their neighbours.

Detailed Description

Shared geometry for the 64x64 terrain map codecs: the last-row/column repair the client applies to "unfixed" maps on load.

Not instantiated on its own — AlphaMapCodec and ShadowMapCodec derive from it.

Definition at line 44 of file codec.hpp.

Member Function Documentation

◆ _fixLastRowCol()

void wowlib::formats::adt::detail::TerrainMapCodec::_fixLastRowCol ( std::span< std::uint8_t > map)
inlinestaticprotected

Repair an "unfixed" map in place: the last row and column are ignored on disk and the client copies their neighbours.

Applied on read when the MCNK do_not_fix_alpha flag is clear, so wowlib always holds the full grid.

Parameters
mapthe 4096-texel edit surface to repair in place.

Definition at line 50 of file codec.hpp.

References wowlib::formats::adt::detail::AlphaDim.

Referenced by wowlib::formats::adt::detail::AlphaMapCodec::decode(), and wowlib::formats::adt::detail::ShadowMapCodec::decode().


The documentation for this class was generated from the following file: