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
sourceimpl Shape
impl Shape
sourcepub fn get_material_descs_with_names(
&self
) -> Vec<(Option<String>, MaterialDesc)>
pub fn get_material_descs_with_names(
&self
) -> Vec<(Option<String>, MaterialDesc)>
Gets the materials of this shape if any.
sourcepub fn get_morph_target_names(&self) -> Vec<String>
pub fn get_morph_target_names(&self) -> Vec<String>
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
sourceimpl ValueConverterTrait<Shape> for ValueConverter
impl ValueConverterTrait<Shape> for ValueConverter
sourcefn into_value(v: Shape) -> Value
fn into_value(v: Shape) -> Value
Wraps the passed-in value in a Value
enum.
sourcefn from_value(v: &Value) -> Shape
fn from_value(v: &Value) -> Shape
Extracts the value from a Value
enum.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more