Function ggez::graphics::rectangle[][src]

pub fn rectangle(
    ctx: &mut Context,
    mode: DrawMode,
    rect: Rect
) -> GameResult<()>

Draws a rectangle.

Allocates a new Mesh, draws it, and throws it away, so if you are drawing many of them you should create the Mesh yourself.