Enum glium::draw_parameters::PolygonMode [] [src]

pub enum PolygonMode {
    Point,
    Line,
    Fill,
}

Defines how the device should render polygons.

The usual value is Fill, which fills the content of polygon with the color. However other values are sometimes useful, especially for debugging purposes.

Example

The same triangle drawn respectively with Fill, Line and Point (barely visible).

Variants

Point

Only draw a single point at each vertex.

All attributes that apply to points (point_size) are used when using this mode.

Line

Only draw a line in the boundaries of each polygon.

All attributes that apply to lines (line_width) are used when using this mode.

Fill

Fill the content of the polygon. This is the default mode.

Trait Implementations

Derived Implementations

impl Eq for PolygonMode

impl PartialEq for PolygonMode

fn eq(&self, __arg_0: &PolygonMode) -> bool

fn ne(&self, __arg_0: &PolygonMode) -> bool

impl Debug for PolygonMode

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Copy for PolygonMode

impl Clone for PolygonMode

fn clone(&self) -> PolygonMode

fn clone_from(&mut self, source: &Self)