pub struct Shape {
    pub index_count: u32,
    pub vertices: Arc<VertexBuffer>,
    pub indices: Arc<IndexBuffer>,
}
Expand description

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

Fields

index_count: u32

Number of indices contained in indices

vertices: Arc<VertexBuffer>

The vertices stored in a vertex buffer

indices: Arc<IndexBuffer>

An index buffer representing a TriangleList of indices within vertices

Implementations

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

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.