[][src]Struct dot_vox::DotVoxData

pub struct DotVoxData {
    pub version: u32,
    pub models: Vec<Model>,
    pub palette: Vec<u32>,
    pub materials: Vec<Material>,
}

Container for .vox file data

Fields

version: u32

The version number of the .vox file.

models: Vec<Model>

A Vec of all the models contained within this file.

palette: Vec<u32>

A Vec containing the colour palette as 32-bit integers

materials: Vec<Material>

A Vec containing all the Materials set

Methods

impl DotVoxData[src]

pub fn write_vox<W: Write>(&self, writer: &mut W) -> Result<(), Error>[src]

Serializes self in the VOX format. TODO: write the material set

Trait Implementations

impl Debug for DotVoxData[src]

impl PartialEq<DotVoxData> for DotVoxData[src]

impl StructuralPartialEq for DotVoxData[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.