Struct client::view::Vertex [] [src]

pub struct Vertex {
    pub position: [f32; 3],
    pub color: [f32; 3],
    pub normal: [f32; 3],
}

Vertex type used to render plants/trees.

Fields

position: [f32; 3] color: [f32; 3] normal: [f32; 3]

Trait Implementations

impl Clone for Vertex
[src]

fn clone(&self) -> Vertex

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for Vertex
[src]

impl Debug for Vertex
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Vertex for Vertex

fn build_bindings() -> VertexFormat

Builds the VertexFormat representing the layout of this element.

fn is_supported<C>(caps: &C) -> bool where C: CapabilitiesSource

Returns true if the backend supports this vertex format.