pub struct MomtEntry {Show 13 fields
pub flags: u32,
pub shader: u32,
pub blend_mode: u32,
pub texture_1: u32,
pub emissive_color: [u8; 4],
pub frame_emissive_color: [u8; 4],
pub texture_2: u32,
pub diff_color: [u8; 4],
pub ground_type: u32,
pub texture_3: u32,
pub color_2: u32,
pub flags_2: u32,
pub runtime_data: Vec<u8>,
}Expand description
MOMT - Materials chunk
Fields§
§flags: u32§shader: u32§blend_mode: u32§texture_1: u32§emissive_color: [u8; 4]§frame_emissive_color: [u8; 4]§texture_2: u32§diff_color: [u8; 4]§ground_type: u32§texture_3: u32§color_2: u32§flags_2: u32§runtime_data: Vec<u8>Implementations§
Trait Implementations§
Source§impl BinRead for MomtEntry
impl BinRead for MomtEntry
Source§fn read_options<R: Read + Seek>(
__binrw_generated_var_reader: &mut R,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>,
) -> BinResult<Self>
fn read_options<R: Read + Seek>( __binrw_generated_var_reader: &mut R, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<Self>
Source§fn read<R>(reader: &mut R) -> Result<Self, Error>
fn read<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments. Read moreSource§fn read_be<R>(reader: &mut R) -> Result<Self, Error>
fn read_be<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
big-endian byte order. Read moreSource§fn read_le<R>(reader: &mut R) -> Result<Self, Error>
fn read_le<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
little-endian byte order. Read moreSource§fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
Read
T from the reader assuming native-endian byte order. Read moreSource§fn read_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self from the reader using the given arguments. Read moreSource§fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self from the reader, assuming big-endian byte order, using the
given arguments. Read moreSource§impl ReadEndian for MomtEntry
impl ReadEndian for MomtEntry
Source§const ENDIAN: EndianKind
const ENDIAN: EndianKind
The endianness of the type.
Auto Trait Implementations§
impl Freeze for MomtEntry
impl RefUnwindSafe for MomtEntry
impl Send for MomtEntry
impl Sync for MomtEntry
impl Unpin for MomtEntry
impl UnwindSafe for MomtEntry
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