Trait rin::gl::VertexFormat[][src]

pub trait VertexFormat {
    pub fn attributes_formats(bindings: &dyn Bindings) -> Vec<Format, Global>

Notable traits for Vec<u8, A>

impl<A> Write for Vec<u8, A> where
    A: Allocator
; }

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

pub fn attributes_formats(bindings: &dyn Bindings) -> Vec<Format, Global>

Notable traits for Vec<u8, A>

impl<A> Write for Vec<u8, A> where
    A: Allocator
[src]

Loading content...

Implementors

impl VertexFormat for Vertex[src]

impl VertexFormat for Vertex2D[src]

impl VertexFormat for Vertex2DColor[src]

impl VertexFormat for Vertex2DTex3D[src]

impl VertexFormat for Vertex2DTex[src]

impl VertexFormat for Vertex2DTexColor[src]

impl VertexFormat for Vertex3D[src]

impl VertexFormat for Vertex3DColor[src]

impl VertexFormat for Vertex3DColorNormal[src]

impl VertexFormat for Vertex3DNormal[src]

impl VertexFormat for Vertex3DTex[src]

impl VertexFormat for Vertex3DTexColor[src]

impl VertexFormat for Vertex3DTexNormal[src]

Loading content...