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§
Sourcefn render_to_geometry(&self, resolution: &RenderResolution) -> Rc<Geometry2D>
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.