pub trait AvatarRenderer {
// Required methods
fn clear(&mut self);
fn set_body(&mut self, body: &AvatarPart, body_height: f32);
fn set_part(&mut self, slot: AvatarSlot, part: &AvatarPart);
fn commit(&mut self);
}Expand description
The rendering seam. Implemented by a 3D rig-assembler (parent meshes to bones, swap skin material, scale by body height) or a 2D sprite-stacker.
Required Methods§
Sourcefn set_body(&mut self, body: &AvatarPart, body_height: f32)
fn set_body(&mut self, body: &AvatarPart, body_height: f32)
Set the base body and overall height (0..1).
Sourcefn set_part(&mut self, slot: AvatarSlot, part: &AvatarPart)
fn set_part(&mut self, slot: AvatarSlot, part: &AvatarPart)
Mount one slot’s part.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".