ToInstance

Trait ToInstance 

Source
pub trait ToInstance<I: Instance> {
    type State;

    // Required method
    fn to_instance(
        &self,
        handler: &DeviceHandler,
        shaders: &I::Shaders,
        desc: &Self::State,
    ) -> I;
}
Expand description

The trait for generating Instance from Self.

Required Associated Types§

Source

type State

Configuration descriptor for instance.

Required Methods§

Source

fn to_instance( &self, handler: &DeviceHandler, shaders: &I::Shaders, desc: &Self::State, ) -> I

Creates Instance from self.

Implementations on Foreign Types§

Source§

impl ToInstance<WireFrameInstance> for Vec<(Point3, Point3)>

Source§

impl ToInstance<WireFrameInstance> for Vec<PolylineCurve<Point3>>

Implementors§