[][src]Function tetra::graphics::draw

pub fn draw<D: Drawable, P: Into<DrawParams>>(
    ctx: &mut Context,
    drawable: &D,
    params: P
)

Draws an object to the screen (or to a canvas, if one is enabled).

This function simply calls draw on the passed object - it is provided to allow you to avoid having to import the Drawable trait as well as the graphics module.