Struct lux::graphics::ColorVertex [] [src]

pub struct ColorVertex {
    pub pos: [f32; 2],
    pub color: [f32; 4],
}

A colored vertex.

Fields

pos

The position in screen space.

color

The color in [r, g, b, a].

Trait Implementations

impl Vertex for ColorVertex

fn build_bindings() -> VertexFormat

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

Derived Implementations

impl Clone for ColorVertex

fn clone(&self) -> ColorVertex

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

impl Debug for ColorVertex

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

impl Copy for ColorVertex