Struct truck_rendimpl::InstanceCreator
source · pub struct InstanceCreator { /* private fields */ }
Expand description
Constroctor for instances
Implementations§
source§impl InstanceCreator
impl InstanceCreator
sourcepub fn create_instance<I, T>(&self, object: &T, state: &T::State) -> Iwhere
T: ToInstance<I>,
I: Instance,
pub fn create_instance<I, T>(&self, object: &T, state: &T::State) -> Iwhere
T: ToInstance<I>,
I: Instance,
Creates Instance from object.
sourcepub fn create_texture(&self, image: &DynamicImage) -> Arc<Texture>
pub fn create_texture(&self, image: &DynamicImage) -> Arc<Texture>
Creates Texture
for attaching faces.
Trait Implementations§
source§impl Clone for InstanceCreator
impl Clone for InstanceCreator
source§fn clone(&self) -> InstanceCreator
fn clone(&self) -> InstanceCreator
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more