Skip to main content

draw

Function draw 

Source
pub fn draw(mode: Mode, body: impl FnOnce()) -> Result<()>
Expand description

Draws a primitive: calls begin, runs body (which emits color and vertex/vertex3), then end, even if body returns an error.