pub struct Region { /* private fields */ }Expand description
REGN — Region / submesh (v0–v5, 48 bytes)
Describes a contiguous range of vertices and indices forming a submesh, with bone lookup info for skinning and UV scale/offset for texturing.
Implementations§
Source§impl Region
impl Region
pub fn set_index(&mut self, value: u32)
pub fn set_unknown(&mut self, value: u32)
Sourcepub fn first_vertex(&self) -> u32
pub fn first_vertex(&self) -> u32
First vertex in the vertex buffer
pub fn set_first_vertex(&mut self, value: u32)
Sourcepub fn vertex_count(&self) -> u32
pub fn vertex_count(&self) -> u32
Number of vertices
pub fn set_vertex_count(&mut self, value: u32)
Sourcepub fn first_index(&self) -> u32
pub fn first_index(&self) -> u32
First index in the index buffer
pub fn set_first_index(&mut self, value: u32)
Sourcepub fn index_count(&self) -> u32
pub fn index_count(&self) -> u32
Number of indices (triangles × 3)
pub fn set_index_count(&mut self, value: u32)
pub fn set_unknown_2(&mut self, value: u16)
Sourcepub fn first_bone_lookup(&self) -> u16
pub fn first_bone_lookup(&self) -> u16
First entry in bone lookup table
pub fn set_first_bone_lookup(&mut self, value: u16)
Sourcepub fn bone_lookup_count(&self) -> u16
pub fn bone_lookup_count(&self) -> u16
Number of bone lookup entries
pub fn set_bone_lookup_count(&mut self, value: u16)
pub fn set_padding(&mut self, value: u16)
Sourcepub fn bone_weight_pairs(&self) -> u8
pub fn bone_weight_pairs(&self) -> u8
Number of bone weight pairs per vertex
pub fn set_bone_weight_pairs(&mut self, value: u8)
Sourcepub fn bone_index_pairs(&self) -> u8
pub fn bone_index_pairs(&self) -> u8
Number of bone index pairs per vertex
pub fn set_bone_index_pairs(&mut self, value: u8)
pub fn set_root_bone(&mut self, value: u16)
Sourcepub fn flags(&self) -> RegionFlag
pub fn flags(&self) -> RegionFlag
Region flags (hidden, cloth, etc.)
pub fn set_flags(&mut self, value: RegionFlag)
pub fn set_uv_scale(&mut self, value: f32)
pub fn set_uv_offset(&mut self, value: f32)
Trait Implementations§
impl Send for Region
Auto Trait Implementations§
impl !Sync for Region
impl Freeze for Region
impl RefUnwindSafe for Region
impl Unpin for Region
impl UnsafeUnpin for Region
impl UnwindSafe for Region
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