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

An M2 skin render batch (texture unit): submesh + material + the lookup bases the shaders consume. More...

#include <wowlib/formats/m2/skin/records.hpp>

Public Member Functions

bool operator== (const M2Batch &) const =default

Public Attributes

std::uint8_t flags = 0
 0x10 static texture, 0x40 transparency quirk, ...
std::int8_t priorityPlane = 0
 Draw-order priority plane.
std::uint16_t shaderId = 0
 Pre-Cata: 0 on disk, computed at runtime.
std::uint16_t skinSectionIndex = 0
 The submesh this batch renders.
std::uint16_t geosetIndex = 0
 BfA+: renamed flags2 (0x2 projected, 0x8 EDGF).
std::uint16_t colorIndex = 0
 Into the model colors, -1 if none.
std::uint16_t materialIndex = 0
 Into the model materials.
std::uint16_t materialLayer = 0
 Capped at 7.
std::uint16_t textureCount = 0
 1..4 consecutive lookup entries.
std::uint16_t textureComboIndex = 0
 Into the texture lookup.
std::uint16_t textureCoordComboIndex = 0
 Into the texture-mapping lookup.
std::uint16_t textureWeightComboIndex = 0
 Into the transparency lookup.
std::uint16_t textureTransformComboIndex = 0
 Into the UV-animation lookup.

Detailed Description

An M2 skin render batch (texture unit): submesh + material + the lookup bases the shaders consume.

Definition at line 130 of file records.hpp.

Member Function Documentation

◆ operator==()

bool wowlib::formats::m2::skin::M2Batch::operator== ( const M2Batch & ) const
default

Member Data Documentation

◆ colorIndex

std::uint16_t wowlib::formats::m2::skin::M2Batch::colorIndex = 0

Into the model colors, -1 if none.

Definition at line 142 of file records.hpp.

◆ flags

std::uint8_t wowlib::formats::m2::skin::M2Batch::flags = 0

0x10 static texture, 0x40 transparency quirk, ...

Definition at line 132 of file records.hpp.

◆ geosetIndex

std::uint16_t wowlib::formats::m2::skin::M2Batch::geosetIndex = 0

BfA+: renamed flags2 (0x2 projected, 0x8 EDGF).

Definition at line 140 of file records.hpp.

◆ materialIndex

std::uint16_t wowlib::formats::m2::skin::M2Batch::materialIndex = 0

Into the model materials.

Definition at line 144 of file records.hpp.

◆ materialLayer

std::uint16_t wowlib::formats::m2::skin::M2Batch::materialLayer = 0

Capped at 7.

Definition at line 146 of file records.hpp.

◆ priorityPlane

std::int8_t wowlib::formats::m2::skin::M2Batch::priorityPlane = 0

Draw-order priority plane.

Definition at line 134 of file records.hpp.

◆ shaderId

std::uint16_t wowlib::formats::m2::skin::M2Batch::shaderId = 0

Pre-Cata: 0 on disk, computed at runtime.

Definition at line 136 of file records.hpp.

◆ skinSectionIndex

std::uint16_t wowlib::formats::m2::skin::M2Batch::skinSectionIndex = 0

The submesh this batch renders.

Definition at line 138 of file records.hpp.

◆ textureComboIndex

std::uint16_t wowlib::formats::m2::skin::M2Batch::textureComboIndex = 0

Into the texture lookup.

Definition at line 150 of file records.hpp.

◆ textureCoordComboIndex

std::uint16_t wowlib::formats::m2::skin::M2Batch::textureCoordComboIndex = 0

Into the texture-mapping lookup.

Definition at line 152 of file records.hpp.

◆ textureCount

std::uint16_t wowlib::formats::m2::skin::M2Batch::textureCount = 0

1..4 consecutive lookup entries.

Definition at line 148 of file records.hpp.

◆ textureTransformComboIndex

std::uint16_t wowlib::formats::m2::skin::M2Batch::textureTransformComboIndex = 0

Into the UV-animation lookup.

Definition at line 156 of file records.hpp.

◆ textureWeightComboIndex

std::uint16_t wowlib::formats::m2::skin::M2Batch::textureWeightComboIndex = 0

Into the transparency lookup.

Definition at line 154 of file records.hpp.


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