Added local rainbow tex
Getty Ritter
9 years ago
Binary diff not shown
| 17 | 17 | fn sample_texture<'a>() -> RawImage2d<'a, u8> { |
| 18 | 18 | use std::io::Cursor; |
| 19 | 19 | let img = image::load( |
| 20 |
Cursor::new(&include_bytes!(" |
|
| 20 | Cursor::new(&include_bytes!("../data/test/rainbow.png")[..]), | |
| 21 | 21 | image::PNG).unwrap().to_rgba(); |
| 22 | 22 | let dims = img.dimensions(); |
| 23 | 23 | let img = glium::texture::RawImage2d::from_raw_rgba_reversed(img.into_raw(), dims); |