|
wowlib 0.0.0
Read & write World of Warcraft client files — a C++26 core
|
One MODD doodad placement: an M2 instance inside the WMO, quaternion-oriented in model space. More...
#include <wowlib/formats/wmo/root/chunks/doodad.hpp>
Public Member Functions | |
| constexpr std::uint32_t | nameIndex () const |
| The 24-bit MODN byte offset (or MODI index) of the model name. | |
Public Attributes | |
| std::uint32_t | nameAndFlags = 0 |
| Packed 24-bit MODN offset / MODI index plus DoodadFlags bits in the high byte. | |
| C3Vector | position {} |
| Position in WMO model space (Z-up). | |
| C4Quaternion | orientation {} |
| Orientation quaternion. | |
| float | scale = 1 |
| Uniform scale factor. | |
| CImVector | color {} |
| Color override (BGRA); alpha below 0xFF is a MOLT index. | |
One MODD doodad placement: an M2 instance inside the WMO, quaternion-oriented in model space.
Definition at line 52 of file doodad.hpp.
|
inlinenodiscardconstexpr |
The 24-bit MODN byte offset (or MODI index) of the model name.
Definition at line 70 of file doodad.hpp.
References nameAndFlags, and wowlib::formats::wmo::root::chunks::NameMask.
| CImVector wowlib::formats::wmo::root::chunks::SMODoodadDef::color {} |
Color override (BGRA); alpha below 0xFF is a MOLT index.
Definition at line 66 of file doodad.hpp.
| std::uint32_t wowlib::formats::wmo::root::chunks::SMODoodadDef::nameAndFlags = 0 |
Packed 24-bit MODN offset / MODI index plus DoodadFlags bits in the high byte.
Definition at line 54 of file doodad.hpp.
Referenced by nameIndex().
| C4Quaternion wowlib::formats::wmo::root::chunks::SMODoodadDef::orientation {} |
Orientation quaternion.
Definition at line 60 of file doodad.hpp.
| C3Vector wowlib::formats::wmo::root::chunks::SMODoodadDef::position {} |
Position in WMO model space (Z-up).
Definition at line 57 of file doodad.hpp.
| float wowlib::formats::wmo::root::chunks::SMODoodadDef::scale = 1 |
Uniform scale factor.
Definition at line 63 of file doodad.hpp.