[][src]Struct rgx_lyon::Shape

pub struct Shape {
    pub index_count: u32,
    pub vertices: VertexBuffer,
    pub indices: IndexBuffer,
}

Shape is a loaded, prepared ShapeBuilder that is ready to be drawn

Fields

index_count: u32

Number of indices contained in indices

vertices: VertexBuffer

The vertices stored in a vertex buffer

indices: IndexBuffer

An index buffer representing a TriangleList of indices within vertices

Implementations

impl Shape[src]

pub fn draw(&self, pass: &mut Pass<'_>)[src]

Draws the shape to the Pass.

You should use Pass::set_pipeline before calling this method.

Arguments

  • pass- The render pass to draw to.

Auto Trait Implementations

impl !RefUnwindSafe for Shape

impl Send for Shape

impl Sync for Shape

impl Unpin for Shape

impl UnwindSafe for Shape

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, 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.