[][src]Struct screen_13::gpu::draw::ModelCommand

pub struct ModelCommand {
    pub material: Material,
    pub mesh_filter: Option<MeshFilter>,
    pub model: ModelRef,
    pub pose: Option<Pose>,
    pub transform: Mat4,
    // some fields omitted
}

Description of a model, which may be posed or filtered.

Fields

material: Material

The material to use while rendering this model.

mesh_filter: Option<MeshFilter>

The mesh or meshes, if set, to render from within the larger collection of meshes this model may contain.

MeshFilter instances are acquired from the Model::filter(&self, ...) function and can only be used with the same model they are retrieved from.

model: ModelRef

The shared model reference to render.

pose: Option<Pose>

The animation pose, if set, to use while rendering this model.

transform: Mat4

The generalized matrix transform usually used to desctibe translation, scale and rotation.

NOTE: This is the "world" matrix; view and projection matrices are handled automatically.

Trait Implementations

impl Debug for ModelCommand[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> Pointable for T

type Init = T

The type for initializers.

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

type Output = T

Should always be Self

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.