pub struct Mesh {Show 17 fields
pub render_flags: u32,
pub skin_flags: u32,
pub vertex_buffer_index: u16,
pub index_buffer_index: u16,
pub unk_index: u16,
pub material_index: u16,
pub unk2: u32,
pub unk3: u16,
pub ext_mesh_index: u16,
pub unk4: u32,
pub unk5: u16,
pub lod: u16,
pub alpha_table_index: u16,
pub unk6: u16,
pub unk7: i32,
pub unk8: i32,
pub unk9: i32,
}Expand description
Flags and resources associated with a single draw call.
Fields§
§render_flags: u32§skin_flags: u32§vertex_buffer_index: u16Index into vertex_buffers for the associated VertexData.
index_buffer_index: u16Index into index_buffers for the associated VertexData.
unk_index: u16§material_index: u16Index into materials.
unk2: u32§unk3: u16§ext_mesh_index: u16Index into ext_meshes.
unk4: u32§unk5: u16§lod: u16The index of the level of detail typically starting from 1.
alpha_table_index: u16§unk6: u16§unk7: i32§unk8: i32§unk9: i32Trait Implementations§
source§impl BinRead for Mesh
impl BinRead for Mesh
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_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_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§fn read_le_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_le_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self from the reader, assuming little-endian byte order, using
the given arguments. Read moresource§impl Xc3Write for Mesh
impl Xc3Write for Mesh
§type Offsets<'offsets> = MeshOffsets<'offsets>
type Offsets<'offsets> = MeshOffsets<'offsets>
The type storing offset data to be used in Xc3WriteOffsets.
source§fn xc3_write<W: Write + Seek>(
&self,
writer: &mut W,
data_ptr: &mut u64
) -> Xc3Result<Self::Offsets<'_>>
fn xc3_write<W: Write + Seek>( &self, writer: &mut W, data_ptr: &mut u64 ) -> Xc3Result<Self::Offsets<'_>>
Write all fields and placeholder offsets
and set
data_ptr to the position after writing.
This should almost always be derived for non primitive types.source§fn should_write(&self) -> Option<bool>
fn should_write(&self) -> Option<bool>
Return
true if this type has no data and should not be written.Auto Trait Implementations§
impl RefUnwindSafe for Mesh
impl Send for Mesh
impl Sync for Mesh
impl Unpin for Mesh
impl UnwindSafe for Mesh
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