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

The magma/slime reading of an MCLQ vertex (8 bytes): two u16 texcoords and the shared height. More...

#include <wowlib/formats/adt/chunks/liquid.hpp>

Public Member Functions

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

Public Attributes

std::uint16_t s = 0
 Texture coordinate s.
std::uint16_t t = 0
 Texture coordinate t.
float height = 0
 Liquid surface height (shared with the water reading).

Detailed Description

The magma/slime reading of an MCLQ vertex (8 bytes): two u16 texcoords and the shared height.

Obtain one with SLVert.asMagma(). The magma/slime reading of a legacy liquid vertex (MCLQ): u16 texture coordinates s, t and the shared height. See SLVert.as_magma().

Definition at line 44 of file liquid.hpp.

Member Function Documentation

◆ operator==()

bool wowlib::formats::adt::chunks::SMVert::operator== ( const SMVert & ) const
default

Member Data Documentation

◆ height

float wowlib::formats::adt::chunks::SMVert::height = 0

Liquid surface height (shared with the water reading).

Definition at line 50 of file liquid.hpp.

◆ s

std::uint16_t wowlib::formats::adt::chunks::SMVert::s = 0

Texture coordinate s.

Definition at line 46 of file liquid.hpp.

◆ t

std::uint16_t wowlib::formats::adt::chunks::SMVert::t = 0

Texture coordinate t.

Definition at line 48 of file liquid.hpp.


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