Trait glin::attributes::VertexFormat [−][src]
pub trait VertexFormat { fn attributes_formats(bindings: &dyn Bindings) -> Vec<Format>; }
Implemented by vertex types to convert attribute bindings into attribute formats
This is usually automatically implemented by deriving the VertexFormat annotaion from the glin_proc crate as in:
#[macro_use] extern crate glin; #[derive(VertexFormat)] struct Vertex{ position: [f32;4], color: [f32;4], } fn main(){}