Mercurial > touhou
diff examples/anmrenderer.rs @ 649:967627181a76
Use the merged name of RGB in AnmRenderer.
See https://github.com/phaazon/luminance-rs/pull/150 for reasoning.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Thu, 08 Aug 2019 13:39:28 +0200 |
parents | 7d92730bf543 |
children | 988e5130fb00 |
line wrap: on
line diff
--- a/examples/anmrenderer.rs +++ b/examples/anmrenderer.rs @@ -2,7 +2,7 @@ use image::GenericImageView; use luminance::context::GraphicsContext; use luminance::framebuffer::Framebuffer; use luminance::pipeline::BoundTexture; -use luminance::pixel::{RGB, Floating}; +use luminance::pixel::{NormRGB8UI, Floating}; use luminance::render_state::RenderState; use luminance::shader::program::{Program, Uniform}; use luminance::tess::{Mode, TessBuilder}; @@ -203,7 +203,7 @@ fn fill_vertices(sprite: Rc<RefCell<Spri sprite.borrow().fill_vertices(&mut fake_vertices); } -fn load_from_disk(surface: &mut GlfwSurface, path: &Path) -> Option<Texture<Flat, Dim2, RGB>> { +fn load_from_disk(surface: &mut GlfwSurface, path: &Path) -> Option<Texture<Flat, Dim2, NormRGB8UI>> { // load the texture into memory as a whole bloc (i.e. no streaming) match image::open(&path) { Ok(img) => {