[−][src]Struct gridsim_ui::Renderer
Stores information to render
Methods
impl Renderer
[src]
pub fn new<D: Facade>(display: &D) -> Renderer
[src]
pub fn render<'a, D: Facade, Su: Surface, S: Sim<'a>, Color: Fn(&S::Cell) -> [f32; 3] + Sync, Filter: Fn(&S::Cell) -> bool + Sync>(
&self,
display: &D,
surface: &mut Su,
grid: &SquareGrid<'a, S>,
draw_params: DrawParameters,
cell_color: Color,
filter: Filter
) -> Result<(), DrawError> where
S::Cell: Sync,
[src]
&self,
display: &D,
surface: &mut Su,
grid: &SquareGrid<'a, S>,
draw_params: DrawParameters,
cell_color: Color,
filter: Filter
) -> Result<(), DrawError> where
S::Cell: Sync,
Takes a glium Facade, a drawing Surface, a Grid, a transform, and a cell to color map.
Renders the cells in a space from <-1, -1> to <1, 1> which is transformed with the transform matrix.
Auto Trait Implementations
impl !Send for Renderer
impl Unpin for Renderer
impl !Sync for Renderer
impl !UnwindSafe for Renderer
impl !RefUnwindSafe for Renderer
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,