pub struct DotVoxData {
    pub version: u32,
    pub models: Vec<Model>,
    pub palette: Vec<Color>,
    pub materials: Vec<Material>,
    pub scenes: Vec<SceneNode>,
    pub layers: Vec<Layer>,
}
Expand description

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<Color>

A Vec containing the colour palette as 32-bit integers

materials: Vec<Material>

A Vec containing all the Materials set.

scenes: Vec<SceneNode>

Scene. The first node in this list is always the root node.

layers: Vec<Layer>

Layers. Used by scene transform nodes.

Implementations

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

Trait Implementations

Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.