Enum sierra::PolygonMode
source · pub enum PolygonMode {
Fill,
Line,
Point,
}
Expand description
PolygonMode rasterization mode.
Variants§
Fill
Whole polygon is rasterized. That is, fragments are generated to cover all points inside the polygon.
Line
Edges are rasterized as lines. That is, fragments are generated to cover all points on polygon edges.
Point
Vertices are rasterized as points. That is, fragments are generated to cover only points that are polygon vertices.
Trait Implementations§
source§impl Clone for PolygonMode
impl Clone for PolygonMode
source§fn clone(&self) -> PolygonMode
fn clone(&self) -> PolygonMode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PolygonMode
impl Debug for PolygonMode
source§impl Default for PolygonMode
impl Default for PolygonMode
source§impl Hash for PolygonMode
impl Hash for PolygonMode
source§impl PartialEq<PolygonMode> for PolygonMode
impl PartialEq<PolygonMode> for PolygonMode
source§fn eq(&self, other: &PolygonMode) -> bool
fn eq(&self, other: &PolygonMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.