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
sourceimpl 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
sourceimpl Clone for PrimitiveType
impl Clone for PrimitiveType
sourcefn clone(&self) -> PrimitiveType
fn clone(&self) -> PrimitiveType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for PrimitiveType
impl Debug for PrimitiveType
sourceimpl Hash for PrimitiveType
impl Hash for PrimitiveType
sourceimpl PartialEq<PrimitiveType> for PrimitiveType
impl PartialEq<PrimitiveType> for PrimitiveType
sourcefn eq(&self, other: &PrimitiveType) -> bool
fn eq(&self, other: &PrimitiveType) -> bool
impl Copy for PrimitiveType
impl Eq for PrimitiveType
impl StructuralEq for PrimitiveType
impl StructuralPartialEq for PrimitiveType
Auto Trait Implementations
impl RefUnwindSafe for PrimitiveType
impl Send for PrimitiveType
impl Sync for PrimitiveType
impl Unpin for PrimitiveType
impl UnwindSafe for PrimitiveType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more