#[repr(i32)]pub enum MdlFormat {
WarcraftIII = 0,
Hiveworkshop = 1,
}Expand description
Selects which MDL text dialect Writer / writeModelToMdl emits.
Only affects the .mdl text output path; MDX binary is unchanged.
Variants§
WarcraftIII = 0
Engine-faithful dialect — matches what Warcraft III’s MDL writer produces. HD layers use a per-layer Shader "name", directive and static TextureID id <= slot, for sub-textures. Files written in this dialect parse cleanly through the in-game MDL reader. (Default.)
Hiveworkshop = 1
HiveWorkshop community dialect — uses ShaderTypeId N, to mark HD layers and named slot properties (NormalTextureID, ORMTextureID, EmissiveTextureID, TeamColorTextureID, ReflectionsTextureID). Compatible with HiveWorkshop tools (Retera Model Studio, Magos, MdlVis, etc.).
Trait Implementations§
impl Copy for MdlFormat
impl Eq for MdlFormat
impl StructuralPartialEq for MdlFormat
Auto Trait Implementations§
impl Freeze for MdlFormat
impl RefUnwindSafe for MdlFormat
impl Send for MdlFormat
impl Sync for MdlFormat
impl Unpin for MdlFormat
impl UnsafeUnpin for MdlFormat
impl UnwindSafe for MdlFormat
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more