Enum lux::graphics::PrimitiveType [] [src]

pub enum PrimitiveType {
    Points,
    LinesList,
    LinesListAdjacency,
    LineStrip,
    LineStripAdjacency,
    LineLoop,
    TrianglesList,
    TrianglesListAdjacency,
    TriangleStrip,
    TriangleStripAdjacency,
    TriangleFan,
    pub Patches {
        pub vertices_per_patch: u16,
    },
}

List of available primitives.

Variants

Points
LinesList
LinesListAdjacency
LineStrip
LineStripAdjacency
LineLoop
TrianglesList
TrianglesListAdjacency
TriangleStrip
TriangleStripAdjacency
TriangleFan
Patches

Fields

vertices_per_patch

Methods

impl PrimitiveType

fn is_supported<C>(&self, caps: &C) -> bool where C: CapabilitiesSource

Returns true if the backend supports this type of primitives.

Trait Implementations

impl ToGlEnum for PrimitiveType

fn to_glenum(&self) -> u32

Derived Implementations

impl Eq for PrimitiveType

impl PartialEq<PrimitiveType> for PrimitiveType

fn eq(&self, __arg_0: &PrimitiveType) -> bool

fn ne(&self, __arg_0: &PrimitiveType) -> bool

impl Copy for PrimitiveType

impl Clone for PrimitiveType

fn clone(&self) -> PrimitiveType

fn clone_from(&mut self, source: &Self)

impl Debug for PrimitiveType

fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>