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
PointOnly draw a single point at each vertex.
All attributes that apply to points (point_size) are used when using this mode.
LineOnly draw a line in the boundaries of each polygon.
All attributes that apply to lines (line_width) are used when using this mode.
FillFill the content of the polygon. This is the default mode.
Trait Implementations
impl Eq for PolygonMode[src]
impl PartialEq for PolygonMode[src]
fn eq(&self, __arg_0: &PolygonMode) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.
impl Debug for PolygonMode[src]
impl Copy for PolygonMode[src]
impl Clone for PolygonMode[src]
fn clone(&self) -> PolygonMode
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more