X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=text.rs;h=c341959c55beb7ab678969f57b45c821e0c1c1bd;hb=53cdc6ff212fc7aafdc591badc589ab9220d1606;hp=4e1fcdfc10579f3ed5813005795bc11bb3a7bfc4;hpb=e758b0d67cbb0fdb0bc316b9b4037511e492c0d5;p=mandelwow.git diff --git a/text.rs b/text.rs index 4e1fcdf..c341959 100644 --- a/text.rs +++ b/text.rs @@ -1,7 +1,7 @@ use cgmath::conv::array4x4; use cgmath::{Matrix4, Vector3}; use glium; -use glium::{Display, Program, Surface, texture}; +use glium::{Display, Program, Surface, implement_vertex, texture, uniform}; use std; fn gamma(x: T) -> f32 @@ -63,7 +63,7 @@ pub struct Text<'a> { } impl<'a> Text<'a> { - pub fn new(display: &Display, character: char) -> Text { + pub fn new(display: &Display, character: char) -> Text<'_> { let (w, h, pixels) = c64_font(); let image = glium::texture::RawImage2d { data: std::borrow::Cow::from(pixels),