gdritter repos utmyen / 58bf84e
Added local rainbow tex Getty Ritter 7 years ago
2 changed file(s) with 1 addition(s) and 1 deletion(s). Collapse all Expand all
Binary diff not shown
1717 fn sample_texture<'a>() -> RawImage2d<'a, u8> {
1818 use std::io::Cursor;
1919 let img = image::load(
20 Cursor::new(&include_bytes!("/home/gdritter/pictures/rainbow.png")[..]),
20 Cursor::new(&include_bytes!("../data/test/rainbow.png")[..]),
2121 image::PNG).unwrap().to_rgba();
2222 let dims = img.dimensions();
2323 let img = glium::texture::RawImage2d::from_raw_rgba_reversed(img.into_raw(), dims);