Struct sfml::graphics::PrimitiveType
source · #[repr(transparent)]pub struct PrimitiveType(_);
Expand description
Types of primitives of which vertex arrays can be rendered.
Points and lines have no area, therefore their thickness will always be 1 pixel, regardless the current transform and view.
Implementations§
source§impl PrimitiveType
impl PrimitiveType
sourcepub const LINE_STRIP: Self = _
pub const LINE_STRIP: Self = _
List of connected lines, a point uses the previous point to form a line.
sourcepub const TRIANGLE_STRIP: Self = _
pub const TRIANGLE_STRIP: Self = _
List of connected triangles, a point uses the two previous points to form a triangle.
sourcepub const TRIANGLE_FAN: Self = _
pub const TRIANGLE_FAN: Self = _
List of connected triangles, a point uses the common center and the previous point to form a triangle.
Trait Implementations§
source§impl Clone for PrimitiveType
impl Clone for PrimitiveType
source§fn clone(&self) -> PrimitiveType
fn clone(&self) -> PrimitiveType
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 PrimitiveType
impl Debug for PrimitiveType
source§impl Hash for PrimitiveType
impl Hash for PrimitiveType
source§impl PartialEq<PrimitiveType> for PrimitiveType
impl PartialEq<PrimitiveType> for PrimitiveType
source§fn eq(&self, other: &PrimitiveType) -> bool
fn eq(&self, other: &PrimitiveType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.