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
- Host: GitHub
- URL: https://github.com/glium/glium_derive
- Owner: glium
- License: mit
- Created: 2018-06-15T19:38:32.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-08-12T07:31:52.000Z (almost 3 years ago)
- Last Synced: 2025-04-05T17:02:07.476Z (about 1 year ago)
- Language: Rust
- Size: 12.7 KB
- Stars: 2
- Watchers: 4
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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,
}
```