pub fn write_bwm<W: Write>(
writer: &mut W,
bwm: &Bwm,
) -> Result<(), BwmBinaryError>Expand description
Writes BWM data to a writer.
ยงErrors
BwmBinaryError::InvalidData when a face names a vertex index past the
end of the vertex list, checked for every face before anything is written,
and BwmBinaryError::ValueOverflow when a section count or the size it
implies will not fit the u32 the header gives it. BwmBinaryError::Io
comes from the writer and can leave a partial file.