Trait solstice_2d::Draw

source ·
pub trait Draw<V: Vertex, G> {
    fn draw(&mut self, geometry: G);
    fn draw_with_transform<TX>(&mut self, geometry: G, transform: TX)
    where
        TX: Into<ColumnMatrix4<f32>>
; fn draw_with_color<C: Into<Color>>(&mut self, geometry: G, color: C); fn draw_with_color_and_transform<C, TX>(
        &mut self,
        geometry: G,
        color: C,
        transform: TX
    )
    where
        C: Into<Color>,
        TX: Into<ColumnMatrix4<f32>>
; fn image<T: Texture>(&mut self, geometry: G, texture: T); fn image_with_color<T, C>(&mut self, geometry: G, texture: T, color: C)
    where
        T: Texture,
        C: Into<Color>
; fn image_with_transform<T, TX>(
        &mut self,
        geometry: G,
        texture: T,
        transform: TX
    )
    where
        T: Texture,
        TX: Into<ColumnMatrix4<f32>>
; fn image_with_color_and_transform<T, C, TX>(
        &mut self,
        geometry: G,
        texture: T,
        color: C,
        transform: TX
    )
    where
        T: Texture,
        C: Into<Color>,
        TX: Into<ColumnMatrix4<f32>>
; }

Required Methods§

source

fn draw(&mut self, geometry: G)

source

fn draw_with_transform<TX>(&mut self, geometry: G, transform: TX)where
    TX: Into<ColumnMatrix4<f32>>,

source

fn draw_with_color<C: Into<Color>>(&mut self, geometry: G, color: C)

source

fn draw_with_color_and_transform<C, TX>(
    &mut self,
    geometry: G,
    color: C,
    transform: TX
)where
    C: Into<Color>,
    TX: Into<ColumnMatrix4<f32>>,

source

fn image<T: Texture>(&mut self, geometry: G, texture: T)

source

fn image_with_color<T, C>(&mut self, geometry: G, texture: T, color: C)where
    T: Texture,
    C: Into<Color>,

source

fn image_with_transform<T, TX>(&mut self, geometry: G, texture: T, transform: TX)where
    T: Texture,
    TX: Into<ColumnMatrix4<f32>>,

source

fn image_with_color_and_transform<T, C, TX>(
    &mut self,
    geometry: G,
    texture: T,
    color: C,
    transform: TX
)where
    T: Texture,
    C: Into<Color>,
    TX: Into<ColumnMatrix4<f32>>,

Implementors§

source§

impl<'a, G> Draw<Vertex2D, G> for DrawList<'a>where
    G: GeometryKind<'a, Vertex2D> + 'a,

source§

impl<'a, G> Draw<Vertex3D, G> for DrawList<'a>where
    G: GeometryKind<'a, Vertex3D> + 'a,