Function tetra::graphics::draw

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

Draws an object to the currently enabled render target.

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.