render: s/RGB8/Rgb<u8>/
This commit is contained in:
parent
04f5575ba6
commit
992a8b2568
@ -1,5 +1,5 @@
|
|||||||
use std::io;
|
use std::io;
|
||||||
use rgb::RGB8;
|
use rgb::Rgb;
|
||||||
|
|
||||||
use crate::geometry::*;
|
use crate::geometry::*;
|
||||||
use crate::task::Task;
|
use crate::task::Task;
|
||||||
@ -9,7 +9,7 @@ use std::marker::PhantomData;
|
|||||||
use std::fmt::Debug;
|
use std::fmt::Debug;
|
||||||
|
|
||||||
pub trait Shader: Send + Debug {
|
pub trait Shader: Send + Debug {
|
||||||
fn draw(&self, surface_coords: &VirtualCoordinates, frame: usize) -> RGB8;
|
fn draw(&self, surface_coords: &VirtualCoordinates, frame: usize) -> Rgb<u8>;
|
||||||
}
|
}
|
||||||
|
|
||||||
pub trait Surfaces<T: Surface>: Debug {
|
pub trait Surfaces<T: Surface>: Debug {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user