pub fn draw(mode: Mode, body: impl FnOnce()) -> Result<()>
Draws a primitive: calls begin, runs body (which emits color and vertex/vertex3), then end, even if body returns an error.
begin
body
color
vertex
vertex3
end