Trait ringl::traits::Renderer[][src]

pub trait Renderer {
    fn clear<C: ToRgba>(&self, color: &C);
fn draw_mesh<T>(&self, mesh: &Mesh<T>)
    where
        T: VertexFormat + Clone + 'static
;
fn draw_string<C: ToRgba>(
        &self,
        font: &Ttf,
        string: &str,
        x: f32,
        y: f32,
        color: &C
    );
fn draw_string_box<C: ToRgba>(
        &self,
        font: &Ttf,
        string: &str,
        x: f32,
        y: f32,
        w: f32,
        h: f32,
        color: &C
    );
fn draw_bitmap_string<C: ToRgba>(
        &self,
        string: &str,
        x: f32,
        y: f32,
        color: &C
    );
fn draw_line<C: ToRgba>(&self, from: &Pnt2, to: &Pnt2, color: &C);
fn draw_rectangle_fill<C: ToRgba>(
        &self,
        pos: &Pnt2,
        w: f32,
        h: f32,
        color: &C
    );
fn draw_rectangle_lines<C: ToRgba>(
        &self,
        pos: &Pnt2,
        w: f32,
        h: f32,
        color: &C
    );
fn draw_circle_fill<C: ToRgba>(&self, x: f32, y: f32, r: f32, color: &C);
fn draw_circle_lines<C: ToRgba>(&self, x: f32, y: f32, r: f32, color: &C);
fn draw_ellipse_fill<C: ToRgba>(
        &self,
        x: f32,
        y: f32,
        w: f32,
        h: f32,
        color: &C
    );
fn draw_ellipse_lines<C: ToRgba>(
        &self,
        x: f32,
        y: f32,
        w: f32,
        h: f32,
        color: &C
    );
fn origin(&self) -> CoordinateOrigin; }

Required Methods

Implementors