Enum conrod::backend::glium::glium::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

Only draw a single point at each vertex.

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

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 the content of the polygon. This is the default mode.

Trait Implementations

impl Copy for PolygonMode
[src]

impl Clone for PolygonMode
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq<PolygonMode> for PolygonMode
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Debug for PolygonMode
[src]

[src]

Formats the value using the given formatter.

impl Eq for PolygonMode
[src]