#[non_exhaustive]#[repr(i32)]pub enum LineRasterizationMode {
Default = 0,
Rectangular = 1,
Bresenham = 2,
RectangularSmooth = 3,
}
Expand description
The rasterization mode to use for lines.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Default = 0
If the strict_lines
device property is true
,
then this is the same as Rectangular
. Otherwise, lines are drawn as parallelograms.
If RasterizationState::line_stipple
is Some
, then the
strict_lines
property must be true
and the
stippled_rectangular_lines
feature
must be enabled on the device.
Rectangular = 1
Lines are drawn as if they were rectangles extruded from the line.
The rectangular_lines
feature must be
enabled on the device. If RasterizationState::line_stipple
is Some
, then the
stippled_rectangular_lines
must
also be enabled.
Bresenham = 2
Lines are drawn by determining which pixel diamonds the line intersects and exits.
The bresenham_lines
feature must be
enabled on the device. If RasterizationState::line_stipple
is Some
, then the
stippled_bresenham_lines
must
also be enabled.
RectangularSmooth = 3
As Rectangular
, but with alpha falloff.
The smooth_lines
feature must be
enabled on the device. If RasterizationState::line_stipple
is Some
, then the
stippled_smooth_lines
must
also be enabled.
Trait Implementations§
source§impl Clone for LineRasterizationMode
impl Clone for LineRasterizationMode
source§fn clone(&self) -> LineRasterizationMode
fn clone(&self) -> LineRasterizationMode
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LineRasterizationMode
impl Debug for LineRasterizationMode
source§impl Default for LineRasterizationMode
impl Default for LineRasterizationMode
source§impl From<LineRasterizationMode> for LineRasterizationModeEXT
impl From<LineRasterizationMode> for LineRasterizationModeEXT
source§fn from(val: LineRasterizationMode) -> Self
fn from(val: LineRasterizationMode) -> Self
source§impl Hash for LineRasterizationMode
impl Hash for LineRasterizationMode
source§impl PartialEq for LineRasterizationMode
impl PartialEq for LineRasterizationMode
source§fn eq(&self, other: &LineRasterizationMode) -> bool
fn eq(&self, other: &LineRasterizationMode) -> bool
self
and other
values to be equal, and is used
by ==
.