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

The external LOD view entity (.skin file, WotLK+) and the skin profile records (submeshes, render batches). More...

Namespaces

namespace  detail
 One external LOD view of a model ("{model}0N.skin", or SFID FileDataIDs in Legion+).

Classes

struct  M2Batch
 An M2 skin render batch (texture unit): submesh + material + the lookup bases the shaders consume. More...
struct  M2ShadowBatch
 An M2 skin shadow batch (Cata+); the client can also generate these from the render batches. More...
struct  M2SkinProfileBase
 The version-agnostic base of every M2SkinProfile<V> (welded as "M2SkinProfile"). More...
struct  M2SkinSectionBase
 The version-agnostic base of every M2SkinSection<V> (welded as "M2SkinSection"). More...
struct  SkinBase
 The version-agnostic base of every Skin<V> (welded as "Skin"). More...

Typedefs

template<ClientVersion V>
using M2SkinSection = detail::M2SkinSection<canonicalVersion(V, M2SkinSectionPivots, M2Versions)>
 A skin submesh — the canonicalizing face of detail::M2SkinSection (M2SkinSectionPivots: TBC's sort center/radius tail).
template<ClientVersion V>
using M2SkinProfile = detail::M2SkinProfile<canonicalVersion(V, M2SkinProfilePivots, M2Versions)>
 One LOD view — the canonicalizing face of detail::M2SkinProfile (M2SkinProfilePivots: TBC's section layout, Cata's shadow batches).
template<ClientVersion V>
using Skin = detail::Skin<canonicalVersion(V, M2SkinPivots, M2SkinVersions)>
 An external LOD view — the canonicalizing face of detail::Skin: every WotLK+ version maps to its range's first grid version (M2SkinPivots: only Cata's shadow batches split the era, so two instantiations cover all nine releases).

Variables

constexpr std::uint32_t SkinMagic = 0x4E494B53
 The .skin leading magic, as memcpy'd from disk.

Detailed Description

The external LOD view entity (.skin file, WotLK+) and the skin profile records (submeshes, render batches).

Typedef Documentation

◆ M2SkinProfile

One LOD view — the canonicalizing face of detail::M2SkinProfile (M2SkinProfilePivots: TBC's section layout, Cata's shadow batches).

Definition at line 253 of file records.hpp.

◆ M2SkinSection

A skin submesh — the canonicalizing face of detail::M2SkinSection (M2SkinSectionPivots: TBC's sort center/radius tail).

Definition at line 123 of file records.hpp.

◆ Skin

An external LOD view — the canonicalizing face of detail::Skin: every WotLK+ version maps to its range's first grid version (M2SkinPivots: only Cata's shadow batches split the era, so two instantiations cover all nine releases).

Pre-WotLK versions stay a substitution failure.

Definition at line 67 of file skin.hpp.

Variable Documentation

◆ SkinMagic

std::uint32_t wowlib::formats::m2::skin::SkinMagic = 0x4E494B53
inlineconstexpr

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

Definition at line 22 of file skin.hpp.