An open API service indexing awesome lists of open source software.

https://github.com/glium/glium_derive

Custom derive for glium Vertex
https://github.com/glium/glium_derive

Last synced: about 1 year ago
JSON representation

Custom derive for glium Vertex

Awesome Lists containing this project

README

          

# glium_derive
Custom derive for glium Vertex

## Example
```rust
extern crate glium;
#[macro_use]
extern crate glium_derive;

#[derive(Clone, Copy, Vertex)]
struct MyVertex {
#[glium(attr = "a_pos")
pos: [f32; 3],
#[glium(attr = "a_uv")
uv: [f32; 2],
#[glium(attr = "a_color", normalize)
color: u32,
}
```