Struct caper::types::Attr [] [src]

pub struct Attr {
    pub world_position: Vector3,
    pub world_rotation: Quaternion,
    pub world_scale: Vector3,
}

struct for shader attributes

Fields

The world position to be passed to the shader

The world rotation to be passed to the shader

The world scale to be passed to the shader

Trait Implementations

impl Copy for Attr
[src]

impl Clone for Attr
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Attr
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Vertex for Attr

Builds the VertexFormat representing the layout of this element.

Returns true if the backend supports this vertex format.