Struct obj::Obj[][src]

pub struct Obj<V = Vertex, I = u16> {
    pub name: Option<String>,
    pub vertices: Vec<V>,
    pub indices: Vec<I>,
}
Expand description

3D model object loaded from wavefront OBJ.

Fields

name: Option<String>

Object’s name.

vertices: Vec<V>

Vertex buffer.

indices: Vec<I>

Index buffer.

Implementations

Create Obj from RawObj object.

Trait Implementations

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. 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

Performs the conversion.

Performs the conversion.

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.