read_mdl_from_bytes

Function read_mdl_from_bytes 

Source
pub fn read_mdl_from_bytes(
    bytes: &[u8],
    mdx_bytes: Option<&[u8]>,
) -> Result<Mdl, MdlError>
Expand description

Reads an MDL file from the given byte slice.

Accepts an optional mdx_bytes slice for external geometry data. This currently supports reading the node hierarchy, names, transforms, and basic mesh headers (vertex counts).