RenderToGeometry2D

Trait RenderToGeometry2D 

Source
pub trait RenderToGeometry2D {
    // Required method
    fn render_to_geometry(
        &self,
        resolution: &RenderResolution,
    ) -> Rc<Geometry2D>;
}
Expand description

Something that can rendered into a 2D geometry with a certain resolution.

Required Methods§

Source

fn render_to_geometry(&self, resolution: &RenderResolution) -> Rc<Geometry2D>

Render self into some Geometry with a certain render resolution

Note: We might want to have [RenderCache] as argument here, hence we return an Rc.

Implementations on Foreign Types§

Source§

impl RenderToGeometry2D for Rc<Geometry2D>

Implementors§