Trait nannou::ui::backend::glium::glium::Vertex
[−]
[src]
pub trait Vertex: Copy { fn build_bindings(
) -> Cow<'static, [(Cow<'static, str>, usize, AttributeType, bool)]>; fn is_supported<C>(caps: &C) -> bool
where
C: CapabilitiesSource + ?Sized, { ... } }
Trait for structures that represent a vertex.
Instead of implementing this trait yourself, it is recommended to use the implement_vertex!
macro instead.
Required Methods
fn build_bindings(
) -> Cow<'static, [(Cow<'static, str>, usize, AttributeType, bool)]>
) -> Cow<'static, [(Cow<'static, str>, usize, AttributeType, bool)]>
Builds the VertexFormat
representing the layout of this element.
Provided Methods
fn is_supported<C>(caps: &C) -> bool where
C: CapabilitiesSource + ?Sized,
C: CapabilitiesSource + ?Sized,
Returns true if the backend supports this vertex format.