Struct gfx_debug_draw::DebugRenderer [] [src]

pub struct DebugRenderer<R: Resources> {
    // some fields omitted
}

Methods

impl<R: Resources> DebugRenderer<R>

fn from_canvas<C: CommandBuffer<R>, F: Factory<R>, O: Output<R>, D: Device<Resources=R, CommandBuffer=C>>(canvas: &mut Canvas<O, D, F>, initial_buffer_size: usize, bitmap_font: Option<BitmapFont>, bitmap_font_texture: Option<Texture<R>>) -> Result<DebugRenderer<R>, DebugRendererError>

fn new<F: Factory<R>>(factory: &mut F, frame_size: [u32; 2], initial_buffer_size: usize, bitmap_font: Option<BitmapFont>, bitmap_font_texture: Option<Texture<R>>) -> Result<DebugRenderer<R>, DebugRendererError>

fn draw_line(&mut self, start: [f32; 3], end: [f32; 3], color: [f32; 4])

fn draw_text_on_screen(&mut self, text: &str, screen_position: [i32; 2], color: [f32; 4])

fn draw_text_at_position(&mut self, text: &str, world_position: [f32; 3], color: [f32; 4])

fn render_canvas<C: CommandBuffer<R>, F: Factory<R>, O: Output<R>, D: Device<Resources=R, CommandBuffer=C>>(&mut self, canvas: &mut Canvas<O, D, F>, projection: [[f32; 4]; 4])

fn render<S: Stream<R>, F: Factory<R>>(&mut self, stream: &mut S, factory: &mut F, projection: [[f32; 4]; 4])