pub struct DispInfo {Show 13 fields
pub power: u8,
pub start_position: String,
pub flags: Option<u32>,
pub elevation: f32,
pub subdiv: bool,
pub normals: DispRows,
pub distances: DispRows,
pub offsets: DispRows,
pub offset_normals: DispRows,
pub alphas: DispRows,
pub triangle_tags: DispRows,
pub allowed_verts: IndexMap<String, Vec<i32>>,
pub extra: Extras,
}Expand description
Represents the displacement information for a side.
Fields§
§power: u8The power of the displacement map (2, 3, or 4).
start_position: StringThe starting position of the displacement.
flags: Option<u32>Flags for the displacement.
elevation: f32The elevation of the displacement.
subdiv: boolWhether the displacement is subdivided.
normals: DispRowsThe normals for each vertex in the displacement.
distances: DispRowsThe distances for each vertex in the displacement.
offsets: DispRowsThe offsets for each vertex in the displacement.
offset_normals: DispRowsThe offset normals for each vertex in the displacement.
alphas: DispRowsThe alpha values for each vertex in the displacement.
The triangle tags for the displacement.
allowed_verts: IndexMap<String, Vec<i32>>The allowed vertices for the displacement.
extra: ExtrasKeys and blocks this struct does not model.
Trait Implementations§
Source§impl FromBlock for DispInfo
impl FromBlock for DispInfo
Source§fn from_block(block: VmfBlock, ctx: &mut ParseCtx) -> Self
fn from_block(block: VmfBlock, ctx: &mut ParseCtx) -> Self
Parses
block, substituting defaults and logging warnings for missing or invalid values.impl StructuralPartialEq for DispInfo
Source§impl VmfSerializable for DispInfo
impl VmfSerializable for DispInfo
Auto Trait Implementations§
impl Freeze for DispInfo
impl RefUnwindSafe for DispInfo
impl Send for DispInfo
impl Sync for DispInfo
impl Unpin for DispInfo
impl UnsafeUnpin for DispInfo
impl UnwindSafe for DispInfo
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