pub struct EmbeddedSkinRaw {
pub model_view: Vec<u8>,
pub indices: Vec<u8>,
pub triangles: Vec<u8>,
pub properties: Vec<u8>,
pub submeshes: Vec<u8>,
pub batches: Vec<u8>,
pub original_model_view_offset: u32,
pub original_indices_offset: u32,
pub original_triangles_offset: u32,
pub original_properties_offset: u32,
pub original_submeshes_offset: u32,
pub original_batches_offset: u32,
}Expand description
Raw embedded skin data for a single ModelView in pre-WotLK M2 files
Pre-WotLK (versions 256-263) have skin data embedded in the M2 file. Each ModelView structure (44 bytes) contains M2Arrays pointing to:
- indices (vertex indices into the model’s vertex buffer)
- triangles (triangle indices)
- submeshes (mesh subdivision info)
- batches (texture unit assignments)
Fields§
§model_view: Vec<u8>The raw ModelView structure bytes (44 bytes)
indices: Vec<u8>Indices data referenced by the first M2Array
triangles: Vec<u8>Triangles data referenced by the second M2Array
properties: Vec<u8>Vertex properties data (usually empty or minimal)
submeshes: Vec<u8>Submeshes data
batches: Vec<u8>Batches/texture units data
original_model_view_offset: u32Original offset of the ModelView structure
original_indices_offset: u32Original offsets for each M2Array’s data
original_triangles_offset: u32§original_properties_offset: u32§original_submeshes_offset: u32§original_batches_offset: u32Trait Implementations§
Source§impl Clone for EmbeddedSkinRaw
impl Clone for EmbeddedSkinRaw
Source§fn clone(&self) -> EmbeddedSkinRaw
fn clone(&self) -> EmbeddedSkinRaw
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EmbeddedSkinRaw
impl Debug for EmbeddedSkinRaw
Source§impl Default for EmbeddedSkinRaw
impl Default for EmbeddedSkinRaw
Source§fn default() -> EmbeddedSkinRaw
fn default() -> EmbeddedSkinRaw
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EmbeddedSkinRaw
impl RefUnwindSafe for EmbeddedSkinRaw
impl Send for EmbeddedSkinRaw
impl Sync for EmbeddedSkinRaw
impl Unpin for EmbeddedSkinRaw
impl UnwindSafe for EmbeddedSkinRaw
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().