Function ggez::graphics::polygon
[−]
[src]
pub fn polygon(
ctx: &mut Context,
mode: DrawMode,
vertices: &[Point2]
) -> GameResult<()>
Draws a closed polygon
Allocates a new Mesh
, draws it, and throws it away, so if you are drawing many of them
you should create the Mesh
yourself.