[][src]Struct tge::graphics::MeshDrawParams

pub struct MeshDrawParams {
    pub primitive: Option<PrimitiveType>,
    pub vertices: Option<Vec<Vertex>>,
    pub elements: Option<Vec<u32>>,
}

Fields

primitive: Option<PrimitiveType>vertices: Option<Vec<Vertex>>elements: Option<Vec<u32>>

Implementations

impl MeshDrawParams[src]

pub fn primitive(self, primitive: PrimitiveType) -> Self[src]

pub fn vertices(self, vertices: impl Into<Vec<Vertex>>) -> Self[src]

pub fn elements(self, elements: impl Into<Option<Vec<u32>>>) -> Self[src]

Trait Implementations

impl Clone for MeshDrawParams[src]

impl Debug for MeshDrawParams[src]

impl Default for MeshDrawParams[src]

impl PartialEq<MeshDrawParams> for MeshDrawParams[src]

impl StructuralPartialEq for MeshDrawParams[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

impl<T> SetParameter for T

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.