[][src]Struct gridsim_ui::Renderer

pub struct Renderer { /* fields omitted */ }

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]

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]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,