pub struct Kvx {
pub xsiz: u32,
pub ysiz: u32,
pub zsiz: u32,
pub xpivot: u32,
pub ypivot: u32,
pub zpivot: u32,
pub xoffset: Vec<u32>,
pub xyoffset: Vec<Vec<u16>>,
pub columns: Vec<Vec<Vec<Slab>>>,
pub palette: [Rgb6; 256],
}Fields§
§xsiz: u32§ysiz: u32§zsiz: u32§xpivot: u32Pivot point in 8.8 fixed-point voxel units (i.e. divide by 256 to get fractional voxels).
ypivot: u32§zpivot: u32§xoffset: Vec<u32>xoffset table, length xsiz + 1. Stored verbatim from the file;
not interpreted by this crate beyond round-trip.
xyoffset: Vec<Vec<u16>>xyoffset table, dimensions [xsiz][ysiz + 1]. Slab list byte
length for column (x, y) is xyoffset[x][y+1] - xyoffset[x][y].
columns: Vec<Vec<Vec<Slab>>>Slab lists per column. Outer index is x in 0..xsiz, inner is y
in 0..ysiz. Inner-most Vec<Slab> is the column’s slab list,
in file order.
palette: [Rgb6; 256]256-entry palette. Indexed by Slab::colors[i].
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Kvx
impl RefUnwindSafe for Kvx
impl Send for Kvx
impl Sync for Kvx
impl Unpin for Kvx
impl UnsafeUnpin for Kvx
impl UnwindSafe for Kvx
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