Trait wrapped2d::common::Draw

source ·
pub trait Draw {
    // Required methods
    fn draw_polygon(&mut self, vertices: &[Vec2], color: &Color);
    fn draw_solid_polygon(&mut self, vertices: &[Vec2], color: &Color);
    fn draw_circle(&mut self, center: &Vec2, radius: f32, color: &Color);
    fn draw_solid_circle(
        &mut self,
        center: &Vec2,
        radius: f32,
        axis: &Vec2,
        color: &Color
    );
    fn draw_segment(&mut self, p1: &Vec2, p2: &Vec2, color: &Color);
    fn draw_transform(&mut self, xf: &Transform);
}

Required Methods§

source

fn draw_polygon(&mut self, vertices: &[Vec2], color: &Color)

source

fn draw_solid_polygon(&mut self, vertices: &[Vec2], color: &Color)

source

fn draw_circle(&mut self, center: &Vec2, radius: f32, color: &Color)

source

fn draw_solid_circle( &mut self, center: &Vec2, radius: f32, axis: &Vec2, color: &Color )

source

fn draw_segment(&mut self, p1: &Vec2, p2: &Vec2, color: &Color)

source

fn draw_transform(&mut self, xf: &Transform)

Implementors§