wowlib 0.0.0
Read & write World of Warcraft client files — a C++26 core
Loading...
Searching...
No Matches
texture.hpp File Reference

ADT texture binary structs (namespace wowlib::formats::adt::chunks): the per-cell texture layer (SMLayer / MCLY), the MTEX texture flags (MTXF) and parameters (MTXP), the terrain-material map (MCMT), color grading (MTCG) and the alpha-map downscale factor (MAMP). More...

#include <array>
#include <cstdint>
#include <utility>
#include <welder/vocabulary.hpp>
#include <wowlib/core/lang.hpp>
#include <wowlib/formats/common/types.hpp>
Include dependency graph for texture.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  wowlib::formats::adt::chunks::SMLayer
 A per-cell texture layer (MCLY, 16 bytes). More...
struct  wowlib::formats::adt::chunks::SMTextureFlags
 One MTXF texture-flags record (WotLK+): flags for the same-index MTEX texture. More...
struct  wowlib::formats::adt::chunks::SMTextureParams
 One MTXP texture-parameter record (MoP+): the MTXF flags plus the _h height-texture scale/offset that drive height-based blending. More...
struct  wowlib::formats::adt::chunks::SMTerrainMaterial
 One MCMT terrain-material record (Cata+): a TerrainMaterial id per layer. More...
struct  wowlib::formats::adt::chunks::SMTextureColorGrading
 One MTCG color-grading record (Shadowlands+): the color-grading LUT FileDataIDs for the same-index diffuse texture. More...
struct  wowlib::formats::adt::chunks::MCNREntry
 One MCNR normal (3 signed bytes, x Z Y; 127 == 1.0). More...

Namespaces

namespace  wowlib
namespace  wowlib::formats
namespace  wowlib::formats::adt
namespace  wowlib::formats::adt::chunks
 ADT chunk binary structs (the MCNK cell header, texture layers, liquid records, flying bounds) and their flag enums.

Enumerations

enum class  wowlib::formats::adt::chunks::LayerFlags : std::uint32_t {
  wowlib::formats::adt::chunks::AnimationEnabled = 0x40 , wowlib::formats::adt::chunks::Overbright = 0x80 , wowlib::formats::adt::chunks::UseAlphaMap = 0x100 , wowlib::formats::adt::chunks::AlphaMapCompressed = 0x200 ,
  wowlib::formats::adt::chunks::UseCubeMapReflection = 0x400 , wowlib::formats::adt::chunks::unknown_0x800 = 0x800 , wowlib::formats::adt::chunks::unknown_0x1000 = 0x1000
}
 Per-cell texture-layer flag bits (SMLayer.flags). More...

Detailed Description

ADT texture binary structs (namespace wowlib::formats::adt::chunks): the per-cell texture layer (SMLayer / MCLY), the MTEX texture flags (MTXF) and parameters (MTXP), the terrain-material map (MCMT), color grading (MTCG) and the alpha-map downscale factor (MAMP).

The terrain grid element types (heights, normals, vertex colors) live here too.

Definition in file texture.hpp.