[][src]Struct ms3d::Model

pub struct Model {
    pub header: Header,
    pub vertices: Vec<Vertex>,
    pub triangles: Vec<Triangle>,
    pub groups: Vec<Group>,
    pub materials: Vec<Material>,
    pub key_frame_data: KeyFrameData,
    pub joints: Vec<Joint>,
    pub comments: Comments,
    pub vertex_ex_info: VertexExInfo,
    pub joint_ex_info: JointExInfo,
    pub model_ex_info: ModelExInfo,
}

Represents an ms3d model file.

Fields

header: Headervertices: Vec<Vertex>triangles: Vec<Triangle>groups: Vec<Group>materials: Vec<Material>key_frame_data: KeyFrameDatajoints: Vec<Joint>comments: Commentsvertex_ex_info: VertexExInfojoint_ex_info: JointExInfomodel_ex_info: ModelExInfo

Implementations

impl Model[src]

pub fn from_reader<R: Read>(rdr: R) -> Result<Self>[src]

Read an ms3d model file from a reader.

pub fn from_bytes(bytes: &[u8]) -> Result<Self>[src]

Read an ms3d model file from a slice of bytes.

Trait Implementations

impl Clone for Model[src]

impl Debug for Model[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.