changeset 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 3331eb7389b3
children f6bfc9e6dab0
files examples/anmrenderer.rs
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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) => {