Trait glin::VertexFormat[][src]

pub trait VertexFormat {
    fn attributes_formats(_: &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(){}

Required Methods

Important traits for Vec<u8>

Implementors