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

The external .skin file entity (namespace wowlib::formats::m2::skin), WotLK+: the 'SKIN' magic followed by one M2SkinProfile — held as an inline member, so the on-disk layout is byte-identical to the embedded pre-WotLK profiles while the entity keeps a single welded facade base. More...

#include <cstdint>
#include <welder/vocabulary.hpp>
#include <wowlib/core/client_version.hpp>
#include <wowlib/core/lang.hpp>
#include <wowlib/formats/m2/offset_block.hpp>
#include <wowlib/formats/m2/boundaries.hpp>
#include <wowlib/formats/m2/skin/records.hpp>
Include dependency graph for skin.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  wowlib::formats::m2::skin::SkinBase
 The version-agnostic base of every Skin<V> (welded as "Skin"). More...
struct  wowlib::formats::m2::skin::detail::Skin< V >

Namespaces

namespace  wowlib
namespace  wowlib::formats
namespace  wowlib::formats::m2
namespace  wowlib::formats::m2::skin
 The external LOD view entity (.skin file, WotLK+) and the skin profile records (submeshes, render batches).
namespace  wowlib::formats::m2::skin::detail
 One external LOD view of a model ("{model}0N.skin", or SFID FileDataIDs in Legion+).

Typedefs

template<ClientVersion V>
using wowlib::formats::m2::skin::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 wowlib::formats::m2::skin::SkinMagic = 0x4E494B53
 The .skin leading magic, as memcpy'd from disk.

Detailed Description

The external .skin file entity (namespace wowlib::formats::m2::skin), WotLK+: the 'SKIN' magic followed by one M2SkinProfile — held as an inline member, so the on-disk layout is byte-identical to the embedded pre-WotLK profiles while the entity keeps a single welded facade base.

Offsets are relative to the .skin file itself; the referenced vertices stay in the .m2.

Definition in file skin.hpp.