logo
pub enum Shape {
    Mesh(WorldMesh),
    SdfProgram(SdfProgram),
    SdfSkin(SdfSkin),
    Text(FormattedText),
    RenderModule(RenderModuleData),
    None,
}

Variants

Mesh(WorldMesh)

SdfProgram(SdfProgram)

SdfSkin(SdfSkin)

Text(FormattedText)

RenderModule(RenderModuleData)

None

Implementations

Gets the materials of this shape if any.

Gets the names of all morph target associated with the mesh.

It is recommended to store the return value instead of calling it every frame.

Trait Implementations

Wraps the passed-in value in a Value enum.

Extracts the value from a Value enum.

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.