wowlib 0.0.0
Read & write World of Warcraft client files — a C++26 core
Loading...
Searching...
No Matches
wowlib::formats::m2::root Namespace Reference

The MD20 model body (M2Root) with its per-version classes. More...

Namespaces

namespace  detail
namespace  record
 M2 body record structs (sequences, bones, tracks, textures, cameras, emitters) and their flag enums.

Classes

struct  M2RootBase
 The version-agnostic base of every M2Root<V> (welded as "M2Root"). More...
struct  M2Root
 The MD20 model body for one client version: header scalars plus every offset-addressed block, decoded into vectors. More...

Enumerations

enum class  GlobalFlags : std::uint32_t {
  TiltX = 0x1 , TiltY = 0x2 , UseTextureCombinerCombos = 0x8 , LoadPhysData = 0x20 ,
  Unk0x80 = 0x80 , CameraRelated = 0x100 , NewParticleRecord = 0x200 , TextureTransformsUseBoneSequences = 0x800 ,
  ChunkedAnimFiles = 0x2000
}
 M2Root::globalFlags bits. More...

Variables

constexpr std::uint32_t Md20Magic = 0x3032444D
 The MD20 leading magic, as memcpy'd from disk.

Detailed Description

The MD20 model body (M2Root) with its per-version classes.

Enumeration Type Documentation

◆ GlobalFlags

enum class wowlib::formats::m2::root::GlobalFlags : std::uint32_t
strong

M2Root::globalFlags bits.

M2 global flags: tilt behavior, the texture-combiner-combo gate, physics participation and exporter-era markers.

Enumerator
TiltX 

Tilt the model over X (flying mounts).

TiltY 

Tilt the model over Y.

UseTextureCombinerCombos 

The texture_combiner_combos block trails the header (TBC+).

LoadPhysData 

Request the .phys file (MoP+).

Unk0x80 

Unset stops demon-hunter tattoos glowing (WoD+).

CameraRelated 

Camera related (WoD+).

NewParticleRecord 

Cata: particle records are the 492-byte layout even below v272.

TextureTransformsUseBoneSequences 

Texture transforms animate on the bone's sequence (Legion+).

ChunkedAnimFiles 

The .anim files are chunked (Legion+).

Definition at line 49 of file root.hpp.

Variable Documentation

◆ Md20Magic

std::uint32_t wowlib::formats::m2::root::Md20Magic = 0x3032444D
inlineconstexpr

The MD20 leading magic, as memcpy'd from disk.

Definition at line 45 of file root.hpp.