[][src]Enum sfml::graphics::PrimitiveType

#[repr(u32)]
pub enum PrimitiveType {
    Points,
    Lines,
    LineStrip,
    Triangles,
    TriangleStrip,
    TriangleFan,
    Quads,
}

Types of primitives that a VertexArray can render.

Points and lines have no area, therefore their thickness will always be 1 pixel, regardless the current transform and view.

Variants

Points

List of individual points.

Lines

List of individual lines.

LineStrip

List of connected lines, a point uses the previous point to form a line.

Triangles

List of individual triangles.

TriangleStrip

List of connected triangles, a point uses the two previous points to form a triangle.

TriangleFan

List of connected triangles, a point uses the common center and the previous point to form a triangle.

Quads

List of individual quads (deprecated, don't work with OpenGL ES)

Trait Implementations

impl Clone for PrimitiveType[src]

impl Copy for PrimitiveType[src]

impl Eq for PrimitiveType[src]

impl PartialEq<PrimitiveType> for PrimitiveType[src]

impl Debug for PrimitiveType[src]

impl Hash for PrimitiveType[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]