DebugDraw

Trait DebugDraw 

Source
pub trait DebugDraw {
    // Provided methods
    fn draw_polygon(&mut self, _vertices: &[Vec2], _color: HexColor) { ... }
    fn draw_solid_polygon(
        &mut self,
        _transform: Transform,
        _vertices: &[Vec2],
        _radius: f32,
        _color: HexColor,
    ) { ... }
    fn draw_circle(&mut self, _center: Vec2, _radius: f32, _color: HexColor) { ... }
    fn draw_solid_circle(
        &mut self,
        _transform: Transform,
        _radius: f32,
        _color: HexColor,
    ) { ... }
    fn draw_solid_capsule(
        &mut self,
        _p1: Vec2,
        _p2: Vec2,
        _radius: f32,
        _color: HexColor,
    ) { ... }
    fn draw_segment(&mut self, _p1: Vec2, _p2: Vec2, _color: HexColor) { ... }
    fn draw_transform(&mut self, _transform: Transform) { ... }
    fn draw_point(&mut self, _p: Vec2, _size: f32, _color: HexColor) { ... }
    fn draw_string(&mut self, _p: Vec2, _s: &str, _color: HexColor) { ... }
}

Provided Methods§

Source

fn draw_polygon(&mut self, _vertices: &[Vec2], _color: HexColor)

Source

fn draw_solid_polygon( &mut self, _transform: Transform, _vertices: &[Vec2], _radius: f32, _color: HexColor, )

Source

fn draw_circle(&mut self, _center: Vec2, _radius: f32, _color: HexColor)

Source

fn draw_solid_circle( &mut self, _transform: Transform, _radius: f32, _color: HexColor, )

Source

fn draw_solid_capsule( &mut self, _p1: Vec2, _p2: Vec2, _radius: f32, _color: HexColor, )

Source

fn draw_segment(&mut self, _p1: Vec2, _p2: Vec2, _color: HexColor)

Source

fn draw_transform(&mut self, _transform: Transform)

Source

fn draw_point(&mut self, _p: Vec2, _size: f32, _color: HexColor)

Source

fn draw_string(&mut self, _p: Vec2, _s: &str, _color: HexColor)

Implementors§